|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hdcookbook.grin.commands.Command com.hdcookbook.grin.commands.SetVisualRCStateCommand
public class SetVisualRCStateCommand
This command is used to set the state of a visual RC handler. It's useful when going into a segment that contains such a handler, to put things into a known state.
Field Summary | |
---|---|
protected boolean |
activated
|
protected int |
gridNumber
|
protected VisualRCHandler |
handler
|
protected boolean |
runCommands
|
protected int |
state
|
Fields inherited from class com.hdcookbook.grin.commands.Command |
---|
show |
Constructor Summary | |
---|---|
SetVisualRCStateCommand(Show show)
|
|
SetVisualRCStateCommand(Show show,
boolean activated,
int state,
VisualRCHandler handler,
boolean runCommands)
Constructor for use by xlets that want to set a handler state |
|
SetVisualRCStateCommand(Show show,
boolean activated,
int state,
VisualRCHandler handler,
boolean runCommands,
int gridNumber)
Constructor for use by xlets that want to set a handler state |
Method Summary | |
---|---|
void |
execute()
Execute the command. |
void |
execute(Show caller)
Execute the command. |
boolean |
getActivated()
|
boolean |
getRunCommands()
|
int |
getState()
|
VisualRCHandler |
getVisualRCHandler()
|
void |
readInstanceData(GrinDataInputStream in,
int length)
Reads in this node information from the binary file format. |
Methods inherited from class com.hdcookbook.grin.commands.Command |
---|
cloneIfNeeded, deferNextCommands, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean activated
protected int state
protected VisualRCHandler handler
protected boolean runCommands
protected int gridNumber
Constructor Detail |
---|
public SetVisualRCStateCommand(Show show)
public SetVisualRCStateCommand(Show show, boolean activated, int state, VisualRCHandler handler, boolean runCommands)
public SetVisualRCStateCommand(Show show, boolean activated, int state, VisualRCHandler handler, boolean runCommands, int gridNumber)
Method Detail |
---|
public boolean getActivated()
public int getState()
public VisualRCHandler getVisualRCHandler()
public boolean getRunCommands()
public void execute(Show caller)
Command
execute
in class Command
caller
- The show that is executing this command. This might
not be the same as the show this command was created
under.public void execute()
Command
execute
in class Command
public void readInstanceData(GrinDataInputStream in, int length) throws java.io.IOException
Node
An implementation of this method is recommended to call in.readSuperClassData(this) as the first line of the method to read in information that is defined in the base class of this Node type.
This should only be called while initializing this object.
readInstanceData
in interface Node
in
- InputStream to read data from.length
- the number of bytes that this node's information occupies
in the InputStream. The implementation of this method is expected to
read exactly this number of bytes from the stream. This can be used
for a debugging purpose.
java.io.IOException
- if error occurs.GrinDataInputStream.readSuperClassData(Feature)
,
GrinDataInputStream.readSuperClassData(RCHandler)
,
GrinDataInputStream.readSuperClassData(Segment)
,
GrinDataInputStream.readSuperClassData(Command)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |