|
mxGraph 2.5.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mxgraph.util.mxUndoableEdit
public class mxUndoableEdit
Implements a 2-dimensional rectangle with double precision coordinates.
Nested Class Summary | |
---|---|
static interface |
mxUndoableEdit.mxUndoableChange
Defines the requirements for an undoable change. |
Field Summary | |
---|---|
protected List<mxUndoableEdit.mxUndoableChange> |
changes
Holds the list of changes that make up this undoable edit. |
protected boolean |
redone
Specifies the state of the undoable edit. |
protected boolean |
significant
Specifies this undoable edit is significant. |
protected Object |
source
Holds the source of the undoable edit. |
protected boolean |
undone
Specifies the state of the undoable edit. |
Constructor Summary | |
---|---|
mxUndoableEdit(Object source)
Constructs a new undoable edit for the given source. |
|
mxUndoableEdit(Object source,
boolean significant)
Constructs a new undoable edit for the given source. |
Method Summary | |
---|---|
void |
add(mxUndoableEdit.mxUndoableChange change)
Adds the specified change to this edit. |
void |
die()
Hook to free resources after the edit has been removed from the command history. |
void |
dispatch()
Hook to notify any listeners of the changes after an undo or redo has been carried out. |
List<mxUndoableEdit.mxUndoableChange> |
getChanges()
|
Object |
getSource()
|
boolean |
isEmpty()
Returns true if the this edit contains no changes. |
boolean |
isRedone()
|
boolean |
isSignificant()
|
boolean |
isUndone()
|
void |
redo()
|
void |
undo()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Object source
protected List<mxUndoableEdit.mxUndoableChange> changes
protected boolean significant
protected boolean undone
protected boolean redone
Constructor Detail |
---|
public mxUndoableEdit(Object source)
public mxUndoableEdit(Object source, boolean significant)
Method Detail |
---|
public void dispatch()
public void die()
public Object getSource()
public List<mxUndoableEdit.mxUndoableChange> getChanges()
public boolean isSignificant()
public boolean isUndone()
public boolean isRedone()
public boolean isEmpty()
public void add(mxUndoableEdit.mxUndoableChange change)
public void undo()
public void redo()
|
mxGraph 2.5.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |