Interface ThrottleControllersUIContainer

All Known Implementing Classes:
SimpleThrottleWindow, ThrottleWindow

An interface for containers of throttle controllers user interface (ThrottleWindow for Swing throttles for instance)
  • Method Details

    • getNbThrottlesControllers

      Return the number of thottle controlS containerS (ThrottleWindows forinstance)
      Returns:
      the number of active thottle controls containers.
    • newThrottleController

      Created a new throttle controller
      Returns:
      the newly created throttle controller
    • addThrottleControllerAt

      Adds an existing throttle controller to that container list at position n
      Parameters:
      tf - the throttle controller to add
      n - position that it will inserted at
    • removeThrottleController

      Remove a throttle controller from that container
      Parameters:
      tf - the throttle controller to add
    • getThrottleControllerAt

      Get the throttle controller at position n
      Parameters:
      n - position
      Returns:
      the throttle controller
    • getCurentThrottleController

      Get the throttle controller being used now (or on top)
      Returns:
      the throttle controller
    • emergencyStopAll

      Force estop all throttles managed by that controllers container
    • getNumberOfEntriesFor

      Get the number of usages of a particular Loco Address.
      Parameters:
      la - the Loco Address, can be null.
      Returns:
      0 if no usages, else number of AddressPanel usages.
    • dispose

      void dispose()
      Dispose of the container and its resources. This is called when the container is closed, and should clean up any resources used by the container, such as closing windows, releasing memory, etc. Particularly will release an ythrottle still in use.