PulpCore

pulpcore.animation
Class Bool

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

public final class Bool
extends Property

An Bool is an boolean value that can be animated over time.


Constructor Summary
Bool()
           
Bool(boolean value)
           
Bool(PropertyListener listener)
           
Bool(PropertyListener listener, boolean value)
           
 
Method Summary
 void bindTo(BindFunction function)
          Binds this property to the specified function.
 void bindTo(Bool property)
          Binds this property to the specified property.
 void bindWithInverse(Bool property)
          Bi-directionally binds this property to the specified property.
 boolean equals(Object obj)
          Returns true if the specified object is a Bool or Boolean and its value is equal to this value.
 boolean get()
           
 int hashCode()
           
 void set(boolean value)
          Sets the value of this Bool.
 void set(boolean value, int delay)
          Sets the value of this Bool after a specific delay.
protected  void setValue(Number value)
          Sets the value for this property.
 void toggle()
          Toggles the value of this Bool (same as the ! logical complement operator, inverting the value).
 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

Bool

public Bool()

Bool

public Bool(PropertyListener listener)

Bool

public Bool(boolean value)

Bool

public Bool(PropertyListener listener,
            boolean value)
Method Detail

get

public boolean get()

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(boolean value)
Sets the value of this Bool. Any previous animations are stopped.


toggle

public void toggle()
Toggles the value of this Bool (same as the ! logical complement operator, inverting the value). Any previous animations are stopped.


set

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


bindTo

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


bindWithInverse

public void bindWithInverse(Bool 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(BindFunction function)
Binds this property to the specified function.


toString

public String toString()
Overrides:
toString in class Object

equals

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

Specified by:
equals in class Property

hashCode

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

PulpCore

Copyright © 2007-2009 Interactive Pulp, LLC.