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

Constructor Index

 o StopTimeMonitor(AbstractController)
Constructs a StopTimeMonitor for the given AbstractController.

Method Index

 o controllerUpdate(ControllerEvent)
Listen for RateChangeEvents or MediaTimeSetEvents and notify the StopTimeMonitor thread to recalculate its wait time.
 o run()
Continuously monitor the controller, it's state, and it's stop time.

Constructors

 o StopTimeMonitor
 public StopTimeMonitor(AbstractController controller)
Constructs a StopTimeMonitor for the given AbstractController.

Parameters:
controller - The AbstractController to whose stop time to monitor.

Methods

 o 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
 o 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