|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmauda.undoredo.UndoRedoElement
public class UndoRedoElement
Stores one single elementary undo/redo element
| Field Summary | |
|---|---|
static int |
APPEND
ID that indicates that an operation was appended |
static int |
DELETE
ID that indicates that an operation was deleted |
static int |
UNDEFINED
ID for defining a undefined element, only for initialisation used. |
| Constructor Summary | |
|---|---|
UndoRedoElement()
Creates an UndoRedoElement |
|
UndoRedoElement(int p,
java.lang.Object o,
int i)
Creates an UndoRedoElement |
|
| Method Summary | |
|---|---|
int |
getID()
Returns the ID of the change |
java.lang.Object |
getObj()
Returns the corresponding object |
int |
getPos()
Returns the position where the change occured |
UndoRedoElement |
invert()
Inverts this element. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int UNDEFINED
public static final int DELETE
public static final int APPEND
| Constructor Detail |
|---|
public UndoRedoElement()
public UndoRedoElement(int p,
java.lang.Object o,
int i)
p - The position where the change occureso - The corresponding object (operation, fibheap, etc.)i - ID| Method Detail |
|---|
public int getPos()
public java.lang.Object getObj()
public int getID()
public UndoRedoElement invert()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||