|
JGraph |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit
An implementation of 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
|
| Fields inherited from class javax.swing.undo.CompoundEdit |
edits |
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
RedoName, UndoName |
| Constructor Summary | |
GraphLayoutCache.GraphLayoutCacheEdit(Map nested)
Constructs a GraphViewEdit. |
|
GraphLayoutCache.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()
Returns the dirty region for the original position of the changed cells before the change happened. |
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()
Returns the source of this change. |
boolean |
isSignificant()
|
void |
redo()
Redoes a change. |
void |
setDirtyRegion(Rectangle2D dirty)
In some cases the class firing this event will not have access to the dirty region prior to the change. |
void |
undo()
Undoes a change. |
| Methods inherited from class javax.swing.undo.CompoundEdit |
addEdit, canRedo, canUndo, die, end, getPresentationName, getRedoPresentationName, getUndoPresentationName, isInProgress, lastEdit, toString |
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
replaceEdit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Object[] cells
protected Object[] previousCells
protected CellView[] context
protected CellView[] hidden
protected Map attributes
protected Map previousAttributes
protected Object[] visible
protected Object[] invisible
protected Rectangle2D dirtyRegion
protected Set changedCells
| Constructor Detail |
public GraphLayoutCache.GraphLayoutCacheEdit(Map nested)
nested - the map that defines the new attributes
public GraphLayoutCache.GraphLayoutCacheEdit(Object[] inserted,
Map attributes,
Object[] visible,
Object[] invisible)
inserted - an array of inserted cellsattributes - the map that defines the new attributesvisible - an array defining which cells are visibleinvisible - an array defining which cells are invisible| Method Detail |
public Object getSource()
GraphLayoutCacheEvent.GraphLayoutCacheChange
getSource in interface GraphLayoutCacheEvent.GraphLayoutCacheChangepublic boolean isSignificant()
isSignificant in interface UndoableEditpublic Object[] getChanged()
getChanged in interface GraphLayoutCacheEvent.GraphLayoutCacheChangepublic Object[] getInserted()
getInserted in interface GraphLayoutCacheEvent.GraphLayoutCacheChangepublic Object[] getRemoved()
getRemoved in interface GraphLayoutCacheEvent.GraphLayoutCacheChangepublic Object[] getContext()
getContext in interface GraphLayoutCacheEvent.GraphLayoutCacheChangepublic Map getAttributes()
getAttributes in interface GraphLayoutCacheEvent.GraphLayoutCacheChangepublic Map getPreviousAttributes()
getPreviousAttributes in interface GraphLayoutCacheEvent.GraphLayoutCacheChangepublic Rectangle2D getDirtyRegion()
GraphLayoutCacheEvent.GraphLayoutCacheChange
getDirtyRegion in interface GraphLayoutCacheEvent.GraphLayoutCacheChangepublic void setDirtyRegion(Rectangle2D dirty)
GraphLayoutCacheEvent.GraphLayoutCacheChange
setDirtyRegion in interface GraphLayoutCacheEvent.GraphLayoutCacheChangedirty -
public void redo()
throws CannotRedoException
redo in interface UndoableEditCannotRedoException - if the change cannot be redone
public void undo()
throws CannotUndoException
undo in interface UndoableEditCannotUndoException - if the change cannot be undonepublic void execute()
|
JGraph |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||