|
JGraph X 1.0.2.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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 |
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 |
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 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 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()
|
JGraph X 1.0.2.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |