| java.lang.Object com.sun.perseus.model.TraitAnim com.sun.perseus.model.FloatTraitAnim com.sun.perseus.model.TransformTraitAnim
All known Subclasses: com.sun.perseus.model.MotionTraitAnim,
TransformTraitAnim | class TransformTraitAnim extends FloatTraitAnim (Code) | | version: $Id: TransformTraitAnim.java,v 1.3 2006/06/29 10:47:36 ln156897 Exp $ |
Method Summary | |
public Object[] | multiply(Object[] value, int iter) 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. | public Object[] | sum(Object[] valueA, Object[] valueB) Used to sum two animated trait values.
Parameters: valueA - the base value. | RefValues | toRefValues(Animation anim, String[] values, String reqTraitNamespace, String reqTraitName) Converts the input values set to a RefValues object. | public float[] | validateValue(Animation anim, String traitNamespace, String traitName, String value) Validates the input trait value. |
TransformTraitAnim | public TransformTraitAnim(ElementNode targetElement, String traitName)(Code) | | Constructs a new TransformTraitAnim for a given ElementNode trait.
Parameters: targetElement - the ElementNode whose trait is animated. Parameters: targetTrait - the name of the animated trait. |
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. |
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 |
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. |
validateValue | public float[] validateValue(Animation anim, String traitNamespace, String traitName, String value)(Code) | | Validates the input trait value.
Parameters: anim - the animation for which the value is validated Parameters: traitNamespace - the namespace trait Parameters: traitName - the name of the trait to be validated. Parameters: value - the value to be validated throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is incompatible with the given trait. |
|
|