Interface AnimationTarget
- All Known Implementing Classes:
BatikHistogramNormalizationElement, BatikRegularPolygonElement, BatikStarElement, BindableElement, ColorSwitchElement, ExtensionElement, FlowDivElement, FlowLineElement, FlowParaElement, FlowRegionBreakElement, FlowRegionElement, FlowSpanElement, FlowTextElement, GraphicsExtensionElement, PrefixableStylableExtensionElement, StylableExtensionElement, SVGDescriptiveElement, SVGGraphicsElement, SVGOMAElement, SVGOMAltGlyphDefElement, SVGOMAltGlyphElement, SVGOMAltGlyphItemElement, SVGOMAnimateColorElement, SVGOMAnimateElement, SVGOMAnimateMotionElement, SVGOMAnimateTransformElement, SVGOMAnimationElement, SVGOMCircleElement, SVGOMClipPathElement, SVGOMColorProfileElement, SVGOMComponentTransferFunctionElement, SVGOMCursorElement, SVGOMDefinitionSrcElement, SVGOMDefsElement, SVGOMDescElement, SVGOMElement, SVGOMEllipseElement, SVGOMFEBlendElement, SVGOMFEColorMatrixElement, SVGOMFEComponentTransferElement, SVGOMFECompositeElement, SVGOMFEConvolveMatrixElement, SVGOMFEDiffuseLightingElement, SVGOMFEDisplacementMapElement, SVGOMFEDistantLightElement, SVGOMFEFloodElement, SVGOMFEFuncAElement, SVGOMFEFuncBElement, SVGOMFEFuncGElement, SVGOMFEFuncRElement, SVGOMFEGaussianBlurElement, SVGOMFEImageElement, SVGOMFEMergeElement, SVGOMFEMergeNodeElement, SVGOMFEMorphologyElement, SVGOMFEOffsetElement, SVGOMFEPointLightElement, SVGOMFESpecularLightingElement, SVGOMFESpotLightElement, SVGOMFETileElement, SVGOMFETurbulenceElement, SVGOMFilterElement, SVGOMFilterPrimitiveStandardAttributes, SVGOMFlowDivElement, SVGOMFlowLineElement, SVGOMFlowParaElement, SVGOMFlowRegionBreakElement, SVGOMFlowRegionElement, SVGOMFlowRegionExcludeElement, SVGOMFlowRootElement, SVGOMFlowSpanElement, SVGOMFontElement, SVGOMFontFaceElement, SVGOMFontFaceFormatElement, SVGOMFontFaceNameElement, SVGOMFontFaceSrcElement, SVGOMFontFaceUriElement, SVGOMForeignObjectElement, SVGOMGElement, SVGOMGlyphElement, SVGOMGlyphRefElement, SVGOMGradientElement, SVGOMHandlerElement, SVGOMHKernElement, SVGOMImageElement, SVGOMLinearGradientElement, SVGOMLineElement, SVGOMMarkerElement, SVGOMMaskElement, SVGOMMetadataElement, SVGOMMissingGlyphElement, SVGOMMPathElement, SVGOMMultiImageElement, SVGOMPathElement, SVGOMPatternElement, SVGOMPolygonElement, SVGOMPolylineElement, SVGOMRadialGradientElement, SVGOMRectElement, SVGOMScriptElement, SVGOMSetElement, SVGOMSolidColorElement, SVGOMStopElement, SVGOMStyleElement, SVGOMSubImageElement, SVGOMSubImageRefElement, SVGOMSVGElement, SVGOMSwitchElement, SVGOMSymbolElement, SVGOMTextContentElement, SVGOMTextElement, SVGOMTextPathElement, SVGOMTextPositioningElement, SVGOMTitleElement, SVGOMToBeImplementedElement, SVGOMTRefElement, SVGOMTSpanElement, SVGOMURIReferenceElement, SVGOMUseElement, SVGOMViewElement, SVGOMVKernElement, SVGPointShapeElement, SVGStylableElement, SVGURIReferenceGraphicsElement, SVGURIReferenceTextPositioningElement, XBLOMContentElement, XBLOMDefinitionElement, XBLOMElement, XBLOMHandlerGroupElement, XBLOMImportElement, XBLOMShadowTreeElement, XBLOMTemplateElement, XBLOMXBLElement
public interface AnimationTarget
An interface for targets of animation to provide context information.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortstatic final shortstatic final shortstatic final short -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTargetListener(String ns, String an, boolean isCSS, AnimationTargetListener l) Adds a listener for changes to the given attribute value.Returns the element.shortgetPercentageInterpretation(String ns, String an, boolean isCSS) Gets how percentage values are interpreted by the given attribute or property.getUnderlyingValue(String ns, String ln) Returns the underlying value of an animatable XML attribute.voidremoveTargetListener(String ns, String an, boolean isCSS, AnimationTargetListener l) Removes a listener for changes to the given attribute value.floatsvgToUserSpace(float v, short type, short pcInterp) Converts the given SVG length into user units.voidupdateAttributeValue(String ns, String ln, AnimatableValue val) Updates an attribute value in this target.voidupdateOtherValue(String type, AnimatableValue val) Updates a 'other' animation value in this target.voidupdatePropertyValue(String pn, AnimatableValue val) Updates a property value in this target.booleanReturns whether color interpolations should be done in linear RGB color space rather than sRGB.
-
Field Details
-
PERCENTAGE_FONT_SIZE
static final short PERCENTAGE_FONT_SIZE- See Also:
-
PERCENTAGE_VIEWPORT_WIDTH
static final short PERCENTAGE_VIEWPORT_WIDTH- See Also:
-
PERCENTAGE_VIEWPORT_HEIGHT
static final short PERCENTAGE_VIEWPORT_HEIGHT- See Also:
-
PERCENTAGE_VIEWPORT_SIZE
static final short PERCENTAGE_VIEWPORT_SIZE- See Also:
-
-
Method Details
-
getElement
Element getElement()Returns the element. -
updatePropertyValue
Updates a property value in this target. -
updateAttributeValue
Updates an attribute value in this target. -
updateOtherValue
Updates a 'other' animation value in this target. -
getUnderlyingValue
Returns the underlying value of an animatable XML attribute. -
getPercentageInterpretation
-
useLinearRGBColorInterpolation
boolean useLinearRGBColorInterpolation()Returns whether color interpolations should be done in linear RGB color space rather than sRGB. -
svgToUserSpace
float svgToUserSpace(float v, short type, short pcInterp) Converts the given SVG length into user units.- Parameters:
v- the SVG length valuetype- the SVG length units (one of theSVGLength.SVG_LENGTH_* constants)pcInterp- how to interpretet percentage values (one of theAnimationTarget.PERCENTAGE_* constants)- Returns:
- the SVG value in user units
-
addTargetListener
Adds a listener for changes to the given attribute value. -
removeTargetListener
Removes a listener for changes to the given attribute value.
-