PulpCore

pulpcore.animation
Class Fixed

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

public final class Fixed
extends Property

A Fixed is an fixed-point value (16 bits integer, 16 bits fraction) that can be animated over time. See CoreMath for methods to convert between integers and fixed-point numbers.


Constructor Summary
Fixed()
           
Fixed(double value)
           
Fixed(int value)
           
Fixed(PropertyListener listener)
           
Fixed(PropertyListener listener, double value)
           
Fixed(PropertyListener listener, int value)
           
 
Method Summary
 void animate(double fromValue, double toValue, int duration)
          Animates this property from the one double (fromValue) to another (toValue).
 void animate(double fromValue, double toValue, int duration, Easing easing)
          Animates this property from the one double (fromValue) to another (toValue).
 void animate(double fromValue, double toValue, int duration, Easing easing, int startDelay)
          Animates this property from the one double (fromValue) to another (toValue).
 void animate(int fromValue, int toValue, int duration)
          Animates this property from the one integer (fromValue) to another (toValue).
 void animate(int fromValue, int toValue, int duration, Easing easing)
          Animates this property from the one integer (fromValue) to another (toValue).
 void animate(int fromValue, int toValue, int duration, Easing easing, int startDelay)
          Animates this property from the one integer (fromValue) to another (toValue).
 void animateAsFixed(int fFromValue, int fToValue, int duration)
          Animates this property from the one fixed-point value (fFromValue) to another (fToValue).
 void animateAsFixed(int fFromValue, int fToValue, int duration, Easing easing)
          Animates this property from the one fixed-point value (fFromValue) to another (fToValue).
 void animateAsFixed(int fFromValue, int fToValue, int duration, Easing easing, int startDelay)
          Animates this property from the one fixed-point value (fFromValue) to another (fToValue).
 void animateTo(double toValue, int duration)
          Animates this property from the current value to the specified double.
 void animateTo(double toValue, int duration, Easing easing)
          Animates this property from the current value to the specified double.
 void animateTo(double toValue, int duration, Easing easing, int startDelay)
          Animates this property from the current value to the specified double.
 void animateTo(int toValue, int duration)
          Animates this property from the current value to the specified integer.
 void animateTo(int toValue, int duration, Easing easing)
          Animates this property from the current value to the specified integer.
 void animateTo(int toValue, int duration, Easing easing, int startDelay)
          Animates this property from the current value to the specified integer.
 void animateToFixed(int fToValue, int duration)
          Animates this property from the current value to the specified fixed-point value.
 void animateToFixed(int fToValue, int duration, Easing easing)
          Animates this property from the current value to the specified fixed-point value.
 void animateToFixed(int fToValue, int duration, Easing easing, int startDelay)
          Animates this property from the current value to the specified fixed-point value.
 void bindTo(BindFunction function)
          Binds this property to the specified function.
 void bindTo(Fixed property)
          Binds this property to the specified property.
 void bindTo(Int property)
          Binds this property to the specified property.
 void bindWithInverse(Fixed property)
          Bi-directionally binds this property to the specified property.
 void bindWithInverse(Int property)
          Bi-directionally binds this property to the specified property.
 boolean equals(Object obj)
          Returns true if the specified object is an Int, Fixed, Byte, Short, Integer, Long, Float, or Double, and its value is equal to this value.
 double get()
           
 int getAsFixed()
           
 int getAsInt()
           
 int getAsIntCeil()
           
 int getAsIntFloor()
           
 int getAsIntRound()
           
 int hashCode()
           
 void set(double value)
          Sets the value of this property.
 void set(double value, int delay)
          Sets the value of this property after a specific delay.
 void set(int value)
          Sets the value of this property.
 void set(int value, int delay)
          Sets the value of this property after a specific delay.
 void setAsFixed(int fValue)
          Sets the value of this property.
 void setAsFixed(int fValue, int delay)
          Sets the value of this property after a specific 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, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Fixed

public Fixed()

Fixed

public Fixed(PropertyListener listener)

Fixed

public Fixed(int value)

Fixed

public Fixed(double value)

Fixed

public Fixed(PropertyListener listener,
             int value)

Fixed

public Fixed(PropertyListener listener,
             double value)
Method Detail

getAsFixed

public int getAsFixed()

getAsInt

public int getAsInt()

getAsIntFloor

public int getAsIntFloor()

getAsIntCeil

public int getAsIntCeil()

getAsIntRound

public int getAsIntRound()

get

public double get()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Returns true if the specified object is an Int, Fixed, Byte, Short, Integer, Long, Float, or Double, and its value is equal to this value.

Specified by:
equals in class Property

hashCode

public int hashCode()
Specified by:
hashCode in class Property

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.

setAsFixed

public void setAsFixed(int fValue)
Sets the value of this property. Any previous animations are stopped.


set

public void set(int value)
Sets the value of this property. Any previous animations are stopped.


set

public void set(double value)
Sets the value of this property. Any previous animations are stopped.


setAsFixed

public void setAsFixed(int fValue,
                       int delay)
Sets the value of this property after a specific delay. Any previous animations are stopped.


set

public void set(int value,
                int delay)
Sets the value of this property after a specific delay. Any previous animations are stopped.


set

public void set(double value,
                int delay)
Sets the value of this property after a specific delay. Any previous animations are stopped.


bindTo

public void bindTo(Int property)
Binds this property to the specified property. If this property is given a new behavior, the binding is broken.


bindWithInverse

public void bindWithInverse(Int property)
Bi-directionally binds this property to the specified property. If this property is given a new behavior, the specified property is then bi-directionally bound to this property. The binding is permanent, until a new bi-directional binding is specified.


bindTo

public void bindTo(Fixed property)
Binds this property to the specified property. If this property is given a new behavior, the binding is broken.


bindWithInverse

public void bindWithInverse(Fixed property)
Bi-directionally binds this property to the specified property. If this property is given a new behavior, the specified property is then bi-directionally bound to this property.


bindTo

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


animateAsFixed

public void animateAsFixed(int fFromValue,
                           int fToValue,
                           int duration)
Animates this property from the one fixed-point value (fFromValue) to another (fToValue). Any previous animations are stopped.


animateAsFixed

public void animateAsFixed(int fFromValue,
                           int fToValue,
                           int duration,
                           Easing easing)
Animates this property from the one fixed-point value (fFromValue) to another (fToValue). Any previous animations are stopped.


animateAsFixed

public void animateAsFixed(int fFromValue,
                           int fToValue,
                           int duration,
                           Easing easing,
                           int startDelay)
Animates this property from the one fixed-point value (fFromValue) to another (fToValue). Any previous animations are stopped.


animateToFixed

public void animateToFixed(int fToValue,
                           int duration)
Animates this property from the current value to the specified fixed-point value. Any previous animations are stopped.


animateToFixed

public void animateToFixed(int fToValue,
                           int duration,
                           Easing easing)
Animates this property from the current value to the specified fixed-point value. Any previous animations are stopped.


animateToFixed

public void animateToFixed(int fToValue,
                           int duration,
                           Easing easing,
                           int startDelay)
Animates this property from the current value to the specified fixed-point value. Any previous animations are stopped.


animate

public void animate(int fromValue,
                    int toValue,
                    int duration)
Animates this property from the one integer (fromValue) to another (toValue). Any previous animations are stopped.


animate

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


animate

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


animateTo

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


animateTo

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


animateTo

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


animate

public void animate(double fromValue,
                    double toValue,
                    int duration)
Animates this property from the one double (fromValue) to another (toValue). Any previous animations are stopped.


animate

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


animate

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


animateTo

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


animateTo

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


animateTo

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


PulpCore

Copyright © 2007-2009 Interactive Pulp, LLC.