All Packages Class Hierarchy This Package Previous Next Index
Class ejmf.toolkit.media.StopTimeMonitor
java.lang.Object
|
+----java.lang.Thread
|
+----ejmf.toolkit.media.StopTimeMonitor
- public class StopTimeMonitor
- extends Thread
- implements ControllerListener
This class provides a thread to stop an AbstractController when
its stop time is reached.
- See Also:
- AbstractController
-
StopTimeMonitor(AbstractController)
- Constructs a StopTimeMonitor for the given
AbstractController.
-
controllerUpdate(ControllerEvent)
- Listen for RateChangeEvents or MediaTimeSetEvents and
notify the StopTimeMonitor thread to recalculate its wait
time.
-
run()
- Continuously monitor the controller, it's state, and it's stop
time.
StopTimeMonitor
public StopTimeMonitor(AbstractController controller)
- Constructs a StopTimeMonitor for the given
AbstractController.
- Parameters:
- controller
- The AbstractController to whose stop time to
monitor.
controllerUpdate
public synchronized void controllerUpdate(ControllerEvent e)
- Listen for RateChangeEvents or MediaTimeSetEvents and
notify the StopTimeMonitor thread to recalculate its wait
time. Also listen for StartEvents and StopEvents so that
the monitor will know whether the controller is playing.
- Parameters:
- e
- The ControllerEvent
run
public void run()
- Continuously monitor the controller, it's state, and it's stop
time.
- Overrides:
- run in class Thread
All Packages Class Hierarchy This Package Previous Next Index