|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.mlfc.smil.extension.AnimatedIntegerValue
Animated Integer Value, animates values in format "x"
| Constructor Summary | |
AnimatedIntegerValue(float val)
|
|
AnimatedIntegerValue(float val,
boolean percentageVal)
|
|
AnimatedIntegerValue(java.lang.String str)
|
|
| Method Summary | |
AnimatedValue |
add(AnimatedValue val)
Add val to this. |
void |
clampValue()
|
float |
distance(AnimatedValue val)
Calculates the distance between this and val. |
float |
getValue()
|
AnimatedValue |
interpolate(AnimatedValue val,
float t)
Interpolate between this and val by t, where t is [0,1]. |
boolean |
isPercentage()
|
AnimatedValue |
mult(int integer)
Multiply this by integer value. |
static AnimatedIntegerValue |
parse(java.lang.String str)
Parse this string into value. |
java.lang.String |
toString()
Parse this string into value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AnimatedIntegerValue(float val)
public AnimatedIntegerValue(float val,
boolean percentageVal)
public AnimatedIntegerValue(java.lang.String str)
| Method Detail |
public static AnimatedIntegerValue parse(java.lang.String str)
str - String to be parsed
public boolean isPercentage()
public float getValue()
public java.lang.String toString()
AnimatedValue
toString in interface AnimatedValuepublic void clampValue()
clampValue in interface AnimatedValuepublic AnimatedValue add(AnimatedValue val)
add in interface AnimatedValueval - Val to be added to this.
public AnimatedValue mult(int integer)
mult in interface AnimatedValueinteger - Integer value
public AnimatedValue interpolate(AnimatedValue val,
float t)
interpolate in interface AnimatedValueval - AnimatedIntegerValue
public float distance(AnimatedValue val)
distance in interface AnimatedValueval - AnimatedIntegerValue
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||