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
AnimatablePreserveAspectRatioValues.- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected shortThe parsed 'align' value.protected DefaultPreserveAspectRatioHandlerHandler for the preserveAspectRatio parser.protected shortThe parsed 'meetOrSlice' value.protected PreserveAspectRatioParserParser 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:
createValuein interfaceSVGAnimationEngine.Factory
-
createValue
Creates a new AnimatableValue from a CSSValue. Returns null since preserveAspectRatio values aren't used in CSS values.- Specified by:
createValuein interfaceSVGAnimationEngine.Factory
-