|
PulpCore | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Behavior
A Behavior controls how a Property
's value changes over time.
Property.setBehavior(Behavior)
Method Summary | |
---|---|
void |
fastForward()
Fast-forwards to the end of the Behavior if possible. |
int |
getValue()
Returns this Behavior's current value. |
boolean |
isFinished()
Checks if the Behavior will no longer update its value. |
boolean |
update(int elapsedTime)
Updates this Behavior and returns true if the update causes the value to change. |
Method Detail |
---|
boolean update(int elapsedTime)
elapsedTime
- The amount of time to increment, in milliseconds.
void fastForward()
boolean isFinished()
update(int)
will no longer return true
.
int getValue()
|
PulpCore | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |