Class Ticker
- java.lang.Object
-
- adams.gui.visualization.annotator.Ticker
-
public class Ticker extends Object
Provides tick events to listeners at various times- Version:
- $Revision$
- Author:
- sjb90
-
-
Field Summary
Fields Modifier and Type Field Description protected List<ScheduledFuture<?>>
m_Handlers
A list of handlers for scheduled ticksprotected ScheduledExecutorService
m_Scheduler
A scheduler to execute our command
-
Constructor Summary
Constructors Constructor Description Ticker(VLCjDirectRenderPanel videoPlayer)
Constructer for the ticker class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(TickListener tickListener)
adds a listener to the tickervoid
removeAll()
Shuts down all threads and removes them and the ticks from the ticker
-
-
-
Field Detail
-
m_Scheduler
protected ScheduledExecutorService m_Scheduler
A scheduler to execute our command
-
m_Handlers
protected List<ScheduledFuture<?>> m_Handlers
A list of handlers for scheduled ticks
-
-
Constructor Detail
-
Ticker
public Ticker(VLCjDirectRenderPanel videoPlayer)
Constructer for the ticker class. Takes a Direct Render panel.- Parameters:
videoPlayer
-
-
-
Method Detail
-
addListener
public void addListener(TickListener tickListener)
adds a listener to the ticker- Parameters:
tickListener
- the listener to add.
-
removeAll
public void removeAll()
Shuts down all threads and removes them and the ticks from the ticker
-
-