org.jgraph.event

Interface GraphModelEvent.GraphModelChange

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
ConnectionSetgetConnectionSet()
Returns a connection set representing the graph structure after the change was applied
ParentMapgetParentMap()
Returns a parent map representing the group structure after the change was applied
ConnectionSetgetPreviousConnectionSet()
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 a GraphLayoutCache to retrieve an array of CellViews that was previously stored with putViews(GraphLayoutCache, CellView[]).
voidputViews(GraphLayoutCache view, CellView[] cellViews)
Allows a GraphLayoutCache to store cell views for cells that have been removed.

Method Detail

getConnectionSet

public 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

getParentMap

public ParentMap getParentMap()
Returns a parent map representing the group structure after the change was applied

Returns: the changed parent map

getPreviousConnectionSet

public 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

getPreviousParentMap

public 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

getViews

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

Parameters: view the GraphLayoutCache whose stored cells are to be retrieved

putViews

public void putViews(GraphLayoutCache view, CellView[] cellViews)
Allows a GraphLayoutCache to store cell views for cells that have been removed. Such cell views are used for re-insertion and restoring the visual attributes.

Parameters: view the GraphLayoutCache to store the removed cells cellViews the cell views to be stored

Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.