salvo.jesus.graph
Class GraphRemoveVertexEvent

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

public class GraphRemoveVertexEvent
extends java.util.EventObject

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

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

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

vertex

Vertex vertex
The Vertex object that is about to be removed from a Graph object

Constructor Detail

GraphRemoveVertexEvent

public GraphRemoveVertexEvent(java.lang.Object source,
                              Vertex vertextoremove)
Creates a GraphRemoveVertexEvent object indicating the source of the event and the Vertex is about to be removed from a Graph object

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

getVertex

public Vertex getVertex()
Returns the Vertex object is about to be removed from a Graph object

Returns:
The Vertex object to be removed