|
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.GraphViewEdit
public class GraphLayoutCache.GraphViewEdit
An implementation of GraphViewChange.
Field Summary | |
---|---|
protected java.util.Map |
attributes
|
protected java.lang.Object[] |
cells
|
protected CellView[] |
context
|
protected CellView[] |
hidden
|
protected java.lang.Object[] |
invisible
|
protected java.lang.Object[] |
visible
|
Fields inherited from class javax.swing.undo.CompoundEdit |
---|
edits |
Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
---|
RedoName, UndoName |
Constructor Summary | |
---|---|
GraphLayoutCache.GraphViewEdit(java.util.Map nested)
Constructs a GraphViewEdit. |
|
GraphLayoutCache.GraphViewEdit(java.util.Map attributes,
java.lang.Object[] visible,
java.lang.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. |
java.util.Map |
getAttributes()
Returns a map of (cell view, attribute) pairs. |
java.lang.Object[] |
getChanged()
Returns the views 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. |
java.lang.Object |
getSource()
Returns the source of this change. |
boolean |
isSignificant()
|
void |
redo()
Redoes a 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 java.lang.Object[] cells
protected CellView[] context
protected CellView[] hidden
protected java.util.Map attributes
protected java.lang.Object[] visible
protected java.lang.Object[] invisible
Constructor Detail |
---|
public GraphLayoutCache.GraphViewEdit(java.util.Map nested)
viewAttributes
- the map that defines the new attributespublic GraphLayoutCache.GraphViewEdit(java.util.Map attributes, java.lang.Object[] visible, java.lang.Object[] invisible)
viewAttributes
- the map that defines the new attributesMethod Detail |
---|
public boolean isSignificant()
isSignificant
in interface javax.swing.undo.UndoableEdit
isSignificant
in class javax.swing.undo.CompoundEdit
public java.lang.Object getSource()
getSource
in interface GraphModelEvent.GraphViewChange
public java.lang.Object[] getChanged()
getChanged
in interface GraphModelEvent.GraphViewChange
public java.lang.Object[] getContext()
getContext
in interface GraphModelEvent.GraphViewChange
public java.util.Map getAttributes()
getAttributes
in interface GraphModelEvent.GraphViewChange
public void redo() throws javax.swing.undo.CannotRedoException
redo
in interface javax.swing.undo.UndoableEdit
redo
in class javax.swing.undo.CompoundEdit
javax.swing.undo.CannotRedoException
- if the change cannot be redonepublic void undo() throws javax.swing.undo.CannotUndoException
undo
in interface javax.swing.undo.UndoableEdit
undo
in class javax.swing.undo.CompoundEdit
javax.swing.undo.CannotUndoException
- if the change cannot be undonepublic void execute()
execute
in interface GraphModelEvent.ExecutableGraphChange
|
JGraph |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |