PulpCore

pulpcore.animation
Class Color

java.lang.Object
  extended by pulpcore.animation.Property
      extended by pulpcore.animation.Color

public class Color
extends Property

An Color is a 32-bit ARGB value that can be animated over time.


Constructor Summary
Color()
           
Color(int argbColor)
           
Color(PropertyListener listener)
           
Color(PropertyListener listener, int argbColor)
           
 
Method Summary
 void animate(int fromARGB, int toARGB, int duration)
          Animates this Int from the one value (fromValue) to another (toValue).
 void animate(int fromARGB, int toARGB, int duration, Easing easing)
          Animates this Int from the one value (fromValue) to another (toValue).
 void animate(int fromARGB, int toARGB, int duration, Easing easing, int startDelay)
          Animates this Int from the one value (fromValue) to another (toValue).
 void animateTo(int toARGB, int duration)
          Animates this Int from the current value to the specified value.
 void animateTo(int toARGB, int duration, Easing easing)
          Animates this Int from the current value to the specified value.
 void animateTo(int toARGB, int duration, Easing easing, int startDelay)
          Animates this Int from the current value to the specified value.
 void bindTo(BindFunction function)
          Binds this property to the specified function.
 void bindTo(Color property)
          Binds this property to the specified property.
 boolean equals(Object obj)
          Returns true if the specified object is a Color or Integer and its value is equal to this value.
 int get()
          Gets the packed, 32-bit ARGB value of this color.
 void set(int argbColor)
           
 void set(int argbColor, int delay)
           
protected  void setValue(Number value)
          Sets the value for this property.
 String toString()
           
 
Methods inherited from class pulpcore.animation.Property
addListener, getBehavior, getListeners, getValue, isAnimating, removeListener, setBehavior, setValue, stopAnimation, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Color

public Color()

Color

public Color(PropertyListener listener)

Color

public Color(int argbColor)

Color

public Color(PropertyListener listener,
             int argbColor)
Method Detail

setValue

protected void setValue(Number value)
Description copied from class: Property
Sets the value for this property. If the new value is different from the old value, any listeners are alerted. The behavior, if any, is not changed.

Specified by:
setValue in class Property
Parameters:
value - the new value.

set

public void set(int argbColor)

set

public void set(int argbColor,
                int delay)

get

public int get()
Gets the packed, 32-bit ARGB value of this color.


toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Returns true if the specified object is a Color or Integer and its value is equal to this value.

Specified by:
equals in class Property

bindTo

public void bindTo(Color property)
Binds this property to the specified property.


bindTo

public void bindTo(BindFunction function)
Binds this property to the specified function.


animate

public void animate(int fromARGB,
                    int toARGB,
                    int duration)
Animates this Int from the one value (fromValue) to another (toValue). Any previous animations are stopped.


animate

public void animate(int fromARGB,
                    int toARGB,
                    int duration,
                    Easing easing)
Animates this Int from the one value (fromValue) to another (toValue). Any previous animations are stopped.


animate

public void animate(int fromARGB,
                    int toARGB,
                    int duration,
                    Easing easing,
                    int startDelay)
Animates this Int from the one value (fromValue) to another (toValue). Any previous animations are stopped.


animateTo

public void animateTo(int toARGB,
                      int duration)
Animates this Int from the current value to the specified value. Any previous animations are stopped.


animateTo

public void animateTo(int toARGB,
                      int duration,
                      Easing easing)
Animates this Int from the current value to the specified value. Any previous animations are stopped.


animateTo

public void animateTo(int toARGB,
                      int duration,
                      Easing easing,
                      int startDelay)
Animates this Int from the current value to the specified value. Any previous animations are stopped.


PulpCore

Copyright © 2007-2008 Interactive Pulp, LLC.