org.apache.batik.dom.anim
public interface AnimationTarget
Field Summary | |
---|---|
short | PERCENTAGE_FONT_SIZE |
short | PERCENTAGE_VIEWPORT_HEIGHT |
short | PERCENTAGE_VIEWPORT_SIZE |
short | PERCENTAGE_VIEWPORT_WIDTH |
Method Summary | |
---|---|
void | addTargetListener(String ns, String an, boolean isCSS, AnimationTargetListener l)
Adds a listener for changes to the given attribute value. |
Element | getElement()
Returns the element. |
short | getPercentageInterpretation(String ns, String an, boolean isCSS)
Gets how percentage values are interpreted by the given attribute
or property. |
AnimatableValue | getUnderlyingValue(String ns, String ln)
Returns the underlying value of an animatable XML attribute. |
void | removeTargetListener(String ns, String an, boolean isCSS, AnimationTargetListener l)
Removes a listener for changes to the given attribute value. |
float | svgToUserSpace(float v, short type, short pcInterp)
Converts the given SVG length into user units. |
void | updateAttributeValue(String ns, String ln, AnimatableValue val)
Updates an attribute value in this target. |
void | updateOtherValue(String type, AnimatableValue val)
Updates a 'other' animation value in this target. |
void | updatePropertyValue(String pn, AnimatableValue val)
Updates a property value in this target. |
boolean | useLinearRGBColorInterpolation()
Returns whether color interpolations should be done in linear RGB
color space rather than sRGB. |
Parameters: v the SVG length value type the SVG length units (one of the {@link SVGLength}.SVG_LENGTH_* constants) pcInterp how to interpretet percentage values (one of the {@link AnimationTarget}.PERCENTAGE_* constants)
Returns: the SVG value in user units