Package edu.uci.ics.jung.graph.event
Class GraphEvent<V,E>
- java.lang.Object
-
- edu.uci.ics.jung.graph.event.GraphEvent<V,E>
-
- Type Parameters:
V- the vertex typeE- the edge type
- Direct Known Subclasses:
GraphEvent.Edge,GraphEvent.Vertex
public abstract class GraphEvent<V,E> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGraphEvent.Edge<V,E>An event type pertaining to graph edges.static classGraphEvent.TypeTypes of graph events.static classGraphEvent.Vertex<V,E>An event type pertaining to graph vertices.
-
Constructor Summary
Constructors Constructor Description GraphEvent(Graph<V,E> source, GraphEvent.Type type)Creates an instance with the specifiedsourcegraph andType(vertex/edge addition/removal).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Graph<V,E>getSource()GraphEvent.TypegetType()
-
-
-
Field Detail
-
type
protected GraphEvent.Type type
-
-
Constructor Detail
-
GraphEvent
public GraphEvent(Graph<V,E> source, GraphEvent.Type type)
Creates an instance with the specifiedsourcegraph andType(vertex/edge addition/removal).- Parameters:
source- the graph whose event this istype- the type of event this is
-
-
Method Detail
-
getType
public GraphEvent.Type getType()
- Returns:
- the type
-
-