salvo.jesus.graph
Class GraphRemoveEdgeEvent

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

public class GraphRemoveEdgeEvent
extends java.util.EventObject

This event is used to notify interested parties that an Edge object is about to be removed from a Graph object.

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

Field Summary
(package private)  Edge edge
          The Edge object is about to be removed from a Graph object
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GraphRemoveEdgeEvent(java.lang.Object source, Edge edgetoremove)
          Creates a GraphRemoveEdgeEvent object indicating the source of the event and the Edge that is about to be removed from a Graph object
 
Method Summary
 Edge getEdge()
          Returns the Edge object is about to be removed from 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 is about to be removed from a Graph object

Constructor Detail

GraphRemoveEdgeEvent

public GraphRemoveEdgeEvent(java.lang.Object source,
                            Edge edgetoremove)
Creates a GraphRemoveEdgeEvent object indicating the source of the event and the Edge that is about to be removed from a Graph object

Parameters:
source - source of the event. This is usually the Graph object where the Edge object is to be removed.
newedge - Edge object that is about to be removed from a Graph object
Method Detail

getEdge

public Edge getEdge()
Returns the Edge object is about to be removed from a Graph object

Returns:
The Edge object to be removed