java.lang.Runnable, RunnableQueue.IdleRunnableSVGAnimationEngine.DebugAnimationTickRunnableprotected static class SVGAnimationEngine.AnimationTickRunnable extends java.lang.Object implements RunnableQueue.IdleRunnable
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.ref.WeakReference |
engRef |
A weak reference to the SVGAnimationEngine this AnimationTickRunnable
is for.
|
protected int |
exceptionCount |
The number of consecutive exceptions that have been thrown.
|
protected static int |
MAX_EXCEPTION_COUNT |
The maximum number of consecutive exceptions to allow before
stopping the report of them.
|
protected RunnableQueue |
q |
The RunnableQueue in which this is the
RunnableQueue.IdleRunnable. |
protected long |
sumTime |
The sum of the times in
times. |
protected java.util.Calendar |
time |
Calendar instance used for passing current time values to the
animation timing system.
|
protected int |
timeIndex |
The current index into
times. |
protected long[] |
times |
The past tick times.
|
protected long |
waitTime |
The number of milliseconds to wait until the next animation tick.
|
| Constructor | Description |
|---|---|
AnimationTickRunnable(RunnableQueue q,
SVGAnimationEngine eng) |
Creates a new AnimationTickRunnable.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected SVGAnimationEngine |
getAnimationEngine() |
Returns the SVGAnimationEngine this AnimationTickRunnable is for.
|
long |
getWaitTime() |
Returns the system time that can be safely waited until before this
Runnable is run again. |
void |
resume() |
Forces an animation update, if the
RunnableQueue is
currently waiting. |
void |
run() |
Performs one tick of the animation.
|
protected java.util.Calendar time
protected long waitTime
getWaitTime().protected RunnableQueue q
RunnableQueue.IdleRunnable.protected long[] times
protected long sumTime
times.protected int timeIndex
times.protected java.lang.ref.WeakReference engRef
protected static final int MAX_EXCEPTION_COUNT
protected int exceptionCount
public AnimationTickRunnable(RunnableQueue q, SVGAnimationEngine eng)
public void resume()
RunnableQueue is
currently waiting.public long getWaitTime()
Runnable is run again.getWaitTime in interface RunnableQueue.IdleRunnable0 if no waiting can
be done, or Long.MAX_VALUE if the Runnable
should not be run again at this timepublic void run()
run in interface java.lang.Runnableprotected SVGAnimationEngine getAnimationEngine()
Copyright ? 2018 Apache Software Foundation. All Rights Reserved.