|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.joglutils.msg.misc.State
public class State
Represents a collection of state elements, which are updated by actions during scene graph traversal.
Constructor Summary | |
---|---|
State()
This constructor should only be used for the default State for a given Action subclass. |
|
State(State defaults)
This constructor should be used to create the concrete State instances for each Action instance. |
Method Summary | |
---|---|
State |
getDefaults()
Returns the default State, or this State if it corresponds to the defaults for a given Action subclass. |
Element |
getElement(StateIndex index)
Gets the state element at the given index. |
void |
pop()
Pops the state, restoring the state to just before the last push(). |
void |
push()
Pushes (saves) the current state until a pop() restores it. |
static StateIndex |
registerElementType()
Should be called by Element subclasses to register themselves with the State class. |
void |
setElement(StateIndex index,
Element element)
Sets the element at the given state index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public State()
public State(State defaults)
Method Detail |
---|
public State getDefaults()
public Element getElement(StateIndex index)
public void setElement(StateIndex index, Element element)
public void push()
public void pop()
public static StateIndex registerElementType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |