|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.devaki.nextobjects.util.NORedoLog
This class is in charge of most of the Undo/Redo stuff. The model was inspired from the gimp dual stack system. There is a redo stack and an undo stack. Undoing activate the redo stack while doing something activate the undo stack.
Nested Class Summary | |
(package private) class |
NORedoLog.NORedoItem
This class represent a singe item to be redoed. an action item which is made of : |
Field Summary | |
static int |
ACTION_CREATE
Actions Create |
static int |
ACTION_DELETE
Actions Delete |
static int |
ACTION_MOVE
Actions Move |
static int |
ACTION_RESIZE
Actions Resize |
static int |
LOG_REDOLOG
Log Type Descriptor for redo stack |
static int |
LOG_UNDOLOG
Log Type descriptorfor the undo stack |
static int |
REDOLOG_SIZE
Log Size |
Constructor Summary | |
NORedoLog()
Dummy constructor. |
Method Summary | |
void |
clear()
Description of the Method |
void |
log(int pAction,
BaseObject pTarget,
int pX,
int pY)
Log all possible action coming from ModelMan.java |
void |
redo()
An redo call switch the current stack and call each of the
action executers for the last action of the redo stack |
void |
undo()
An undo call switch the current stack and call each of the
action executers for the last action of the undo stack |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ACTION_DELETE
public static final int ACTION_MOVE
public static final int ACTION_RESIZE
public static final int ACTION_CREATE
public static final int LOG_UNDOLOG
public static final int LOG_REDOLOG
public static final int REDOLOG_SIZE
Constructor Detail |
public NORedoLog()
Method Detail |
public void clear()
public void log(int pAction, BaseObject pTarget, int pX, int pY)
pAction
- flag describing the actionpTarget
- the objectpX
- optional X coordinate parameterpY
- optional Y coordinate parameterpublic void undo()
undo
call switch the current stack and call each of the
action executers for the last action of the undo stack
public void redo()
redo
call switch the current stack and call each of the
action executers for the last action of the redo stack
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |