Package jmri.jmrix.nce.consist
Class NceConsistEditPanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
jmri.util.swing.JmriPanel
jmri.jmrix.nce.swing.NcePanel
jmri.jmrix.nce.consist.NceConsistEditPanel
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,EventListener,Accessible,AbstractMRListener,NceListener,NcePanelInterface
Pane for user edit of NCE Consists
NCE Consists are stored in Command Station (CS) memory starting at address
xF500 and ending xFAFF (PH5 0x4E00 - 0x53FF). NCE supports up to 127 consists, numbered 1 to 127.
They track the lead loco, rear loco, and four mid locos in the consist file.
NCE cabs start at consist 127 when building and reviewing consists, so we
also start with 127. Consist lead locos are stored in memory locations xF500
through xF5FF (PH5 0x4E00 - 0x4EFF). Consist rear locos are stored in memory locations xF600
through xF6FF (PH5 0x4F00 - 0x4FFF). Mid consist locos (four max) are stored in memory locations
xF700 through xFAFF (PH5 0x500 - 0x53FF). If a long address is in use, bits 6 and 7 of the high
byte are set. Example: Long address 3 = 0xc0 0x03 Short address 3 = 0x00 0x03
NCE file format:
:F500 (con 0 lead loco) (con 1 lead loco) ....... (con 7 lead loco) :F510
(con 8 lead loco) ........ (con 15 lead loco) . . :F5F0 (con 120 lead loco)
..... (con 127 lead loco)
:F600 (con 0 rear loco) (con 1 rear loco) ....... (con 7 rear loco) . . :F6F0
(con 120 rear loco) ..... (con 127 rear loco)
:F700 (con 0 mid loco1) (con 0 mid loco2) (con 0 mid loco3) (con 0 mid loco4)
. . :FAF0 (con 126 mid loco1) .. (con 126 mid loco4)(con 127 mid loco1) ..
(con 127 mid loco4) :0000
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested class to create one of these using old-style defaultsNested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested 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
FieldsModifier and TypeFieldDescription(package private) JButton(package private) JButton(package private) JButton(package private) JButton(package private) JButton(package private) JButton(package private) JButton(package private) JCheckBox(package private) JCheckBox(package private) JCheckBox(package private) JButton(package private) JButton(package private) JButton(package private) JButton(package private) JButton(package private) JButton(package private) JButtonprotected List<NceConsistRosterEntry>(package private) ActionListener(package private) JLabel(package private) JTextField(package private) JButton(package private) JButton(package private) JButton(package private) JButton(package private) JButton(package private) JButton(package private) JButton(package private) JButton(package private) JTextField(package private) JTextField(package private) JTextField(package private) JTextField(package private) JTextField(package private) JTextField(package private) NceConsistRoster(package private) NceConsistRosterEntry(package private) Thread(package private) JButton(package private) JButton(package private) JButton(package private) JButton(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JLabel(package private) JButtonFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidProvide a help target string which an enclosing frame can provide as a help reference.getMenus()Provide menu items to add to a menu bar.The minimum frame size for font size 16getTitle()Provide a recommended title for an enclosing frame.void2nd stage of initialization, invoked after the constuctor is complete.voidinitContext(Object context) 3rd stage of initialization, invoked after Swing components exist.voidvoidvoidvoidMethods inherited from class jmri.util.swing.JmriPanel
dispose, getWindowInterface, initComponents, isMultipleInstances, setWindowInterfaceMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods 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, updateMethods 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, 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, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
nceConsistRoster
-
nceMemoryThread
-
textConsist
-
textStatus
-
consistStatus
-
previousButton
-
nextButton
-
getButton
-
throttleButton
-
clearCancelButton
-
saveLoadButton
-
deleteButton
-
backUpButton
-
restoreButton
-
checkBoxEmpty
-
checkBoxVerify
-
checkBoxConsist
-
consistTextField
-
textLocomotive
-
textRoster
-
textAddress
-
textAddrType
-
textDirection
-
textConRoster
-
textConRoadName
-
textConRoadNumber
-
textConModel
-
conRosterBox
-
space1
-
space2
-
space3a
-
space3b
-
space3c
-
space3d
-
space15
-
textLoco1
-
locoTextField1
-
locoRosterBox1
-
adrButton1
-
cmdButton1
-
dirButton1
-
textLoco2
-
locoTextField2
-
locoRosterBox2
-
adrButton2
-
cmdButton2
-
dirButton2
-
textLoco3
-
locoTextField3
-
locoRosterBox3
-
adrButton3
-
cmdButton3
-
dirButton3
-
textLoco4
-
locoTextField4
-
locoRosterBox4
-
adrButton4
-
cmdButton4
-
dirButton4
-
textLoco5
-
locoTextField5
-
locoRosterBox5
-
adrButton5
-
cmdButton5
-
dirButton5
-
textLoco6
-
locoTextField6
-
locoRosterBox6
-
adrButton6
-
cmdButton6
-
dirButton6
-
nceConsistRosterEntry
-
consistList
-
consistRosterListener
-
-
Constructor Details
-
NceConsistEditPanel
public NceConsistEditPanel()
-
-
Method Details
-
initContext
3rd stage of initialization, invoked after Swing components exist.- Overrides:
initContextin classNcePanel- Parameters:
context- the context that this panel may be initialized with
-
getHelpTarget
Provide a help target string which an enclosing frame can provide as a help reference.This automatically provides a reference to the usual place for JMRI window-specific help pages that are named for the implementing class, but note this is a Pane class, not a Frame class.
- Overrides:
getHelpTargetin classJmriPanel- Returns:
- the target String
-
getTitle
Provide a recommended title for an enclosing frame. -
getMenus
Provide menu items to add to a menu bar. -
getMinimumDimension
The minimum frame size for font size 16- Overrides:
getMinimumDimensionin classJmriPanel
-
initComponents
2nd stage of initialization, invoked after the constuctor is complete.This needs to be connected to the initContext() method in implementing classes.
- Specified by:
initComponentsin interfaceNcePanelInterface- Overrides:
initComponentsin classNcePanel- Parameters:
m- the system connection memo for this connection
-
buttonActionPerformed
-
buttonActionCmdPerformed
-
buttonActionAdrPerformed
-
buttonActionDirPerformed
-
locoSelected
-
consistRosterSelected
-
checkBoxActionPerformed
-
message
- Specified by:
messagein interfaceNceListener
-
reply
- Specified by:
replyin interfaceNceListener
-
reportError
-