|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.event.AbstractVisualGraphEvent
com.tensegrity.graph.event.VisualEdgeEvent
This event handles events that occur on a per-VisualEdge
basis.
VisualEdge| Field Summary | |
static int |
ISOLATEDVISUALEDGE_ADDED
Constants that define the type of the event. |
static int |
ISOLATEDVISUALEDGE_REMOVED
Constants that define the type of the event. |
static int |
VISUALEDGE_ADDED
Constants that define the type of the event. |
static int |
VISUALEDGE_REMOVED
Constants that define the type of the event. |
| Constructor Summary | |
VisualEdgeEvent(int id,
VisualGraph visualgraph,
VisualEdge visualedge)
Constructs a new VisualEdgeEvent instance. |
|
VisualEdgeEvent(int id,
VisualSubgraph visualsubgraph,
VisualEdge visualedge)
Constructs a new VisualEdgeEvent instance. |
|
| Method Summary | |
java.lang.String |
getDescription()
Returns a textual description for the event. |
int |
getID()
Returns the event id of this event. |
VisualEdge |
getVisualEdge()
Returns the VisualEdge that is
associated with the event. |
VisualGraph |
getVisualGraph()
Returns the VisualGraph that
caused the event.
|
VisualSubgraph |
getVisualSubgraph()
Returns the VisualSubgraph that
caused the event.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int VISUALEDGE_ADDED
public static final int VISUALEDGE_REMOVED
public static final int ISOLATEDVISUALEDGE_ADDED
public static final int ISOLATEDVISUALEDGE_REMOVED
| Constructor Detail |
public VisualEdgeEvent(int id,
VisualGraph visualgraph,
VisualEdge visualedge)
VisualEdgeEvent instance.
id - the id of this event.visualgraph - the associated VisualGraph of the event.visualedge - the associated
of the event. This may be null if the event did not occur in a subgraph.
VisualEdge of the event.
public VisualEdgeEvent(int id,
VisualSubgraph visualsubgraph,
VisualEdge visualedge)
VisualEdgeEvent instance.
id - the id of this event.visualsubgraph - the associated VisualSubgraphvisualedge - the associated
of the event. This may be null if the event did not occur in a subgraph.
VisualEdge of the event.| Method Detail |
public int getID()
public VisualEdge getVisualEdge()
VisualEdge that is
associated with the event.
VisualEdge that is
associated with the event.public VisualGraph getVisualGraph()
VisualGraph that
caused the event.
If the event source was not of the type VisualGraph
then this method returns null.
getVisualGraph in interface VisualGraphRootEventVisualGraph that
caused the event.public VisualSubgraph getVisualSubgraph()
VisualSubgraph that
caused the event.
If the event source was not of the type VisualSubgraph
then this method returns null.
VisualSubgraph that
caused the event.public java.lang.String getDescription()
getDescription in interface VisualGraphRootEvent
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||