com.jgraph.event
Interface GraphModelEvent.GraphModelChange

All Superinterfaces:
GraphModelEvent.GraphViewChange
All Known Implementing Classes:
DefaultGraphModel.GraphModelEdit, DefaultGraphModel.GraphModelLayerEdit
Enclosing interface:
GraphModelEvent

public static interface GraphModelEvent.GraphModelChange
extends GraphModelEvent.GraphViewChange

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


Method Summary
 java.lang.Object[] getInserted()
          Returns the cells that have been inserted into the model.
 java.lang.Object[] getRemoved()
          Returns the cells that have been removed from the model.
 java.util.Map getStoredAttributeMap()
          Returns a map that contains (object, map) pairs of the attributes that have been stored in the model.
 CellView[] getViews(GraphView view)
          Allows a GraphView to retrieve an array of CellViews that was previously stored with putViews(GraphView, CellView[]).
 void putViews(GraphView view, CellView[] cellViews)
          Allows a GraphView to store an array of CellViews (used for command history).
 
Methods inherited from interface com.jgraph.event.GraphModelEvent.GraphViewChange
getAttributeMap, getChanged, getContext, getSource
 

Method Detail

getInserted

public java.lang.Object[] getInserted()
Returns the cells that have been inserted into the model.


getRemoved

public java.lang.Object[] getRemoved()
Returns the cells that have been removed from the model.


getStoredAttributeMap

public java.util.Map getStoredAttributeMap()
Returns a map that contains (object, map) pairs of the attributes that have been stored in the model.


putViews

public void putViews(GraphView view,
                     CellView[] cellViews)
Allows a GraphView to store an array of CellViews (used for command history).


getViews

public CellView[] getViews(GraphView view)
Allows a GraphView to retrieve an array of CellViews that was previously stored with putViews(GraphView, CellView[]).