Package org.apache.batik.bridge
Class SVGAnimationEngine.AnimatablePreserveAspectRatioValueFactory
- java.lang.Object
-
- org.apache.batik.bridge.SVGAnimationEngine.AnimatablePreserveAspectRatioValueFactory
-
- All Implemented Interfaces:
SVGAnimationEngine.Factory
- Enclosing class:
- SVGAnimationEngine
protected static class SVGAnimationEngine.AnimatablePreserveAspectRatioValueFactory extends java.lang.Object implements SVGAnimationEngine.Factory
Factory class forAnimatablePreserveAspectRatioValue
s.
-
-
Field Summary
Fields Modifier and Type Field Description protected short
align
The parsed 'align' value.protected DefaultPreserveAspectRatioHandler
handler
Handler for the preserveAspectRatio parser.protected short
meetOrSlice
The parsed 'meetOrSlice' value.protected PreserveAspectRatioParser
parser
Parser for preserveAspectRatio values.
-
Constructor Summary
Constructors Constructor Description AnimatablePreserveAspectRatioValueFactory()
Creates a new AnimatablePreserveAspectRatioValueFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnimatableValue
createValue(AnimationTarget target, java.lang.String ns, java.lang.String ln, boolean isCSS, java.lang.String s)
Creates a new AnimatableValue from a string.AnimatableValue
createValue(AnimationTarget target, java.lang.String pn, Value v)
Creates a new AnimatableValue from a CSSValue
.
-
-
-
Field Detail
-
align
protected short align
The parsed 'align' value.
-
meetOrSlice
protected short meetOrSlice
The parsed 'meetOrSlice' value.
-
parser
protected PreserveAspectRatioParser parser
Parser for preserveAspectRatio values.
-
handler
protected DefaultPreserveAspectRatioHandler handler
Handler for the preserveAspectRatio parser.
-
-
Method Detail
-
createValue
public AnimatableValue createValue(AnimationTarget target, java.lang.String ns, java.lang.String ln, boolean isCSS, java.lang.String s)
Creates a new AnimatableValue from a string.- Specified by:
createValue
in interfaceSVGAnimationEngine.Factory
-
createValue
public AnimatableValue createValue(AnimationTarget target, java.lang.String pn, Value v)
Creates a new AnimatableValue from a CSSValue
. Returns null since preserveAspectRatio values aren't used in CSS values.- Specified by:
createValue
in interfaceSVGAnimationEngine.Factory
-
-