| java.lang.Object com.sun.perseus.model.TraitAnim com.sun.perseus.model.StringTraitAnim
StringTraitAnim | final class StringTraitAnim extends TraitAnim (Code) | | version: $Id: StringTraitAnim.java,v 1.2 2006/04/21 06:38:55 st125089 Exp $ |
Constructor Summary | |
public | StringTraitAnim(ElementNode targetElement, String traitNamespace, String traitName) Constructs a new StringTraitAnim for a given ElementNode trait
in the given namespace.
Parameters: targetElement - the ElementNode whose trait is animated. Parameters: targetNamespace - the target trait's namespace. |
Method Summary | |
void | apply() Applies the animation effect. | public Object[] | getBaseValue() Returns the BaseValue as an array of objects.
the base value as an object array. | protected String | getTraitImpl() | 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. | void | setTraitImpl(String value) Sets the trait's base value, as a String. | public Object[] | sum(Object[] valueA, Object[] valueB) Used to sum two animated trait values. | RefValues | toRefValues(Animation anim, String[] values, String reqTraitNamespace, String reqTraitName) Converts the input values set to a RefValues object. |
StringTraitAnim | public StringTraitAnim(ElementNode targetElement, String traitNamespace, String traitName)(Code) | | Constructs a new StringTraitAnim for a given ElementNode trait
in the given namespace.
Parameters: targetElement - the ElementNode whose trait is animated. Parameters: targetNamespace - the target trait's namespace. Should not be null. The per-element partition namespace should be represented by the ElementNode.NULL_NS value. Parameters: targetTrait - the name of the animated trait. |
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. Because String traits cannot
be summed, this always returns the second parameter value.
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. |
|
|