|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.keenedgesoftware.scrutinize.core.CoreEntity | +--com.keenedgesoftware.scrutinize.core.Command
Abstract class for any command.
Field Summary | |
static int |
LEVEL_0
Level 0, used for top-level commands (eg start, quit) |
static int |
LEVEL_1
Level 1, used for interactive modelling commands. |
static int |
LEVEL_2
Level 2, used for primary camera controls. |
static int |
LEVEL_3
Level 3, used for secondary camera controls. |
static int |
LEVEL_4
Level 4, used for batch modelling commands |
static MessageParser |
parser
Message parser |
static int |
STATE_FINAL
Final state, which the command-manager interprets as meaning the command is finished. |
static int |
STATE_INITIAL
Initial state, in which all commands are created. |
static int |
TYPE_SUSPENDING
Suspending type of command. |
static int |
TYPE_TERMINATING
Terminating type of command. |
Fields inherited from class com.keenedgesoftware.scrutinize.core.CoreEntity |
ACTIVATE, BACKSLASH, EOL, GO, HASH, INIT, NEWLINE, QUIT, QUOTE, SLASH, SPACE |
Constructor Summary | |
Command()
Default constructor |
|
Command(CommandManager cm,
int type)
Usual constructor for suspending type of command |
|
Command(CommandManager cm,
int type,
int level)
Usual constructor for terminating type of command |
Method Summary | |
com.keenedgesoftware.scrutinize.core.misc.events.CursorEvent |
getCursor()
Cursor |
int |
getLevel()
Returns the level (ie "weight") of the command |
Picker |
getPicker()
Picking. |
com.keenedgesoftware.scrutinize.core.misc.events.PromptEvent |
getPrompt()
Prompt |
Selector |
getSelector()
Selection. |
int |
getState()
Returns the current state of the command |
int |
getType()
Returns the type of the command |
abstract boolean |
messageHandler(java.lang.String message)
Message handler. |
void |
setCursor(com.keenedgesoftware.scrutinize.core.misc.events.CursorEvent cursor)
|
void |
setPicker(Picker picker)
|
void |
setPrompt(com.keenedgesoftware.scrutinize.core.misc.events.PromptEvent prompt)
|
void |
setSelector(Selector selector)
|
void |
setState(int state)
Sets the current state of the command to the specified value |
Methods inherited from class com.keenedgesoftware.scrutinize.core.CoreEntity |
getActiveView, getBroadcastManager, getCommandManager, getGraphicsGate, getGraphicsWorld, getMiscWorld, getModelWorld, getNetcaster, getRecorder, getScene, getSystemWorld, getTaskManager, getUniverse |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int STATE_INITIAL
public static final int STATE_FINAL
public static final int TYPE_TERMINATING
public static final int TYPE_SUSPENDING
public static final int LEVEL_0
public static final int LEVEL_1
public static final int LEVEL_2
public static final int LEVEL_3
public static final int LEVEL_4
public static final MessageParser parser
Constructor Detail |
public Command()
public Command(CommandManager cm, int type, int level)
public Command(CommandManager cm, int type)
Method Detail |
public final int getState()
public final void setState(int state)
public final int getType()
public final int getLevel()
public Picker getPicker()
public void setPicker(Picker picker)
public Selector getSelector()
public void setSelector(Selector selector)
public com.keenedgesoftware.scrutinize.core.misc.events.PromptEvent getPrompt()
public void setPrompt(com.keenedgesoftware.scrutinize.core.misc.events.PromptEvent prompt)
public com.keenedgesoftware.scrutinize.core.misc.events.CursorEvent getCursor()
public void setCursor(com.keenedgesoftware.scrutinize.core.misc.events.CursorEvent cursor)
public abstract boolean messageHandler(java.lang.String message)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |