Package jmri.jmrit.throttle
Class ThrottleFrameManager
- java.lang.Object
-
- jmri.jmrit.throttle.ThrottleFrameManager
-
- All Implemented Interfaces:
InstanceManagerAutoDefault
public class ThrottleFrameManager extends java.lang.Object implements InstanceManagerAutoDefault
Interface for allocating and deallocating throttles frames. Not to be confused with ThrottleManager.
-
-
Constructor Summary
Constructors Constructor Description ThrottleFrameManager()Constructor for the ThrottleFrameManager object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyPreferences()ThrottleFramecreateThrottleFrame()Tell this manager that a new ThrottleFrame was created.ThrottleFramecreateThrottleFrame(ConnectionConfig connectionConfig)Tell this manager that a new ThrottleFrame was created.ThrottleWindowcreateThrottleWindow()Tell this manager that a new ThrottleWindow was created.ThrottleWindowcreateThrottleWindow(ConnectionConfig connectionConfig)Tell this manager that a new ThrottleWindow was created.ThrottleWindowcreateThrottleWindow(org.jdom2.Element e)Tell this manager that a new ThrottleWindow was created.ThrottleWindowgetCurrentThrottleFrame()intgetNumberThrottleWindows()ThrottlesListPanelgetThrottlesListPanel()java.util.Iterator<ThrottleWindow>getThrottleWindows()Retrieve an Iterator over all the ThrottleFrames in existence.voidrequestAllThrottleWindowsDestroyed()voidrequestFocusForNextThrottleWindow()voidrequestFocusForPreviousThrottleWindow()voidrequestThrottleWindowDestruction(ThrottleWindow frame)Request that this manager destroy a throttle frame.voidshowThrottlesList()voidshowThrottlesPreferences()
-
-
-
Constructor Detail
-
ThrottleFrameManager
public ThrottleFrameManager()
Constructor for the ThrottleFrameManager object.
-
-
Method Detail
-
createThrottleWindow
public ThrottleWindow createThrottleWindow()
Tell this manager that a new ThrottleWindow was created.- Returns:
- The newly created ThrottleWindow
-
createThrottleWindow
public ThrottleWindow createThrottleWindow(ConnectionConfig connectionConfig)
Tell this manager that a new ThrottleWindow was created.- Parameters:
connectionConfig- the connection config- Returns:
- The newly created ThrottleWindow
-
createThrottleWindow
public ThrottleWindow createThrottleWindow(org.jdom2.Element e)
Tell this manager that a new ThrottleWindow was created.- Parameters:
e- the xml element for the throttle window- Returns:
- The newly created ThrottleWindow
-
createThrottleFrame
public ThrottleFrame createThrottleFrame()
Tell this manager that a new ThrottleFrame was created.- Returns:
- The newly created ThrottleFrame
-
createThrottleFrame
public ThrottleFrame createThrottleFrame(ConnectionConfig connectionConfig)
Tell this manager that a new ThrottleFrame was created.- Parameters:
connectionConfig- the connection config- 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 java.util.Iterator<ThrottleWindow> getThrottleWindows()
Retrieve an Iterator over all the ThrottleFrames in existence.- Returns:
- The Iterator on the list of ThrottleFrames.
-
getNumberThrottleWindows
public int getNumberThrottleWindows()
-
requestFocusForNextThrottleWindow
public void requestFocusForNextThrottleWindow()
-
requestFocusForPreviousThrottleWindow
public void requestFocusForPreviousThrottleWindow()
-
getCurrentThrottleFrame
public ThrottleWindow getCurrentThrottleFrame()
-
getThrottlesListPanel
public ThrottlesListPanel getThrottlesListPanel()
-
showThrottlesList
public void showThrottlesList()
-
showThrottlesPreferences
public void showThrottlesPreferences()
-
applyPreferences
public void applyPreferences()
-
-