|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
com.jgraph.graph.GraphView.GraphViewLayerEdit
An implementation of GraphViewChange.
| Field Summary | |
static int |
BACK
|
protected java.lang.Object[] |
cells
|
protected java.lang.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 | |
GraphView.GraphViewLayerEdit(java.lang.Object source,
java.lang.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. |
java.util.Map |
getAttributeMap()
Returns a map of (cell view, attribute) pairs. |
java.lang.Object[] |
getChanged()
Returns the cells that have changed. |
java.lang.Object[] |
getContext()
Returns the views that have not changed explicitly, but implicitly because one of their dependent cells has changed. |
protected java.util.List |
getParentList(java.lang.Object cell)
Returns the list that exclusively contains view. |
java.lang.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 java.lang.Object changeSource
protected transient java.lang.Object[] cells
protected transient int[] next
protected transient int[] prev
protected int layer
| Constructor Detail |
public GraphView.GraphViewLayerEdit(java.lang.Object source,
java.lang.Object[] cells,
int layer)
source - the source of the change (the view)| Method Detail |
protected void updateNext()
public java.lang.Object getSource()
getSource in interface GraphModelEvent.GraphViewChangepublic java.lang.Object[] getChanged()
getChanged in interface GraphModelEvent.GraphViewChangepublic java.lang.Object[] getContext()
getContext in interface GraphModelEvent.GraphViewChangepublic java.util.Map getAttributeMap()
getAttributeMap in interface GraphModelEvent.GraphViewChange
public void redo()
throws javax.swing.undo.CannotRedoException
redo in interface javax.swing.undo.UndoableEditjavax.swing.undo.CannotRedoException - if the change cannot be redone
public void undo()
throws javax.swing.undo.CannotUndoException
undo in interface javax.swing.undo.UndoableEditjavax.swing.undo.CannotUndoException - if the change cannot be undonepublic void execute()
protected void updateListeners()
protected java.util.List getParentList(java.lang.Object cell)
view.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||