Package jmri.jmrit.throttle
Class ThrottleFrame
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLayeredPane
javax.swing.JDesktopPane
jmri.jmrit.throttle.ThrottleFrame
- All Implemented Interfaces:
ComponentListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,AddressListener
Should be named ThrottlePanel but was already existing with that name and
don't want to break dependencies (particularly in Jython code)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classAn extension of InternalFrameAdapter for listening to the closing of of this frame's internal frames.Nested classes/interfaces inherited from class javax.swing.JDesktopPane
JDesktopPane.AccessibleJDesktopPaneNested classes/interfaces inherited from class javax.swing.JLayeredPane
JLayeredPane.AccessibleJLayeredPaneNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
Fields inherited from class javax.swing.JDesktopPane
LIVE_DRAG_MODE, OUTLINE_DRAG_MODEFields inherited from class javax.swing.JLayeredPane
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYERFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoiddispose()Handle my own destruction.static Stringstatic StringbooleangetTitle()org.jdom2.ElementgetXml()Collect the prefs of this object into XML Element Window prefs ControlPanel FunctionPanel AddressPanel SpeedPanelorg.jdom2.ElementvoidvoidloadThrottle(String sfile) voidvoidReceive notification that a new address has been selected.voidReceive notification that an address has been released/dispatchedvoidReceive notification that a throttle has been foundvoidReceive notification that a new Consist address has been selected.voidReceive notification that a consist address has been released/dispatched.voidnotifyConsistAddressThrottleFound(DccThrottle throttle) Receive notification that a throttle has been foundvoidvoidvoidvoidsetEditMode(boolean mode) voidsetFrameTitle - set the frame title based on type, text and addressvoidsetLastUsedSaveFile(String lusf) voidsetLocation(int x, int y) Sets the location of a throttle frame on the screen according to x and y coordinatesvoidstatic voidsetTransparent(JComponent jcomp) static voidsetTransparent(JComponent jcomp, boolean transparency) static voidsetTransparentBackground(Component[] comps) static voidvoidsetXml(org.jdom2.Element e) Set the preferences based on the XML Element.voidtoFront()ynstrument(String path) Methods inherited from class javax.swing.JDesktopPane
addImpl, getAccessibleContext, getAllFrames, getAllFramesInLayer, getDesktopManager, getDragMode, getSelectedFrame, getUI, getUIClassID, paramString, remove, remove, removeAll, selectFrame, setComponentZOrder, setDesktopManager, setDragMode, setSelectedFrame, setUI, updateUIMethods inherited from class javax.swing.JLayeredPane
getComponentCountInLayer, getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, putLayer, setLayer, setLayer, setPositionMethods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Constructor Details
-
ThrottleFrame
-
ThrottleFrame
-
-
Method Details
-
getDefaultThrottleFolder
-
getDefaultThrottleFilename
-
getThrottleWindow
-
getControlPanel
-
getFunctionPanel
-
getAddressPanel
-
getRosterEntry
-
toFront
-
getSpeedPanel
-
setLocation
Sets the location of a throttle frame on the screen according to x and y coordinates- Overrides:
setLocationin classComponent- See Also:
-
setTitle
-
getTitle
-
loadThrottle
-
loadThrottle
-
ynstrument
-
makeAllComponentsInBounds
-
applyPreferences
-
setEditMode
-
getEditMode
-
dispose
Handle my own destruction.- dispose of sub windows.
- notify my manager of my demise.
-
saveRosterChanges
-
getXml
Collect the prefs of this object into XML Element- Window prefs
- ControlPanel
- FunctionPanel
- AddressPanel
- SpeedPanel
- Returns:
- the XML of this object.
-
getXmlFile
-
setXml
Set the preferences based on the XML Element.- Window prefs
- Frame title
- ControlPanel
- FunctionPanel
- AddressPanel
- SpeedPanel
- Parameters:
e- The Element for this object.
-
setFrameTitle
setFrameTitle - set the frame title based on type, text and address -
componentHidden
- Specified by:
componentHiddenin interfaceComponentListener
-
componentMoved
- Specified by:
componentMovedin interfaceComponentListener
-
componentResized
- Specified by:
componentResizedin interfaceComponentListener
-
componentShown
- Specified by:
componentShownin interfaceComponentListener
-
saveThrottle
-
saveThrottleAs
-
activateNextJInternalFrame
-
activatePreviousJInternalFrame
-
notifyAddressChosen
Description copied from interface:AddressListenerReceive notification that a new address has been selected.- Specified by:
notifyAddressChosenin interfaceAddressListener- Parameters:
l- The address that is now selected.
-
notifyAddressReleased
Description copied from interface:AddressListenerReceive notification that an address has been released/dispatched- Specified by:
notifyAddressReleasedin interfaceAddressListener- Parameters:
la- The address released/dispatched
-
notifyAddressThrottleFound
Description copied from interface:AddressListenerReceive notification that a throttle has been found- Specified by:
notifyAddressThrottleFoundin interfaceAddressListener- Parameters:
t- The throttle
-
notifyConsistAddressChosen
Description copied from interface:AddressListenerReceive notification that a new Consist address has been selected.- Specified by:
notifyConsistAddressChosenin interfaceAddressListener- Parameters:
l- The address that is now selected.
-
notifyConsistAddressReleased
Description copied from interface:AddressListenerReceive notification that a consist address has been released/dispatched.- Specified by:
notifyConsistAddressReleasedin interfaceAddressListener- Parameters:
la- The address that is now selected.
-
notifyConsistAddressThrottleFound
Description copied from interface:AddressListenerReceive notification that a throttle has been found- Specified by:
notifyConsistAddressThrottleFoundin interfaceAddressListener- Parameters:
throttle- The throttle
-
getLastUsedSaveFile
-
setLastUsedSaveFile
-
setTransparentBackground
-
setTransparentBackground
-
setTransparent
-
setTransparent
-