Package org.jgraph.event
Class GraphModelEvent
java.lang.Object
java.util.EventObject
org.jgraph.event.GraphModelEvent
- All Implemented Interfaces:
Serializable
Encapsulates information describing changes to a graph model, and is used to
notify graph model listeners of the change.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Defines the interface for objects that may be included into a GraphModelEvent to describe a model change. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GraphModelEvent.GraphModelChange
The object that constitutes the change.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionGraphModelEvent
(Object source, GraphModelEvent.GraphModelChange change) Used to create an event when cells have been changed, inserted, or removed, identifying the change as a ModelChange object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the object that constitutes the change.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
change
The object that constitutes the change.
-
-
Constructor Details
-
GraphModelEvent
Used to create an event when cells have been changed, inserted, or removed, identifying the change as a ModelChange object.- Parameters:
source
- the Object responsible for generating the event (typically the creator of the event object passesthis
for its value)change
- the object that describes the change- See Also:
-
-
Method Details
-
getChange
Returns the object that constitutes the change.- Returns:
- the object that constitutes the change.
-