Class SVGAnimationEngine.AnimatableLengthValueFactory
java.lang.Object
org.apache.batik.bridge.SVGAnimationEngine.AnimatableLengthValueFactory
- All Implemented Interfaces:
SVGAnimationEngine.Factory
- Enclosing class:
SVGAnimationEngine
protected static class SVGAnimationEngine.AnimatableLengthValueFactory
extends Object
implements SVGAnimationEngine.Factory
Factory class for
AnimatableLengthValues.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LengthHandlerHandler for the length parser.protected LengthParserParser for lengths.protected shortThe parsed length unit type.protected floatThe parsed length value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateValue(AnimationTarget target, String ns, String ln, boolean isCSS, String s) Creates a new AnimatableValue from a string.createValue(AnimationTarget target, String pn, Value v) Creates a new AnimatableValue from a CSSValue.
-
Field Details
-
type
protected short typeThe parsed length unit type. -
value
protected float valueThe parsed length value. -
parser
Parser for lengths. -
handler
Handler for the length parser.
-
-
Constructor Details
-
AnimatableLengthValueFactory
public AnimatableLengthValueFactory()Creates a new AnimatableLengthValueFactory.
-
-
Method Details
-
createValue
public AnimatableValue createValue(AnimationTarget target, String ns, String ln, boolean isCSS, String s) Creates a new AnimatableValue from a string.- Specified by:
createValuein interfaceSVGAnimationEngine.Factory
-
createValue
Creates a new AnimatableValue from a CSSValue.- Specified by:
createValuein interfaceSVGAnimationEngine.Factory
-