org._3pq.jgrapht.event

Class GraphChangeEvent

Known Direct 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.
Author:
Barak Naveh
Since:
Aug 10, 2003

Field Summary

protected int
m_type
The type of graph change this event indicates.

Constructor Summary

GraphChangeEvent(Object eventSource, int type)
Creates a new graph change event.

Method Summary

int
getType()
Returns the event type.

Field Details

m_type

protected int m_type
The type of graph change this event indicates.

Constructor Details

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.

Method Details

getType

public int getType()
Returns the event type.
Returns:
the event type.