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 Object
implements SVGAnimationEngine.Factory
Factory class for
AnimatablePreserveAspectRatioValue
s.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected short
The parsed 'align' value.protected DefaultPreserveAspectRatioHandler
Handler for the preserveAspectRatio parser.protected short
The parsed 'meetOrSlice' value.protected PreserveAspectRatioParser
Parser for preserveAspectRatio values. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new AnimatablePreserveAspectRatioValueFactory. -
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
-
align
protected short alignThe parsed 'align' value. -
meetOrSlice
protected short meetOrSliceThe parsed 'meetOrSlice' value. -
parser
Parser for preserveAspectRatio values. -
handler
Handler for the preserveAspectRatio parser.
-
-
Constructor Details
-
AnimatablePreserveAspectRatioValueFactory
public AnimatablePreserveAspectRatioValueFactory()Creates a new AnimatablePreserveAspectRatioValueFactory.
-
-
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:
createValue
in interfaceSVGAnimationEngine.Factory
-
createValue
Creates a new AnimatableValue from a CSSValue
. Returns null since preserveAspectRatio values aren't used in CSS values.- Specified by:
createValue
in interfaceSVGAnimationEngine.Factory
-