Package org.apache.batik.bridge
Class SVGAnimationEngine.DebugAnimationTickRunnable
java.lang.Object
org.apache.batik.bridge.SVGAnimationEngine.AnimationTickRunnable
org.apache.batik.bridge.SVGAnimationEngine.DebugAnimationTickRunnable
- All Implemented Interfaces:
Runnable
,RunnableQueue.IdleRunnable
- Enclosing class:
- SVGAnimationEngine
protected static class SVGAnimationEngine.DebugAnimationTickRunnable
extends SVGAnimationEngine.AnimationTickRunnable
Idle runnable to tick the animation, that reads times from System.in.
-
Field Summary
Fields inherited from class org.apache.batik.bridge.SVGAnimationEngine.AnimationTickRunnable
engRef, exceptionCount, MAX_EXCEPTION_COUNT, q, sumTime, time, timeIndex, times, waitTime
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the system time that can be safely waited until before thisRunnable
is run again.void
resume()
Forces an animation update, if theRunnableQueue
is currently waiting.void
run()
Performs one tick of the animation.Methods inherited from class org.apache.batik.bridge.SVGAnimationEngine.AnimationTickRunnable
getAnimationEngine
-
Constructor Details
-
DebugAnimationTickRunnable
-
-
Method Details
-
resume
public void resume()Description copied from class:SVGAnimationEngine.AnimationTickRunnable
Forces an animation update, if theRunnableQueue
is currently waiting.- Overrides:
resume
in classSVGAnimationEngine.AnimationTickRunnable
-
getWaitTime
public long getWaitTime()Description copied from class:SVGAnimationEngine.AnimationTickRunnable
Returns the system time that can be safely waited until before thisRunnable
is run again.- Specified by:
getWaitTime
in interfaceRunnableQueue.IdleRunnable
- Overrides:
getWaitTime
in classSVGAnimationEngine.AnimationTickRunnable
- Returns:
- time to wait until,
0
if no waiting can be done, orLong.MAX_VALUE
if theRunnable
should not be run again at this time
-
run
public void run()Description copied from class:SVGAnimationEngine.AnimationTickRunnable
Performs one tick of the animation.- Specified by:
run
in interfaceRunnable
- Overrides:
run
in classSVGAnimationEngine.AnimationTickRunnable
-