Package org.graffiti.event
Class NodeEvent
java.lang.Object
java.util.EventObject
org.graffiti.event.AbstractEvent
org.graffiti.event.NodeEvent
- All Implemented Interfaces:
Serializable
public class NodeEvent extends AbstractEvent
Contains a node event. A
NodeEvent object is passed to every
NodeListener or AbstractNodeListener object which
is registered to receive the "interesting" node events using the component's
addNodeListener method. (AbstractNodeListener
objects implement the NodeListener interface.) Each such
listener object gets a NodeEvent containing the node event.- Version:
- $Revision: 1.6 $
- See Also:
NodeListener,AbstractNodeListener, Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class org.graffiti.event.AbstractEvent
AbstractEvent.EVENTTYPE -
Constructor Summary
-
Method Summary
Modifier and Type Method Description AttributablegetAttributeable()EdgegetEdge()Returns the edge that originated this event.NodegetNode()Returns the node that has been changed by this event.Methods inherited from class org.graffiti.event.AbstractEvent
getEventType, setEventTypeMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
NodeEvent
Constructs a graph event object with the specified source components.- Parameters:
node- the node that originated the event.edge- the edge that originated the event.
-
-
Method Details
-
getEdge
Returns the edge that originated this event. E.g.: the edge that has been added to the incoming egdes list of the node. Might return null.- Returns:
- The edge that originated the event.
-
getNode
Returns the node that has been changed by this event.- Returns:
- The node that has been changed by this event.
-
getAttributeable
-