org.graffiti.event
Class EdgeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.graffiti.event.AbstractEvent
          extended by org.graffiti.event.EdgeEvent
All Implemented Interfaces:
Serializable

public class EdgeEvent
extends AbstractEvent

Contains an edge event. An EdgeEvent object is passed to every EdgeListener or AbstractEdgeListener object which is registered to receive the "interesting" edge events using the component's addEdgeListener method. (AbstractEdgeListener objects implement the EdgeListener interface.) Each such listener object gets an EdgeEvent containing the edge event.

Version:
$Revision: 5767 $
See Also:
EdgeListener, AbstractEdgeListener, Serialized Form

Constructor Summary
EdgeEvent(Edge edge)
          Constructs an edge event object with the specified source component.
 
Method Summary
 Edge getEdge()
          Returns the originator of the event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EdgeEvent

public EdgeEvent(Edge edge)
Constructs an edge event object with the specified source component.

Parameters:
edge - the edge that originated the event.
Method Detail

getEdge

public Edge getEdge()
Returns the originator of the event.

Returns:
the edge that has been changed by this event.


Generated at 2012-05-30 11:00:14 PM CEST