salvo.jesus.graph
Class GraphAddVertexEvent

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

public class GraphAddVertexEvent
extends java.util.EventObject

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

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

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

vertex

Vertex vertex
The Vertex object that was added to a Graph object

Constructor Detail

GraphAddVertexEvent

public GraphAddVertexEvent(java.lang.Object source,
                           Vertex newvertex)
Creates a GraphAddVertexEvent object indicating the source of the event and the Vertex that was added to a Graph object

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

getVertex

public Vertex getVertex()
Returns the Vertex object that was added to a Graph object

Returns:
The Vertex object added