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 void
applyPreferences()
ThrottleFrame
createThrottleFrame()
Tell this manager that a new ThrottleFrame was created.ThrottleFrame
createThrottleFrame(ConnectionConfig connectionConfig)
Tell this manager that a new ThrottleFrame was created.ThrottleWindow
createThrottleWindow()
Tell this manager that a new ThrottleWindow was created.ThrottleWindow
createThrottleWindow(ConnectionConfig connectionConfig)
Tell this manager that a new ThrottleWindow was created.ThrottleWindow
createThrottleWindow(org.jdom2.Element e)
Tell this manager that a new ThrottleWindow was created.ThrottleWindow
getCurrentThrottleFrame()
int
getNumberThrottleWindows()
ThrottlesListPanel
getThrottlesListPanel()
java.util.Iterator<ThrottleWindow>
getThrottleWindows()
Retrieve an Iterator over all the ThrottleFrames in existence.void
requestAllThrottleWindowsDestroyed()
void
requestFocusForNextThrottleWindow()
void
requestFocusForPreviousThrottleWindow()
void
requestThrottleWindowDestruction(ThrottleWindow frame)
Request that this manager destroy a throttle frame.void
showThrottlesList()
void
showThrottlesPreferences()
-
-
-
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()
-
-