|
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.Fixed
public final class Fixed
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 |
---|
public Fixed()
public Fixed(PropertyListener listener)
public Fixed(int value)
public Fixed(double value)
public Fixed(PropertyListener listener, int value)
public Fixed(PropertyListener listener, double value)
Method Detail |
---|
public int getAsFixed()
public int getAsInt()
public int getAsIntFloor()
public int getAsIntCeil()
public int getAsIntRound()
public double get()
public String toString()
toString
in class Object
public boolean equals(Object obj)
Int
,
Fixed
,
Byte
,
Short
,
Integer
,
Long
,
Float
, or
Double
, and
its value is equal to this value.
equals
in class Property
public int hashCode()
hashCode
in class Property
protected void setValue(Number value)
Property
setValue
in class Property
value
- the new value.public void setAsFixed(int fValue)
public void set(int value)
public void set(double value)
public void setAsFixed(int fValue, int delay)
public void set(int value, int delay)
public void set(double value, int delay)
public void bindTo(Int property)
public void bindWithInverse(Int property)
public void bindTo(Fixed property)
public void bindWithInverse(Fixed property)
public void bindTo(BindFunction function)
public void animateAsFixed(int fFromValue, int fToValue, int duration)
public void animateAsFixed(int fFromValue, int fToValue, int duration, Easing easing)
public void animateAsFixed(int fFromValue, int fToValue, int duration, Easing easing, int startDelay)
public void animateToFixed(int fToValue, int duration)
public void animateToFixed(int fToValue, int duration, Easing easing)
public void animateToFixed(int fToValue, int duration, Easing easing, int startDelay)
public void animate(int fromValue, int toValue, int duration)
public void animate(int fromValue, int toValue, int duration, Easing easing)
public void animate(int fromValue, int toValue, int duration, Easing easing, int startDelay)
public void animateTo(int toValue, int duration)
public void animateTo(int toValue, int duration, Easing easing)
public void animateTo(int toValue, int duration, Easing easing, int startDelay)
public void animate(double fromValue, double toValue, int duration)
public void animate(double fromValue, double toValue, int duration, Easing easing)
public void animate(double fromValue, double toValue, int duration, Easing easing, int startDelay)
public void animateTo(double toValue, int duration)
public void animateTo(double toValue, int duration, Easing easing)
public void animateTo(double toValue, int duration, Easing easing, int startDelay)
|
PulpCore | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |