Package jmri.jmrit.display.layoutEditor
Class LayoutEditorToolBarPanel
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- jmri.jmrit.display.layoutEditor.LayoutEditorToolBarPanel
-
- All Implemented Interfaces:
java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.io.Serializable
,javax.accessibility.Accessible
- Direct Known Subclasses:
LayoutEditorFloatingToolBarPanel
,LayoutEditorHorizontalToolBarPanel
,LayoutEditorVerticalToolBarPanel
public class LayoutEditorToolBarPanel extends javax.swing.JPanel
This is the base class for the horizontal, vertical and floating toolbar panels- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LayoutEditorToolBarPanel.LocationFormat
-
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
-
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.swing.JRadioButton
anchorButton
protected javax.swing.JRadioButton
audioButton
protected MultiIconEditor
audioEditor
protected javax.swing.JFrame
audioFrame
protected javax.swing.JRadioButton
blockContentsButton
protected NamedBeanComboBox<Block>
blockContentsComboBox
protected NamedBeanComboBox<Block>
blockIDComboBox
protected javax.swing.JLabel
blockLabel
protected javax.swing.JPanel
blockPropertiesPanel
protected NamedBeanComboBox<Sensor>
blockSensorComboBox
protected javax.swing.JLabel
blockSensorLabel
protected java.awt.FlowLayout
centerRowLayout
protected javax.swing.JButton
changeIconsButton
protected javax.swing.JCheckBox
dashedLine
protected javax.swing.JRadioButton
doubleXoverButton
protected javax.swing.JRadioButton
edgeButton
protected javax.swing.JRadioButton
endBumperButton
protected NamedBeanComboBox<Turnout>
extraTurnoutNameComboBox
protected javax.swing.JPanel
extraTurnoutPanel
protected javax.swing.JRadioButton
globalVariableButton
protected javax.swing.JCheckBox
highlightBlockCheckBox
protected MultiIconEditor
iconEditor
protected javax.swing.JFrame
iconFrame
protected javax.swing.JRadioButton
iconLabelButton
protected javax.swing.ButtonGroup
itemGroup
protected javax.swing.JLabel
labelsLabel
protected javax.swing.JRadioButton
layoutDoubleSlipButton
protected LayoutEditor
layoutEditor
protected javax.swing.JRadioButton
layoutSingleSlipButton
protected java.awt.FlowLayout
leftRowLayout
protected javax.swing.JRadioButton
levelXingButton
protected javax.swing.JRadioButton
lhXoverButton
protected javax.swing.JPanel
locationPanel
protected javax.swing.JPopupMenu
locationPopupMenu
protected javax.swing.JRadioButton
logixngButton
protected MultiIconEditor
logixngEditor
protected javax.swing.JFrame
logixngFrame
protected javax.swing.JCheckBox
mainlineTrack
protected javax.swing.JRadioButton
memoryButton
protected javax.swing.JRadioButton
multiSensorButton
protected MultiSensorIconFrame
multiSensorFrame
(package private) java.util.Map<javax.swing.JRadioButton,java.lang.String>
quickKeyMap
protected javax.swing.JRadioButton
rhXoverButton
protected java.awt.FlowLayout
rightRowLayout
protected javax.swing.JComboBox<java.lang.String>
rotationComboBox
protected javax.swing.JPanel
rotationPanel
protected javax.swing.JRadioButton
sensorButton
protected NamedBeanComboBox<Sensor>
sensorComboBox
protected javax.swing.JFrame
sensorFrame
protected MultiIconEditor
sensorIconEditor
protected javax.swing.JRadioButton
shapeButton
protected javax.swing.JRadioButton
signalButton
protected javax.swing.JFrame
signalFrame
protected NamedBeanComboBox<SignalHead>
signalHeadComboBox
protected MultiIconEditor
signalIconEditor
protected javax.swing.JRadioButton
signalMastButton
protected NamedBeanComboBox<SignalMast>
signalMastComboBox
protected NamedBeanComboBox<Audio>
textAudioComboBox
protected NamedBeanComboBox<GlobalVariable>
textGlobalVariableComboBox
protected javax.swing.JRadioButton
textLabelButton
protected javax.swing.JTextField
textLabelTextField
protected NamedBeanComboBox<Memory>
textMemoryComboBox
protected boolean
toolBarIsWide
protected javax.swing.JRadioButton
trackButton
protected javax.swing.JLabel
trackLabel
protected javax.swing.JPanel
trackSegmentPropertiesPanel
protected javax.swing.JLabel
turnoutLabel
protected javax.swing.JRadioButton
turnoutLHButton
protected NamedBeanComboBox<Turnout>
turnoutNameComboBox
protected javax.swing.JLabel
turnoutNameLabel
protected javax.swing.JPanel
turnoutNamePanel
protected javax.swing.JRadioButton
turnoutRHButton
protected javax.swing.JRadioButton
turnoutWYEButton
protected javax.swing.JLabel
xLabel
protected javax.swing.JLabel
yLabel
protected javax.swing.JLabel
zoomLabel
protected javax.swing.JPanel
zoomPanel
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor Description LayoutEditorToolBarPanel(LayoutEditor layoutEditor)
Constructor for LayoutEditorToolBarPanel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LayoutEditorToolBarPanel.LocationFormat
getLocationFormat()
void
keyPressed(java.awt.event.KeyEvent event)
protected void
layoutComponents()
layout the components in this panelvoid
setLocationFormat(LayoutEditorToolBarPanel.LocationFormat locationFormat)
void
setLocationText(java.awt.geom.Point2D p)
protected void
setupComponents()
-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods 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, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, 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, update
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
-
Methods 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, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
layoutEditor
protected final LayoutEditor layoutEditor
-
turnoutLabel
protected javax.swing.JLabel turnoutLabel
-
turnoutRHButton
protected javax.swing.JRadioButton turnoutRHButton
-
turnoutLHButton
protected javax.swing.JRadioButton turnoutLHButton
-
turnoutWYEButton
protected javax.swing.JRadioButton turnoutWYEButton
-
doubleXoverButton
protected javax.swing.JRadioButton doubleXoverButton
-
rhXoverButton
protected javax.swing.JRadioButton rhXoverButton
-
lhXoverButton
protected javax.swing.JRadioButton lhXoverButton
-
layoutSingleSlipButton
protected javax.swing.JRadioButton layoutSingleSlipButton
-
layoutDoubleSlipButton
protected javax.swing.JRadioButton layoutDoubleSlipButton
-
leftRowLayout
protected java.awt.FlowLayout leftRowLayout
-
centerRowLayout
protected java.awt.FlowLayout centerRowLayout
-
rightRowLayout
protected java.awt.FlowLayout rightRowLayout
-
turnoutNameComboBox
protected NamedBeanComboBox<Turnout> turnoutNameComboBox
-
turnoutNameLabel
protected javax.swing.JLabel turnoutNameLabel
-
turnoutNamePanel
protected javax.swing.JPanel turnoutNamePanel
-
extraTurnoutPanel
protected javax.swing.JPanel extraTurnoutPanel
-
extraTurnoutNameComboBox
protected NamedBeanComboBox<Turnout> extraTurnoutNameComboBox
-
rotationComboBox
protected javax.swing.JComboBox<java.lang.String> rotationComboBox
-
rotationPanel
protected javax.swing.JPanel rotationPanel
-
trackLabel
protected javax.swing.JLabel trackLabel
-
levelXingButton
protected javax.swing.JRadioButton levelXingButton
-
trackButton
protected javax.swing.JRadioButton trackButton
-
trackSegmentPropertiesPanel
protected javax.swing.JPanel trackSegmentPropertiesPanel
-
mainlineTrack
protected javax.swing.JCheckBox mainlineTrack
-
dashedLine
protected javax.swing.JCheckBox dashedLine
-
blockLabel
protected javax.swing.JLabel blockLabel
-
blockIDComboBox
protected NamedBeanComboBox<Block> blockIDComboBox
-
highlightBlockCheckBox
protected javax.swing.JCheckBox highlightBlockCheckBox
-
blockSensorLabel
protected javax.swing.JLabel blockSensorLabel
-
blockSensorComboBox
protected NamedBeanComboBox<Sensor> blockSensorComboBox
-
endBumperButton
protected javax.swing.JRadioButton endBumperButton
-
anchorButton
protected javax.swing.JRadioButton anchorButton
-
edgeButton
protected javax.swing.JRadioButton edgeButton
-
labelsLabel
protected javax.swing.JLabel labelsLabel
-
textLabelButton
protected javax.swing.JRadioButton textLabelButton
-
textLabelTextField
protected javax.swing.JTextField textLabelTextField
-
memoryButton
protected javax.swing.JRadioButton memoryButton
-
textMemoryComboBox
protected NamedBeanComboBox<Memory> textMemoryComboBox
-
globalVariableButton
protected javax.swing.JRadioButton globalVariableButton
-
textGlobalVariableComboBox
protected NamedBeanComboBox<GlobalVariable> textGlobalVariableComboBox
-
blockContentsButton
protected javax.swing.JRadioButton blockContentsButton
-
blockContentsComboBox
protected NamedBeanComboBox<Block> blockContentsComboBox
-
multiSensorButton
protected javax.swing.JRadioButton multiSensorButton
-
signalMastButton
protected javax.swing.JRadioButton signalMastButton
-
signalMastComboBox
protected NamedBeanComboBox<SignalMast> signalMastComboBox
-
sensorButton
protected javax.swing.JRadioButton sensorButton
-
sensorComboBox
protected NamedBeanComboBox<Sensor> sensorComboBox
-
signalButton
protected javax.swing.JRadioButton signalButton
-
signalHeadComboBox
protected NamedBeanComboBox<SignalHead> signalHeadComboBox
-
iconLabelButton
protected javax.swing.JRadioButton iconLabelButton
-
logixngButton
protected javax.swing.JRadioButton logixngButton
-
audioButton
protected javax.swing.JRadioButton audioButton
-
textAudioComboBox
protected NamedBeanComboBox<Audio> textAudioComboBox
-
shapeButton
protected javax.swing.JRadioButton shapeButton
-
changeIconsButton
protected javax.swing.JButton changeIconsButton
-
sensorIconEditor
protected MultiIconEditor sensorIconEditor
-
sensorFrame
protected javax.swing.JFrame sensorFrame
-
signalIconEditor
protected MultiIconEditor signalIconEditor
-
signalFrame
protected javax.swing.JFrame signalFrame
-
iconEditor
protected MultiIconEditor iconEditor
-
iconFrame
protected javax.swing.JFrame iconFrame
-
logixngEditor
protected MultiIconEditor logixngEditor
-
logixngFrame
protected javax.swing.JFrame logixngFrame
-
audioEditor
protected MultiIconEditor audioEditor
-
audioFrame
protected javax.swing.JFrame audioFrame
-
multiSensorFrame
protected MultiSensorIconFrame multiSensorFrame
-
zoomPanel
protected javax.swing.JPanel zoomPanel
-
zoomLabel
protected javax.swing.JLabel zoomLabel
-
locationPanel
protected javax.swing.JPanel locationPanel
-
locationPopupMenu
protected javax.swing.JPopupMenu locationPopupMenu
-
xLabel
protected javax.swing.JLabel xLabel
-
yLabel
protected javax.swing.JLabel yLabel
-
blockPropertiesPanel
protected javax.swing.JPanel blockPropertiesPanel
-
toolBarIsWide
protected boolean toolBarIsWide
-
itemGroup
protected javax.swing.ButtonGroup itemGroup
-
quickKeyMap
final java.util.Map<javax.swing.JRadioButton,java.lang.String> quickKeyMap
-
-
Constructor Detail
-
LayoutEditorToolBarPanel
public LayoutEditorToolBarPanel(@Nonnull LayoutEditor layoutEditor)
Constructor for LayoutEditorToolBarPanel.Note an unusual design feature: Since this calls the
setupComponents()
andlayoutComponents()
non-final methods in the constructor, any subclass reimplementing those must provide versions that will work before the subclasses own initializers and constructor is run.- Parameters:
layoutEditor
- the layout editor that this is for
-
-
Method Detail
-
setupComponents
protected void setupComponents()
-
getLocationFormat
public LayoutEditorToolBarPanel.LocationFormat getLocationFormat()
-
setLocationFormat
public void setLocationFormat(LayoutEditorToolBarPanel.LocationFormat locationFormat)
-
setLocationText
public void setLocationText(java.awt.geom.Point2D p)
-
layoutComponents
protected void layoutComponents()
layout the components in this panel
-
keyPressed
public void keyPressed(@Nonnull java.awt.event.KeyEvent event)
-
-