|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.UndoRecord
public class UndoRecord
The UndoRecord class records a series of commands, allowing the user to undo a previous action.
Field Summary | |
---|---|
static int |
ADD_OBJECT
|
static int |
ADD_TO_GROUP
|
static int |
COPY_COORDS
|
static int |
COPY_OBJECT
|
static int |
COPY_OBJECT_INFO
|
static int |
COPY_SKELETON
|
static int |
COPY_TRACK
|
static int |
COPY_VERTEX_POSITIONS
|
static int |
DELETE_OBJECT
|
static int |
REMOVE_FROM_GROUP
|
static int |
RENAME_OBJECT
|
static int |
SET_GROUP_CONTENTS
|
static int |
SET_MESH_SELECTION
|
static int |
SET_OBJECT
|
static int |
SET_SCENE_SELECTION
|
static int |
SET_TRACK
|
static int |
SET_TRACK_LIST
|
Constructor Summary | |
---|---|
UndoRecord(EditingWindow win,
boolean isRedo)
Create a new UndoRecord. |
|
UndoRecord(EditingWindow win,
boolean isRedo,
int theCommand,
java.lang.Object[] commandData)
Create a new UndoRecord whose script contains a single command. |
Method Summary | |
---|---|
void |
addCommand(int theCommand,
java.lang.Object[] commandData)
Add a command to the end of this record's script. |
void |
addCommandAtBeginning(int theCommand,
java.lang.Object[] commandData)
Add a command to the beginning of this record's script. |
UndoRecord |
execute()
Execute the record's script. |
java.util.List<java.lang.Integer> |
getCommands()
Get the list of commands in this record's script. |
boolean |
isRedo()
Get whether this record represents "redoing" a previously undone operation. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int COPY_OBJECT
public static final int COPY_COORDS
public static final int COPY_OBJECT_INFO
public static final int SET_OBJECT
public static final int ADD_OBJECT
public static final int DELETE_OBJECT
public static final int RENAME_OBJECT
public static final int ADD_TO_GROUP
public static final int REMOVE_FROM_GROUP
public static final int SET_GROUP_CONTENTS
public static final int SET_TRACK
public static final int SET_TRACK_LIST
public static final int COPY_TRACK
public static final int COPY_VERTEX_POSITIONS
public static final int COPY_SKELETON
public static final int SET_MESH_SELECTION
public static final int SET_SCENE_SELECTION
Constructor Detail |
---|
public UndoRecord(EditingWindow win, boolean isRedo)
addCommand()
or addCommandAtBeginning()
.
win
- the EditingWindow this record belongs toisRedo
- whether this record represents "redoing" a previously undone operationpublic UndoRecord(EditingWindow win, boolean isRedo, int theCommand, java.lang.Object[] commandData)
addCommand()
or addCommandAtBeginning()
.
win
- the EditingWindow this record belongs toisRedo
- whether this record represents "redoing" a previously undone operationtheCommand
- the command to add to the scriptcommandData
- data to include as arguments to the commandMethod Detail |
---|
public boolean isRedo()
public java.util.List<java.lang.Integer> getCommands()
public void addCommand(int theCommand, java.lang.Object[] commandData)
theCommand
- the command to add to the scriptcommandData
- data to include as arguments to the commandpublic void addCommandAtBeginning(int theCommand, java.lang.Object[] commandData)
theCommand
- the command to add to the scriptcommandData
- data to include as arguments to the commandpublic UndoRecord execute()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |