edu.uci.ics.jung.graph.event
Class GraphEvent<V,E>

java.lang.Object
  extended by edu.uci.ics.jung.graph.event.GraphEvent<V,E>
Type Parameters:
V - the vertex type
E - the edge type
Direct Known Subclasses:
GraphEvent.Edge, GraphEvent.Vertex

public abstract class GraphEvent<V,E>
extends Object

Author:
tom nelson

Nested Class Summary
static class GraphEvent.Edge<V,E>
          An event type pertaining to graph edges.
static class GraphEvent.Type
          Types of graph events.
static class GraphEvent.Vertex<V,E>
          An event type pertaining to graph vertices.
 
Field Summary
protected  Graph<V,E> source
           
protected  GraphEvent.Type type
           
 
Constructor Summary
GraphEvent(Graph<V,E> source, GraphEvent.Type type)
          Creates an instance with the specified source graph and Type (vertex/edge addition/removal).
 
Method Summary
 Graph<V,E> getSource()
           
 GraphEvent.Type getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected Graph<V,E> source

type

protected GraphEvent.Type type
Constructor Detail

GraphEvent

public GraphEvent(Graph<V,E> source,
                  GraphEvent.Type type)
Creates an instance with the specified source graph and Type (vertex/edge addition/removal).

Method Detail

getSource

public Graph<V,E> getSource()
Returns:
the source

getType

public GraphEvent.Type getType()
Returns:
the type


Copyright © 2009. All Rights Reserved.