org.jgraph.event

Class GraphModelEvent


public class GraphModelEvent
extends EventObject

Encapsulates information describing changes to a graph model, and is used to notify graph model listeners of the change.

Nested Class Summary

static interface
GraphModelEvent.GraphModelChange
Defines the interface for objects that may be included into a GraphModelEvent to describe a model change.

Field Summary

protected GraphModelEvent.GraphModelChange
change
The object that constitutes the change.

Constructor Summary

GraphModelEvent(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

GraphModelEvent.GraphModelChange
getChange()
Returns the object that constitutes the change.

Field Details

change

protected GraphModelEvent.GraphModelChange change
The object that constitutes the change.

Constructor Details

GraphModelEvent

public GraphModelEvent(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.
Parameters:
source - the Object responsible for generating the event (typically the creator of the event object passes this for its value)
change - the object that describes the change
See Also:
GraphCell

Method Details

getChange

public GraphModelEvent.GraphModelChange getChange()
Returns the object that constitutes the change.
Returns:
the object that constitutes the change.

Copyright (C) 2001-2008 Gaudenz Alder. All rights reserved.