jmri.jmrit.throttle
Class ThrottleFrameManager

java.lang.Object
  extended by jmri.jmrit.throttle.ThrottleFrameManager

public class ThrottleFrameManager
extends Object

Interface for allocating and deallocating throttles frames. Not to be confused with ThrottleManager

Author:
Glen Oberhauser

Method Summary
 ThrottleFrame createThrottleFrame()
          Tell this manager that a new ThrottleFrame was created.
 ThrottleWindow createThrottleWindow()
          Tell this manager that a new ThrottleWindow was created.
 ThrottleWindow getCurentThrottleFrame()
           
 int getNumberThrottleWindows()
           
 ThrottlesListPanel getThrottlesListPanel()
           
 ThrottlesPreferences getThrottlesPreferences()
           
 Iterator<ThrottleWindow> getThrottleWindows()
          Retrieve an Iterator over all the ThrottleFrames in existence.
static ThrottleFrameManager instance()
          Get the singleton instance of this class.
 void requestAllThrottleWindowsDestroyed()
           
 void requestThrottleWindowDestruction(ThrottleWindow frame)
          Request that this manager destroy a throttle frame.
 void showThrottlesList()
           
 void showThrottlesPreferences()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static ThrottleFrameManager instance()
Get the singleton instance of this class.


createThrottleWindow

public ThrottleWindow createThrottleWindow()
Tell this manager that a new ThrottleWindow was created.

Returns:
The newly created ThrottleWindow

createThrottleFrame

public ThrottleFrame createThrottleFrame()
Tell this manager that a new ThrottleFrame was created.

Returns:
The newly created ThrottleFrame

requestThrottleWindowDestruction

public void requestThrottleWindowDestruction(ThrottleWindow frame)
Request that this manager destroy a throttle frame.

Parameters:
frame - The to-be-destroyed ThrottleFrame

requestAllThrottleWindowsDestroyed

public void requestAllThrottleWindowsDestroyed()

getThrottleWindows

public Iterator<ThrottleWindow> getThrottleWindows()
Retrieve an Iterator over all the ThrottleFrames in existence.

Returns:
The Iterator on the list of ThrottleFrames.

getNumberThrottleWindows

public int getNumberThrottleWindows()

getCurentThrottleFrame

public ThrottleWindow getCurentThrottleFrame()

getThrottlesPreferences

public ThrottlesPreferences getThrottlesPreferences()

getThrottlesListPanel

public ThrottlesListPanel getThrottlesListPanel()

showThrottlesList

public void showThrottlesList()

showThrottlesPreferences

public void showThrottlesPreferences()


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads