| java.lang.Object com.sun.perseus.model.TraitAnim com.sun.perseus.model.FloatTraitAnim
All known Subclasses: com.sun.perseus.model.TransformTraitAnim,
FloatTraitAnim | class FloatTraitAnim extends TraitAnim (Code) | | version: $Id: FloatTraitAnim.java,v 1.3 2006/06/29 10:47:31 ln156897 Exp $ |
FloatTraitAnim | public FloatTraitAnim(ElementNode targetElement, String traitName, String traitType)(Code) | | Constructs a new FloatTraitAnim for a given ElementNode trait.
Parameters: targetElement - the ElementNode whose trait is animated. Parameters: targetTrait - the name of the animated trait. Parameters: traitType - the trait type. |
apply | void apply()(Code) | | Applies the animation effect. The implementation makes sure it
implements the sandwich model by 'pulling' values from the
root animation (i.e., the animation with the highest priority).
|
getBaseValue | public Object[] getBaseValue()(Code) | | Returns the BaseValue as an array of objects.
the base value as an object array. The dimensions of thereturned array depend on the trait. See Also: com.sun.perseus.model.BaseValue |
getTraitImpl | protected String getTraitImpl()(Code) | | the trait's value, as a String. |
multiply | public Object[] multiply(Object[] value, int iter)(Code) | | Used to multiply an animated trait value by a number of iterations.
Parameters: value - the animated trait value to multiply. Parameters: iter - the number of iteration to account for. the multiply result. |
setTraitImpl | void setTraitImpl(String value) throws DOMException(Code) | | Sets the trait's base value, as a String.
Parameters: value - the new trait base value. throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid value for the given trait or null. |
sum | public Object[] sum(Object[] valueA, Object[] valueB)(Code) | | Used to sum two animated trait values.
Parameters: valueA - the base value. May be null. Parameters: valueB - the value to add to the base value. If the baseValue |
supportsInterpolation | boolean supportsInterpolation()(Code) | | true, because FloatTraitAnim support interpolation. |
toRefValues | RefValues toRefValues(Animation anim, String[] values, String reqTraitNamespace, String reqTraitName) throws DOMException(Code) | | Converts the input values set to a RefValues object.
Parameters: anim - the Animation for which the values should beconverted. Parameters: values - a semi-colon seperated list of values which need to bevalidated. Parameters: reqTraitNamespace - the namespace of the trait which has the valuesvalue on the requesting element. Parameters: reqTraitName - the name of the trait which has the values value on the requesting element. throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is incompatible with the given trait. throws: NullPointerException - if values is null. |
|
|