Package org.jgrapht.event
Class GraphEdgeChangeEvent<V,E>
java.lang.Object
java.util.EventObject
org.jgrapht.event.GraphChangeEvent
org.jgrapht.event.GraphEdgeChangeEvent<V,E>
- All Implemented Interfaces:
Serializable
An event which indicates that a graph edge has changed, or is about to
change. The event can be used either as an indication after the edge
has been added or removed, or before it is added. The type of the
event can be tested using the
GraphChangeEvent.getType()
method.- Since:
- Aug 10, 2003
- Author:
- Barak Naveh
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Before edge added event.static final int
Before edge removed event.protected E
The edge that this event is related to.static final int
Edge added event.static final int
Edge removed event.Fields inherited from class org.jgrapht.event.GraphChangeEvent
type
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionGraphEdgeChangeEvent
(Object eventSource, int type, E e) Constructor for GraphEdgeChangeEvent. -
Method Summary
Methods inherited from class org.jgrapht.event.GraphChangeEvent
getType
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
BEFORE_EDGE_ADDED
public static final int BEFORE_EDGE_ADDEDBefore edge added event. This event is fired before an edge is added to a graph.- See Also:
-
BEFORE_EDGE_REMOVED
public static final int BEFORE_EDGE_REMOVEDBefore edge removed event. This event is fired before an edge is removed from a graph.- See Also:
-
EDGE_ADDED
public static final int EDGE_ADDEDEdge added event. This event is fired after an edge is added to a graph.- See Also:
-
EDGE_REMOVED
public static final int EDGE_REMOVEDEdge removed event. This event is fired after an edge is removed from a graph.- See Also:
-
edge
The edge that this event is related to.
-
-
Constructor Details
-
GraphEdgeChangeEvent
Constructor for GraphEdgeChangeEvent.- Parameters:
eventSource
- the source of this event.type
- the event type of this event.e
- the edge that this event is related to.
-
-
Method Details
-
getEdge
Returns the edge that this event is related to.- Returns:
- the edge that this event is related to.
-