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 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.
-
Constructor Summary
Constructors Constructor Description GraphEvent(Graph<V,E> source, GraphEvent.Type type)
Creates an instance with the specifiedsource
graph andType
(vertex/edge addition/removal).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Graph<V,E>
getSource()
GraphEvent.Type
getType()
-
-
-
Field Detail
-
type
protected GraphEvent.Type type
-
-
Constructor Detail
-
GraphEvent
public GraphEvent(Graph<V,E> source, GraphEvent.Type type)
Creates an instance with the specifiedsource
graph andType
(vertex/edge addition/removal).
-
-
Method Detail
-
getType
public GraphEvent.Type getType()
- Returns:
- the type
-
-