org.jgraph.graph
public class GraphLayoutCache.GraphLayoutCacheEdit extends CompoundEdit implements GraphLayoutCacheEvent.GraphLayoutCacheChange
Field Summary | |
---|---|
protected Map | attributes |
protected Object[] | cells |
protected Set | changedCells |
protected CellView[] | context |
protected Rectangle2D | dirtyRegion
The dirty region associated with this event prior to the change |
protected CellView[] | hidden |
protected Object[] | invisible |
protected Map | previousAttributes |
protected Object[] | previousCells |
protected Object[] | visible |
Constructor Summary | |
---|---|
GraphLayoutCacheEdit(Map nested)
Constructs a GraphViewEdit. | |
GraphLayoutCacheEdit(Object[] inserted, Map attributes, Object[] visible, Object[] invisible)
Constructs a GraphViewEdit. |
Method Summary | |
---|---|
void | execute()
Execute this edit such that the next invocation to this method will
invert the last execution. |
Map | getAttributes()
Returns a map of (cell view, attribute) pairs. |
Object[] | getChanged()
Returns the cell views that have changed. |
Object[] | getContext()
Returns the views that have not changed explicitly, but implicitly
because one of their dependent cells has changed. |
Rectangle2D | getDirtyRegion() |
Object[] | getInserted()
Returns the cells that habe been made visible. |
Map | getPreviousAttributes()
Returns a map of (cell view, attribute) pairs. |
Object[] | getRemoved()
Returns the cells that have changed. |
Object | getSource() |
boolean | isSignificant() |
void | redo()
Redoes a change.
|
void | setDirtyRegion(Rectangle2D dirty) |
void | undo()
Undoes a change.
|
Parameters: nested the map that defines the new attributes
Parameters: inserted an array of inserted cells attributes the map that defines the new attributes visible an array defining which cells are visible invisible an array defining which cells are invisible
Throws: CannotRedoException if the change cannot be redone
Throws: CannotUndoException if the change cannot be undone