Class SpeedometerFrame

All Implemented Interfaces:
ComponentListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, BeanInterface, ModifiedFlag, WindowInterface

public class SpeedometerFrame extends JmriJFrame
Frame providing access to a speedometer.

This contains very simple debouncing logic:

  • The clock starts when the "start" sensor makes the correct transition.
  • When a "stop" sensor makes the correct transition, the speed is computed and displayed.
See Also: