|
PulpCore | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pulpcore.animation.Property pulpcore.animation.Bool
public final class Bool
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 |
---|
public Bool()
public Bool(PropertyListener listener)
public Bool(boolean value)
public Bool(PropertyListener listener, boolean value)
Method Detail |
---|
public boolean get()
protected void setValue(Number value)
Property
setValue
in class Property
value
- the new value.public void set(boolean value)
public void toggle()
!
logical complement operator,
inverting the value).
Any previous animations are stopped.
public void set(boolean value, int delay)
public void bindTo(Bool property)
public void bindWithInverse(Bool property)
public void bindTo(BindFunction function)
public String toString()
toString
in class Object
public boolean equals(Object obj)
Bool
or
Boolean
and
its value is equal to this value.
equals
in class Property
public int hashCode()
hashCode
in class Property
|
PulpCore | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |