PulpCore

pulpcore.animation
Interface Behavior

All Known Implementing Classes:
Tween

public interface Behavior

A Behavior controls how a Property's value changes over time.

See Also:
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

update

boolean update(int elapsedTime)
Updates this Behavior and returns true if the update causes the value to change.

Parameters:
elapsedTime - The amount of time to increment, in milliseconds.
Returns:
true if the update causes the value to change.

fastForward

void fastForward()
Fast-forwards to the end of the Behavior if possible.


isFinished

boolean isFinished()
Checks if the Behavior will no longer update its value. In other words, update(int) will no longer return true.

Returns:
true if this Behavior will no longer update it's value.

getValue

int getValue()
Returns this Behavior's current value. The value will be interpreted differently depending on the Property it's attached to.

Returns:
The current value.

PulpCore

Copyright © 2007-2009 Interactive Pulp, LLC.