public abstract class AbstractMasterTimer extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
ADAPTIVE_PULSE_PROP |
protected static String |
ANIMATION_MBEAN_ENABLED |
protected static boolean |
enableAnimationMBean |
protected static String |
FIXED_PULSE_LENGTH_PROP |
protected static String |
FRAMERATE_PROP |
protected static String |
FULLSPEED_PROP |
protected static String |
PULSE_PROP |
Modifier | Constructor and Description |
---|---|
protected |
AbstractMasterTimer()
Prevent external instantiation of MasterTimer.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnimationTimer(TimerReceiver timer) |
void |
addPulseReceiver(PulseReceiver target)
Adds a PulseReceiver to the list of targets being tracked against the
global schedule.
|
int |
getDefaultResolution() |
protected abstract int |
getPulseDuration(int precision) |
boolean |
isFullspeed() |
long |
nanos() |
void |
pause() |
protected abstract void |
postUpdateAnimationRunnable(DelayedRunnable animationRunnable) |
protected void |
recordAnimationEnd() |
protected void |
recordEnd() |
protected void |
recordStart(long shiftMillis) |
void |
removeAnimationTimer(TimerReceiver timer) |
void |
removePulseReceiver(PulseReceiver target) |
void |
resume() |
protected void |
timePulseImpl(long now) |
protected static final String FULLSPEED_PROP
protected static final String ADAPTIVE_PULSE_PROP
protected static final String PULSE_PROP
protected static final String FRAMERATE_PROP
protected static final String FIXED_PULSE_LENGTH_PROP
protected static final String ANIMATION_MBEAN_ENABLED
protected static final boolean enableAnimationMBean
protected AbstractMasterTimer()
public int getDefaultResolution()
public void pause()
public void resume()
public long nanos()
public boolean isFullspeed()
public void addPulseReceiver(PulseReceiver target)
target
- the Clip to be added to the scheduling queuepublic void removePulseReceiver(PulseReceiver target)
public void addAnimationTimer(TimerReceiver timer)
public void removeAnimationTimer(TimerReceiver timer)
protected void recordStart(long shiftMillis)
protected void recordEnd()
protected void recordAnimationEnd()
protected abstract void postUpdateAnimationRunnable(DelayedRunnable animationRunnable)
protected abstract int getPulseDuration(int precision)
protected void timePulseImpl(long now)
Copyright © 2020. All rights reserved.