|
|||||||||||
| 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.AnimatedColorValue
Animated Color Value, animates values in format "rgb(16,16,16)" or "#101010"
| Constructor Summary | |
AnimatedColorValue(float dummy)
|
|
AnimatedColorValue(float r,
float g,
float b)
|
|
AnimatedColorValue(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 |
getBlue()
|
float |
getGreen()
|
float |
getRed()
|
AnimatedValue |
interpolate(AnimatedValue val,
float t)
Interpolate between this and val by t, where t is [0,1]. |
AnimatedValue |
mult(int integer)
Multiply this by integer value. |
static AnimatedColorValue |
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 AnimatedColorValue(float dummy)
public AnimatedColorValue(float r,
float g,
float b)
public AnimatedColorValue(java.lang.String str)
| Method Detail |
public static AnimatedColorValue parse(java.lang.String str)
str - String to be parsed
public float getRed()
public float getGreen()
public float getBlue()
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 - AnimatedColorValue
public float distance(AnimatedValue val)
distance in interface AnimatedValueval - AnimatedColorValue
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||