org.jgrapht.event
Class GraphChangeEvent
java.lang.Object
java.util.EventObject
org.jgrapht.event.GraphChangeEvent
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- GraphEdgeChangeEvent, GraphVertexChangeEvent
public class GraphChangeEvent
- extends EventObject
An event which indicates that a graph has changed. This class is a root for
graph change events.
- Since:
- Aug 10, 2003
- Author:
- Barak Naveh
- See Also:
- Serialized Form
Field Summary |
protected int |
type
The type of graph change this event indicates. |
Method Summary |
int |
getType()
Returns the event type. |
type
protected int type
- The type of graph change this event indicates.
GraphChangeEvent
public GraphChangeEvent(Object eventSource,
int type)
- Creates a new graph change event.
- Parameters:
eventSource
- the source of the event.type
- the type of event.
getType
public int getType()
- Returns the event type.
- Returns:
- the event type.
Copyright © 2013. All rights reserved.