|
|||||||||||
| 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.VisualNodeEvent
This event handles events that occur on a per-VisualNode
basis.
VisualNode| Field Summary | |
static int |
VISUALNODE_ADDED
Constants that define the type of the event. |
static int |
VISUALNODE_REMOVED
Constants that define the type of the event. |
static int |
VISUALPORT_ADDED
Constants that define the type of the event. |
static int |
VISUALPORT_REMOVED
Constants that define the type of the event. |
| Constructor Summary | |
VisualNodeEvent(int id,
VisualGraph visualgraph,
VisualNode visualnode)
Constructs a new VisualNodeEvent instance. |
|
VisualNodeEvent(int id,
VisualGraph visualgraph,
VisualNode visualnode,
VisualPort visualport)
Constructs a new VisualNodeEvent instance. |
|
VisualNodeEvent(int id,
VisualSubgraph visualsubgraph,
VisualNode visualnode)
Constructs a new VisualNodeEvent instance. |
|
VisualNodeEvent(int id,
VisualSubgraph visualsubgraph,
VisualNode visualnode,
VisualPort visualport)
Constructs a new VisualNodeEvent instance. |
|
| Method Summary | |
java.lang.String |
getDescription()
Returns a textual description for the event. |
int |
getID()
Returns the event id of this event. |
VisualGraph |
getVisualGraph()
Returns the VisualGraph that
caused the event.
|
VisualNode |
getVisualNode()
Returns the VisualNode that is
associated with the event. |
VisualPort |
getVisualPort()
Returns the VisualPort that is
associated with 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 VISUALNODE_ADDED
public static final int VISUALNODE_REMOVED
public static final int VISUALPORT_ADDED
public static final int VISUALPORT_REMOVED
| Constructor Detail |
public VisualNodeEvent(int id,
VisualGraph visualgraph,
VisualNode visualnode)
VisualNodeEvent instance.
id - the type of this event.visualgraph - the associated VisualGraph
of the event.visualnode - the associated
VisualNode of the event.
public VisualNodeEvent(int id,
VisualSubgraph visualsubgraph,
VisualNode visualnode)
VisualNodeEvent instance.
id - the type of this event.visualsubgraph - the associated VisualSubgraph
of the event. This may be null if the event did not occur in a subgraph.visualnode - the associated
VisualNode of the event.
public VisualNodeEvent(int id,
VisualGraph visualgraph,
VisualNode visualnode,
VisualPort visualport)
VisualNodeEvent instance.
id - the type of this event.visualgraph - the associated VisualGraph
of the event.visualnode - the associated
VisualNode of the event.
public VisualNodeEvent(int id,
VisualSubgraph visualsubgraph,
VisualNode visualnode,
VisualPort visualport)
VisualNodeEvent instance.
id - the type of this event.visualsubgraph - the associated VisualSubgraph
of the event. This may be null if the event did not occur in a subgraph.visualnode - the associated
VisualNode of the event.| Method Detail |
public int getID()
public VisualNode getVisualNode()
VisualNode that is
associated with the event.
VisualNode that is
associated with the event.public VisualPort getVisualPort()
VisualPort that is
associated with the event. If none is associated then
null is returned.
VisualPort 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 | ||||||||||