public class Timer extends Timer
The coalesce flag has no influence for this timer, since both queueing and execution happens in the same thread. Therefore, coalescing is implicitly true. NOTE: The timer will not do anything unless you call ToolUtility.attachTimer(...)!
Constructor and Description |
---|
Timer(int delay,
ActionListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
attach(AnimatorTool at) |
void |
attach(SceneGraphComponent cmp) |
void |
attach(ToolContext tc) |
void |
attach(ToolSystem ts) |
boolean |
isRunning()
Returns
true if the Timer is running. |
void |
start()
Starts the
Timer ,
causing it to start sending action events
to its listeners. |
void |
stop()
Stops the
Timer ,
causing it to stop sending action events
to its listeners. |
addActionListener, getActionCommand, getActionListeners, getDelay, getInitialDelay, getListeners, getLogTimers, isCoalesce, isRepeats, removeActionListener, restart, setActionCommand, setCoalesce, setDelay, setInitialDelay, setLogTimers, setRepeats
public Timer(int delay, ActionListener listener)
public void attach(ToolSystem ts)
public void attach(ToolContext tc)
public void attach(AnimatorTool at)
public void attach(SceneGraphComponent cmp)
public void start()
Timer
,
causing it to start sending action events
to its listeners.public boolean isRunning()
true
if the Timer
is running.