org.apache.batik.bridge
public class SVGAnimationEngine extends AnimationEngine
Nested Class Summary | |
---|---|
protected class | SVGAnimationEngine.AnimatableAngleOrIdentFactory
Factory class for {@link AnimatableAngleOrIdentValue}s. |
protected class | SVGAnimationEngine.AnimatableAngleValueFactory
Factory class for {@link AnimatableAngleValue}s. |
protected class | SVGAnimationEngine.AnimatableBooleanValueFactory
Factory class for {@link AnimatableBooleanValue}s. |
protected class | SVGAnimationEngine.AnimatableColorValueFactory
Factory class for {@link AnimatableColorValue}s. |
protected class | SVGAnimationEngine.AnimatableIntegerValueFactory
Factory class for {@link AnimatableIntegerValue}s. |
protected class | SVGAnimationEngine.AnimatableLengthListValueFactory
Factory class for {@link AnimatableLengthListValue}s. |
protected class | SVGAnimationEngine.AnimatableLengthOrIdentFactory
Factory class for {@link AnimatableLengthOrIdentValue}s. |
protected class | SVGAnimationEngine.AnimatableLengthValueFactory
Factory class for {@link AnimatableLengthValue}s. |
protected class | SVGAnimationEngine.AnimatableNumberListValueFactory
Factory class for {@link AnimatableNumberListValue}s. |
protected class | SVGAnimationEngine.AnimatableNumberOrIdentFactory
Factory class for {@link AnimatableNumberOrIdentValue}s. |
protected class | SVGAnimationEngine.AnimatableNumberOrPercentageValueFactory
Factory class for {@link AnimatableNumberOrPercentageValue}s. |
protected class | SVGAnimationEngine.AnimatableNumberValueFactory
Factory class for {@link AnimatableNumberValue}s. |
protected class | SVGAnimationEngine.AnimatablePaintValueFactory
Factory class for {@link AnimatablePaintValue}s. |
protected class | SVGAnimationEngine.AnimatablePathDataFactory
Factory class for {@link AnimatablePathDataValue}s. |
protected class | SVGAnimationEngine.AnimatablePointListValueFactory
Factory class for {@link AnimatablePointListValue}s. |
protected class | SVGAnimationEngine.AnimatablePreserveAspectRatioValueFactory
Factory class for {@link AnimatablePreserveAspectRatioValue}s. |
protected class | SVGAnimationEngine.AnimatableStringValueFactory
Factory class for computed CSS {@link AnimatableStringValue}s. |
protected class | SVGAnimationEngine.AnimationRoot
A class for the root time container. |
protected class | SVGAnimationEngine.AnimationThread
The thread that ticks the animation. |
protected static class | SVGAnimationEngine.AnimationTickRunnable
Idle runnable to tick the animation. |
protected abstract class | SVGAnimationEngine.CSSValueFactory
Factory class for AnimatableValues for CSS properties.
|
protected static class | SVGAnimationEngine.DebugAnimationTickRunnable
Idle runnable to tick the animation, that reads times from System.in. |
protected interface | SVGAnimationEngine.Factory
Interface for AnimatableValue factories. |
protected class | SVGAnimationEngine.UncomputedAnimatableStringValueFactory
Factory class for {@link AnimatableStringValue}s. |
Field Summary | |
---|---|
protected SVGAnimationEngine.AnimatableLengthOrIdentFactory | animatableLengthOrIdentFactory
The factory for length-or-ident values. |
protected SVGAnimationEngine.AnimatableNumberOrIdentFactory | animatableNumberOrIdentFactory
The factory for number-or-ident values. |
protected static Set | animationEventNames11
Set of SMIL animation event names for SVG 1.1. |
protected static Set | animationEventNames12
Set of SMIL animation event names for SVG 1.2. |
protected float | animationLimitingAmount
The amount of animation limiting. |
protected int | animationLimitingMode
The animation limiting mode. |
protected SVGAnimationEngine.AnimationThread | animationThread
The thread that ticks the animation engine. |
protected SVGAnimationEngine.AnimationTickRunnable | animationTickRunnable
The Runnable that ticks the document. |
protected CSSEngine | cssEngine
The CSSEngine used for CSS value parsing. |
protected BridgeContext | ctx
The BridgeContext to use for value parsing. |
protected StyleMap | dummyStyleMap
A StyleMap used by the {@link Factory}s when computing CSS values. |
protected SVGAnimationEngine.Factory[] | factories
Factories for {@link AnimatableValue} parsing. |
protected LinkedList | initialBridges
List of bridges that will be initialized when the document is started. |
protected boolean | isSVG12
Whether the document is an SVG 1.2 document. |
protected boolean | started
Whether animation processing has started. |
protected SVGAnimationEngine.UncomputedAnimatableStringValueFactory | uncomputedAnimatableStringValueFactory
The factory for unparsed string values. |
Constructor Summary | |
---|---|
SVGAnimationEngine(Document doc, BridgeContext ctx)
Creates a new SVGAnimationEngine. |
Method Summary | |
---|---|
void | addInitialBridge(SVGAnimationElementBridge b)
Adds an animation element bridge to the list of bridges that
require initializing when the document is started. |
protected TimedDocumentRoot | createDocumentRoot()
Creates a new returns a new TimedDocumentRoot object for the document. |
void | dispose()
Disposes this animation engine. |
float | getCurrentTime()
Returns the current document time. |
AnimatableValue | getUnderlyingCSSValue(Element animElt, AnimationTarget target, String pn)
Returns an AnimatableValue for the underlying value of a CSS property. |
boolean | hasStarted()
Returns whether animation processing has begun. |
AnimatableValue | parseAnimatableValue(Element animElt, AnimationTarget target, String ns, String ln, boolean isCSS, String s)
Parses an AnimatableValue. |
void | pause()
Pauses the animations. |
void | setAnimationLimitingCPU(float pc)
Sets the animation limiting mode to a percentage of CPU. |
void | setAnimationLimitingFPS(float fps)
Sets the animation limiting mode to a number of frames per second. |
void | setAnimationLimitingNone()
Sets the animation limiting mode to "none". |
float | setCurrentTime(float t)
Sets the current document time. |
void | start(long documentStartTime)
Starts the animation engine. |
void | unpause()
Pauses the animations. |
Parameters: pc the maximum percentage of CPU to use (0 < pc ≤ 1)
Parameters: fps the maximum number of frames per second (fps > 0)