|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interaction control. This specification can be overridden to supply custom code for interaction settings. The InteractionControl classes should follow a few rules: - they should not keep any internal state they rely on as they should behave as deep copied classes when they are shallow-copied. The way to achieve this is to make subclasses of InteractionControl immutable. That means all fields and fields of fields recursively should be declared final. By overridden this class one can customize the interaction with the visualgraph. The abstract methods are defined in a derived class and are called by the visualgraph during user interaction and the return value is used to indicate whether the visualgraph should allow or inhibit a certain operation or not.
| Method Summary | |
boolean |
preAttachSource(VisualGraph visualgraph,
VisualEdge visualedge,
VisualPort newport)
This method is invoked as a callback before the source-end of VisualEdge is attached. |
boolean |
preAttachTarget(VisualGraph visualgraph,
VisualEdge visualedge,
VisualPort newport)
This method is invoked as a callback before the target-end of VisualEdge is attached. |
boolean |
preDetachSource(VisualGraph visualgraph,
VisualEdge visualedge)
This method is invoked as a callback before the source-end of VisualEdge is detached. |
boolean |
preDetachTarget(VisualGraph visualgraph,
VisualEdge visualedge)
This method is invoked as a callback before the target-end of VisualEdge is detached. |
boolean |
preDragVisualEdge(VisualGraph visualgraph,
VisualEdge visualedge)
This method is invoked as a callback before a VisualEdge is dragged. |
boolean |
preHighlightPort(VisualGraph visualgraph,
VisualPort visualport)
This method is invoked as a callback before a VisualPort
is highlighted. |
| Method Detail |
public boolean preDragVisualEdge(VisualGraph visualgraph,
VisualEdge visualedge)
VisualEdge is dragged.
visualgraph - the VisualGraph in which the
interaction occured.visualedge - the VisualEdge that was dragged.
VisualGraph,
VisualEdge
public boolean preDetachSource(VisualGraph visualgraph,
VisualEdge visualedge)
VisualEdge is detached.
visualgraph - the VisualGraph in which the
interaction occured.visualedge - the VisualEdge that is being detached.
VisualGraph,
VisualEdge
public boolean preDetachTarget(VisualGraph visualgraph,
VisualEdge visualedge)
VisualEdge is detached.
visualgraph - the VisualGraph in which the
interaction occured.visualedge - the VisualEdge that is being detached.
VisualGraph,
VisualEdge
public boolean preAttachSource(VisualGraph visualgraph,
VisualEdge visualedge,
VisualPort newport)
VisualEdge is attached.
visualgraph - the VisualGraph in which the
interaction occured.visualedge - the VisualEdge that is being attached.
VisualGraph,
VisualEdge,
VisualPort
public boolean preAttachTarget(VisualGraph visualgraph,
VisualEdge visualedge,
VisualPort newport)
VisualEdge is attached.
visualgraph - the VisualGraph in which the
interaction occured.visualedge - the VisualEdge that is being attached.
VisualGraph,
VisualEdge,
VisualPort
public boolean preHighlightPort(VisualGraph visualgraph,
VisualPort visualport)
VisualPort
is highlighted.
visualgraph - the VisualGraph in which the
interaction occured.
VisualGraph,
VisualEdge,
VisualPort
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||