| 
 | JGraph X 2.1.0.7 | |||||||||
| 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.mxUndoableChangeDefines the requirements for an undoable change. | 
| Field Summary | |
|---|---|
| protected  List<mxUndoableEdit.mxUndoableChange> | changesHolds the list of changes that make up this undoable edit. | 
| protected  boolean | redoneSpecifies the state of the undoable edit. | 
| protected  boolean | significantSpecifies this undoable edit is significant. | 
| protected  Object | sourceHolds the source of the undoable edit. | 
| protected  boolean | undoneSpecifies 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()
| 
 | JGraph X 2.1.0.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||