|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.event.AbstractGraphEvent
com.tensegrity.graph.event.EdgeEvent
The edge event class.
Graph,
Edge| Field Summary | |
static int |
EDGE_ADDED
Constants that define the type of the event. |
static int |
EDGE_REMOVED
Constants that define the type of the event. |
| Constructor Summary | |
EdgeEvent(int id,
Graph graph,
Edge edge)
Constructs a new EdgeEvent. |
|
EdgeEvent(int id,
Subgraph subgraph,
Edge edge)
Constructs a new EdgeEvent. |
|
| Method Summary | |
java.lang.String |
getDescription()
Returns a textual description for the event. |
Edge |
getEdge()
Returns the Edge that caused
the event. |
Graph |
getGraph()
Returns the Graph that
caused the event. |
int |
getID()
Returns the event id of this event. |
Subgraph |
getSubgraph()
Returns the Subgraph 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 EDGE_ADDED
public static final int EDGE_REMOVED
| Constructor Detail |
public EdgeEvent(int id,
Graph graph,
Edge edge)
EdgeEvent.
id - the id of the event, must be one of the Constants
defined in this class.graph - the Graph that
is associated with the event.edge - the Edge that
is associated with the event.
public EdgeEvent(int id,
Subgraph subgraph,
Edge edge)
EdgeEvent.
id - the id of the event, must be one of the Constants
defined in this class.subgraph - the Subgraph that
is associated with the event.edge - the Edge that
is associated with the event.| Method Detail |
public int getID()
public Edge getEdge()
Edge that caused
the event.
Edge that caused
the event.public java.lang.String getDescription()
getDescription in interface GraphRootEventpublic Graph getGraph()
Graph that
caused the event.
getGraph in interface GraphRootEventGraph that
caused the event.public Subgraph getSubgraph()
Subgraph that
caused the event.
Subgraph that
caused the event.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||