salvo.jesus.graph
Class GraphAddEdgeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by salvo.jesus.graph.GraphAddEdgeEvent
All Implemented Interfaces:
java.io.Serializable

public class GraphAddEdgeEvent
extends java.util.EventObject

This event is used to notify interested parties that an Edge object has been added to a Graph object.

Author:
Jesus M. Salvo Jr.
See Also:
Serialized Form

Field Summary
(package private)  Edge edge
          The Edge object that was added to a Graph object
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GraphAddEdgeEvent(java.lang.Object source, Edge newedge)
          Creates a GraphAddEdgeEvent object indicating the source of the event and the Edge that was added to a Graph object
 
Method Summary
 Edge getEdge()
          Returns the Edge object that was added to a Graph object
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

edge

Edge edge
The Edge object that was added to a Graph object

Constructor Detail

GraphAddEdgeEvent

public GraphAddEdgeEvent(java.lang.Object source,
                         Edge newedge)
Creates a GraphAddEdgeEvent object indicating the source of the event and the Edge that was added to a Graph object

Parameters:
source - source of the event. This is usually the Graph object where the Edge object was added.
newedge - Edge object that was added to a Graph object
Method Detail

getEdge

public Edge getEdge()
Returns the Edge object that was added to a Graph object

Returns:
The Edge object added