|
|||||||||||
| 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.NodeEvent
The node event class.
Graph,
Node| Field Summary | |
static int |
NODE_ADDED
Constants that define the type of the event. |
static int |
NODE_REMOVED
Constants that define the type of the event. |
static int |
PORT_ADDED
Constants that define the type of the event. |
static int |
PORT_REMOVED
Constants that define the type of the event. |
| Constructor Summary | |
NodeEvent(int id,
Graph graph,
Node node)
Constructs a new NodeEvent. |
|
NodeEvent(int id,
Graph graph,
Node node,
Port port)
Constructs a new NodeEvent. |
|
NodeEvent(int id,
Subgraph subgraph,
Node node)
Constructs a new NodeEvent. |
|
NodeEvent(int id,
Subgraph subgraph,
Node node,
Port port)
Constructs a new NodeEvent. |
|
| Method Summary | |
java.lang.String |
getDescription()
Returns a textual description for the event. |
Graph |
getGraph()
Returns the Graph that
caused the event. |
int |
getID()
Returns the event id of this event. |
Node |
getNode()
Returns the Node that caused
the event. |
Port |
getPort()
Returns the Port that is involved
in the event if any. |
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 NODE_ADDED
public static final int NODE_REMOVED
public static final int PORT_ADDED
public static final int PORT_REMOVED
| Constructor Detail |
public NodeEvent(int id,
Graph graph,
Node node)
NodeEvent.
id - the type of the event.graph - the Graph that
is associated with the event.node - the Node that
is associated with the event.
public NodeEvent(int id,
Subgraph subgraph,
Node node)
NodeEvent.
id - the type of the event.subgraph - the Subgraph that
is associated with the event.node - the Node that
is associated with the event.
public NodeEvent(int id,
Graph graph,
Node node,
Port port)
NodeEvent.
id - the type of the event.graph - the Graph that
is associated with the event.node - the Node that
is associated with the event.port - the Port that is involved in the event.
public NodeEvent(int id,
Subgraph subgraph,
Node node,
Port port)
NodeEvent.
id - the type of the event.subgraph - the Subgraph that
is associated with the event.node - the Node that
is associated with the event.port - the Port that is involved in the event.| Method Detail |
public int getID()
public Node getNode()
Node that caused
the event.
Node that caused
the event.public Port getPort()
Port that is involved
in the event if any. If no port is involved then null
is returned.
Port that is involved
in the event or null.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 | ||||||||||