Package org.jgraph.event
Interface GraphModelEvent.GraphModelChange
-
- All Superinterfaces:
GraphLayoutCacheEvent.GraphLayoutCacheChange
- All Known Implementing Classes:
DefaultGraphModel.GraphModelEdit,DefaultGraphModel.GraphModelLayerEdit
- Enclosing class:
- GraphModelEvent
public static interface GraphModelEvent.GraphModelChange extends GraphLayoutCacheEvent.GraphLayoutCacheChange
Defines the interface for objects that may be included into a GraphModelEvent to describe a model change.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectionSetgetConnectionSet()Returns a connection set representing the graph structure after the change was appliedParentMapgetParentMap()Returns a parent map representing the group structure after the change was appliedConnectionSetgetPreviousConnectionSet()Returns a connection set representing the graph structure before the change was applied ( an "undo" of the change).ParentMapgetPreviousParentMap()Returns a parent map representing the group structure before the change was applied ( an "undo" of the change )CellView[]getViews(GraphLayoutCache view)Allows aGraphLayoutCacheto retrieve an array ofCellViewsthat was previously stored withputViews(GraphLayoutCache, CellView[]).voidputViews(GraphLayoutCache view, CellView[] cellViews)Allows aGraphLayoutCacheto store cell views for cells that have been removed.-
Methods inherited from interface org.jgraph.event.GraphLayoutCacheEvent.GraphLayoutCacheChange
getAttributes, getChanged, getContext, getDirtyRegion, getInserted, getPreviousAttributes, getRemoved, getSource, setDirtyRegion
-
-
-
-
Method Detail
-
getConnectionSet
ConnectionSet getConnectionSet()
Returns a connection set representing the graph structure after the change was applied- Returns:
- the connection set of the graph after the change
-
getPreviousConnectionSet
ConnectionSet getPreviousConnectionSet()
Returns a connection set representing the graph structure before the change was applied ( an "undo" of the change).- Returns:
- the connection set of the graph before the change
-
getParentMap
ParentMap getParentMap()
Returns a parent map representing the group structure after the change was applied- Returns:
- the changed parent map
-
getPreviousParentMap
ParentMap getPreviousParentMap()
Returns a parent map representing the group structure before the change was applied ( an "undo" of the change )- Returns:
- the previous parent map
-
putViews
void putViews(GraphLayoutCache view, CellView[] cellViews)
Allows aGraphLayoutCacheto store cell views for cells that have been removed. Such cell views are used for re-insertion and restoring the visual attributes.- Parameters:
view- theGraphLayoutCacheto store the removed cellscellViews- the cell views to be stored
-
getViews
CellView[] getViews(GraphLayoutCache view)
Allows aGraphLayoutCacheto retrieve an array ofCellViewsthat was previously stored withputViews(GraphLayoutCache, CellView[]).- Parameters:
view- theGraphLayoutCachewhose stored cells are to be retrieved
-
-