| java.lang.Object com.sun.perseus.model.TraitAnim com.sun.perseus.model.FloatTraitAnim com.sun.perseus.model.TransformTraitAnim com.sun.perseus.model.MotionTraitAnim
MotionTraitAnim | class MotionTraitAnim extends TransformTraitAnim (Code) | | version: $Id: MotionTraitAnim.java,v 1.4 2006/06/29 10:47:33 ln156897 Exp $ |
Method Summary | |
LeafMotionSegment | addCubicSegment(AnimateMotion motion, float[][] curve, Vector segments, Vector motionCoords, LeafMotionSegment prevSegment) Adds the input curve as a CompositeSegment to the segments vector.
Parameters: motion - the AnimateMotion element for which the curve is added. Parameters: curve - a float array with the curve definition. Parameters: segments - the vector holding all the animation segments. Parameters: motionCoords - a working vector where coordinates for the various linear approximations can be stored. Parameters: prevSegment - the previous LeafMotionSegment. | RefValues | toRefValues(Animation anim, String[] values, String reqTraitNamespace, String reqTraitName) Converts the input values set to a RefValues object. | public void | validateCoordinate(Animation anim, String traitNamespace, String traitName, String value, float[] pt) Parses a coordinate pair. |
MotionTraitAnim | public MotionTraitAnim(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. |
addCubicSegment | LeafMotionSegment addCubicSegment(AnimateMotion motion, float[][] curve, Vector segments, Vector motionCoords, LeafMotionSegment prevSegment)(Code) | | Adds the input curve as a CompositeSegment to the segments vector.
Parameters: motion - the AnimateMotion element for which the curve is added. Parameters: curve - a float array with the curve definition. Parameters: segments - the vector holding all the animation segments. Parameters: motionCoords - a working vector where coordinates for the various linear approximations can be stored. Parameters: prevSegment - the previous LeafMotionSegment. May be null. the last LeafMotionSegment added to into the segments vector. |
toRefValues | RefValues toRefValues(Animation anim, String[] values, String reqTraitNamespace, String reqTraitName) throws DOMException(Code) | | Converts the input values set to a RefValues object. For
a MotionTraitAnim, the input values may be the to/from/by/values values
or the path attribute value.
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. |
validateCoordinate | public void validateCoordinate(Animation anim, String traitNamespace, String traitName, String value, float[] pt) throws DOMException(Code) | | Parses a coordinate pair.
throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is incompatible with the given trait. |
|
|