|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.matthiasmann.twl.AnimationState
public class AnimationState
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface de.matthiasmann.twl.renderer.AnimationState |
|---|
AnimationState.StateKey |
| Constructor Summary | |
|---|---|
AnimationState()
Creates a new animation state without parent |
|
AnimationState(AnimationState parent)
Create a new animation state with optional parent. |
|
AnimationState(AnimationState parent,
int size)
Create a new animation state with optional parent. |
|
| Method Summary | |
|---|---|
void |
dontAnimate(AnimationState.StateKey stateKey)
Clears the shouldAnimate flag of the specified animation state. |
void |
dontAnimate(java.lang.String stateName)
Deprecated. |
boolean |
getAnimationState(AnimationState.StateKey stateKey)
Checks if the given state is active. |
int |
getAnimationTime(AnimationState.StateKey stateKey)
Returns the time since the specified state has changed in ms. |
boolean |
getShouldAnimateState(AnimationState.StateKey stateKey)
Checks if this state was changed based on user interaction or not. |
void |
resetAnimationTime(AnimationState.StateKey stateKey)
Resets the animation time of the specified animation state. |
void |
resetAnimationTime(java.lang.String stateName)
Deprecated. |
void |
setAnimationState(AnimationState.StateKey stateKey,
boolean active)
Sets the specified animation state to the given value. |
void |
setAnimationState(java.lang.String stateName,
boolean active)
Deprecated. |
void |
setGUI(GUI gui)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnimationState(AnimationState parent,
int size)
parent - the parent animation state or nullsize - the initial size of the state table (indexed by state IDs)public AnimationState(AnimationState parent)
parent - the parent animation state or nullpublic AnimationState()
AnimationState(de.matthiasmann.twl.AnimationState)| Method Detail |
|---|
public void setGUI(GUI gui)
public int getAnimationTime(AnimationState.StateKey stateKey)
getAnimationTime in interface AnimationStatestateKey - the state key.
public boolean getAnimationState(AnimationState.StateKey stateKey)
getAnimationState in interface AnimationStatestateKey - the state key.
public boolean getShouldAnimateState(AnimationState.StateKey stateKey)
getShouldAnimateState in interface AnimationStatestateKey - the state key.
@Deprecated
public void setAnimationState(java.lang.String stateName,
boolean active)
setAnimationState(StateKey.get(stateName), active);
stateName - the string specifying the state keyactive - the new valuesetAnimationState(de.matthiasmann.twl.renderer.AnimationState.StateKey, boolean),
AnimationState.StateKey.get(java.lang.String)
public void setAnimationState(AnimationState.StateKey stateKey,
boolean active)
stateKey - the state keyactive - the new valuegetAnimationState(de.matthiasmann.twl.renderer.AnimationState.StateKey),
resetAnimationTime(de.matthiasmann.twl.renderer.AnimationState.StateKey)@Deprecated public void resetAnimationTime(java.lang.String stateName)
resetAnimationTime(StateKey.get(stateName));
stateName - the string specifying the state keyresetAnimationTime(de.matthiasmann.twl.renderer.AnimationState.StateKey),
AnimationState.StateKey.get(java.lang.String)public void resetAnimationTime(AnimationState.StateKey stateKey)
shouldAnimate flag.
stateKey - the state key.getAnimationTime(de.matthiasmann.twl.renderer.AnimationState.StateKey),
getShouldAnimateState(de.matthiasmann.twl.renderer.AnimationState.StateKey)@Deprecated public void dontAnimate(java.lang.String stateName)
dontAnimate(StateKey.get(stateName));
stateName - the string specifying the state keydontAnimate(de.matthiasmann.twl.renderer.AnimationState.StateKey),
AnimationState.StateKey.get(java.lang.String)public void dontAnimate(AnimationState.StateKey stateKey)
shouldAnimate flag of the specified animation state.
stateKey - the state key.getShouldAnimateState(de.matthiasmann.twl.renderer.AnimationState.StateKey)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||