|
JGraph |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.swing.undo.AbstractUndoableEdit
|
+--org.jgraph.graph.GraphLayoutCache.GraphViewLayerEdit
An implementation of GraphViewChange.
| Field Summary | |
static int |
BACK
|
protected Object[] |
cells
|
protected Object |
changeSource
|
static int |
FRONT
|
protected int |
layer
|
protected int[] |
next
|
protected int[] |
prev
|
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
RedoName, UndoName |
| Constructor Summary | |
GraphLayoutCache.GraphViewLayerEdit(Object source,
Object[] cells,
int layer)
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 cells that have changed. |
Object[] |
getContext()
Returns the views that have not changed explicitly, but implicitly because one of their dependent cells has changed. |
protected List |
getParentList(Object view)
Returns the list that exclusively contains view. |
Object |
getSource()
Returns the source of this change. |
void |
redo()
Redoes a change. |
void |
undo()
Undoes a change. |
protected void |
updateListeners()
|
protected void |
updateNext()
|
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int FRONT
public static final int BACK
protected Object changeSource
protected transient Object[] cells
protected transient int[] next
protected transient int[] prev
protected int layer
| Constructor Detail |
public GraphLayoutCache.GraphViewLayerEdit(Object source,
Object[] cells,
int layer)
source - the source of the change (the view)| Method Detail |
protected void updateNext()
public Object getSource()
getSource in interface GraphModelEvent.GraphViewChangepublic Object[] getChanged()
getChanged in interface GraphModelEvent.GraphViewChangepublic Object[] getContext()
getContext in interface GraphModelEvent.GraphViewChangepublic Map getAttributes()
getAttributes in interface GraphModelEvent.GraphViewChange
public void redo()
throws CannotRedoException
redo in interface UndoableEditredo in class AbstractUndoableEditCannotRedoException - if the change cannot be redone
public void undo()
throws CannotUndoException
undo in interface UndoableEditundo in class AbstractUndoableEditCannotUndoException - if the change cannot be undonepublic void execute()
execute in interface GraphModelEvent.ExecutableGraphChangeprotected void updateListeners()
protected List getParentList(Object view)
view.
|
JGraph |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||