Package org.apache.batik.anim.dom
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: AnimationTarget.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description static short
PERCENTAGE_FONT_SIZE
static short
PERCENTAGE_VIEWPORT_HEIGHT
static short
PERCENTAGE_VIEWPORT_SIZE
static short
PERCENTAGE_VIEWPORT_WIDTH
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addTargetListener(java.lang.String ns, java.lang.String an, boolean isCSS, AnimationTargetListener l)
Adds a listener for changes to the given attribute value.org.w3c.dom.Element
getElement()
Returns the element.short
getPercentageInterpretation(java.lang.String ns, java.lang.String an, boolean isCSS)
Gets how percentage values are interpreted by the given attribute or property.AnimatableValue
getUnderlyingValue(java.lang.String ns, java.lang.String ln)
Returns the underlying value of an animatable XML attribute.void
removeTargetListener(java.lang.String ns, java.lang.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(java.lang.String ns, java.lang.String ln, AnimatableValue val)
Updates an attribute value in this target.void
updateOtherValue(java.lang.String type, AnimatableValue val)
Updates a 'other' animation value in this target.void
updatePropertyValue(java.lang.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.
-
-
-
Field Detail
-
PERCENTAGE_FONT_SIZE
static final short PERCENTAGE_FONT_SIZE
- See Also:
- Constant Field Values
-
PERCENTAGE_VIEWPORT_WIDTH
static final short PERCENTAGE_VIEWPORT_WIDTH
- See Also:
- Constant Field Values
-
PERCENTAGE_VIEWPORT_HEIGHT
static final short PERCENTAGE_VIEWPORT_HEIGHT
- See Also:
- Constant Field Values
-
PERCENTAGE_VIEWPORT_SIZE
static final short PERCENTAGE_VIEWPORT_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getElement
org.w3c.dom.Element getElement()
Returns the element.
-
updatePropertyValue
void updatePropertyValue(java.lang.String pn, AnimatableValue val)
Updates a property value in this target.
-
updateAttributeValue
void updateAttributeValue(java.lang.String ns, java.lang.String ln, AnimatableValue val)
Updates an attribute value in this target.
-
updateOtherValue
void updateOtherValue(java.lang.String type, AnimatableValue val)
Updates a 'other' animation value in this target.
-
getUnderlyingValue
AnimatableValue getUnderlyingValue(java.lang.String ns, java.lang.String ln)
Returns the underlying value of an animatable XML attribute.
-
getPercentageInterpretation
short getPercentageInterpretation(java.lang.String ns, java.lang.String an, boolean isCSS)
Gets how percentage values are interpreted by the given attribute or property.
-
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
void addTargetListener(java.lang.String ns, java.lang.String an, boolean isCSS, AnimationTargetListener l)
Adds a listener for changes to the given attribute value.
-
removeTargetListener
void removeTargetListener(java.lang.String ns, java.lang.String an, boolean isCSS, AnimationTargetListener l)
Removes a listener for changes to the given attribute value.
-
-