public class LXCommandEngine extends Object
Modifier and Type | Field and Description |
---|---|
BooleanParameter |
dirty |
MutableParameter |
redoChanged |
MutableParameter |
undoChanged |
Constructor and Description |
---|
LXCommandEngine(LX lx) |
Modifier and Type | Method and Description |
---|---|
LXCommandEngine |
clear() |
LXCommand |
getRedoCommand() |
LXCommand |
getUndoCommand() |
boolean |
isDirty() |
LXCommandEngine |
perform(LXCommand command)
Performs a command and pushes it onto the undo stack.
|
LXCommandEngine |
redo()
When possible, re-does an operation that has been undone.
|
LXCommandEngine |
setDirty(boolean dirty) |
LXCommandEngine |
undo()
Undoes the last command on the undo stack, if there is any.
|
public final MutableParameter undoChanged
public final MutableParameter redoChanged
public final BooleanParameter dirty
public LXCommandEngine(LX lx)
public LXCommandEngine perform(LXCommand command)
command
- Command to perform and push onto the undo stackpublic boolean isDirty()
public LXCommandEngine setDirty(boolean dirty)
public LXCommand getUndoCommand()
public LXCommand getRedoCommand()
public LXCommandEngine clear()
public LXCommandEngine undo()
public LXCommandEngine redo()
LX library by Mark C. Slee. © 2012-2020