PulpCore

pulpcore.animation
Class Int

java.lang.Object
  extended by pulpcore.animation.Property
      extended by pulpcore.animation.Int
Direct Known Subclasses:
EncryptedInt

public class Int
extends Property

An Int is an integer value that can be animated over time.


Constructor Summary
Int()
          Constructs a new Int object with no listener and the value of zero.
Int(int value)
          Constructs a new Int object with the specified value and no listener.
Int(PropertyListener listener)
          Constructs a new Int object with the specified listener and the value of zero.
Int(PropertyListener listener, int value)
          Constructs a new Int object with the specified listener and value.
 
Method Summary
 void animate(int fromValue, int toValue, int duration)
          Animates this Int from the one value (fromValue) to another (toValue).
 void animate(int fromValue, int toValue, int duration, Easing easing)
          Animates this Int from the one value (fromValue) to another (toValue).
 void animate(int fromValue, int toValue, int duration, Easing easing, int startDelay)
          Animates this Int from the one value (fromValue) to another (toValue).
 void animateTo(int toValue, int duration)
          Animates this Int from the current value to the specified value.
 void animateTo(int toValue, int duration, Easing easing)
          Animates this Int from the current value to the specified value.
 void animateTo(int toValue, 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(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.
 int get()
           
 int hashCode()
           
 void set(int value)
          Sets the value of this Int.
 void set(int value, int delay)
          Sets the value of this Int 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

Int

public Int()
Constructs a new Int object with no listener and the value of zero.


Int

public Int(PropertyListener listener)
Constructs a new Int object with the specified listener and the value of zero. The listener is notified when the value is modified.


Int

public Int(int value)
Constructs a new Int object with the specified value and no listener.


Int

public Int(PropertyListener listener,
           int value)
Constructs a new Int object with the specified listener and value. The listener is notified when the value is modified.

Method Detail

get

public int 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.

set

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


set

public void set(int value,
                int delay)
Sets the value of this Int 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.


animate

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


animate

public void animate(int fromValue,
                    int toValue,
                    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 fromValue,
                    int toValue,
                    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 toValue,
                      int duration)
Animates this Int from the current value to the specified value. Any previous animations are stopped.


animateTo

public void animateTo(int toValue,
                      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 toValue,
                      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-2009 Interactive Pulp, LLC.