Class 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
  • Constructor Details

    • NodeEvent

      public NodeEvent​(Node node, Edge edge)
      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

      public Edge 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

      public Node getNode()
      Returns the node that has been changed by this event.
      Returns:
      The node that has been changed by this event.
    • getAttributeable

      public Attributable getAttributeable()