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
public class NceConsistEditPanel
- extends NcePanel
- implements NceListener
Pane for user edit of NCE Consists
NCE Consists are stored in Command Station (CS) memory starting at address
xF500 and ending xFAFF. 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. Consist rear locos are stored in memory locations
xF600 through xF6FF. Mid consist locos (four max) are stored in memory
locations xF700 through xFAFF. 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
- Author:
- Dan Boudreau Copyright (C) 2007 2008
Cloned from NceConsistEditFrame by, kcameron Copyright (C) 2010
- See Also:
- Serialized Form
| Fields inherited from class jmri.jmrix.nce.swing.NcePanel |
memo |
| 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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, transferFocusBackward, 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, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
CS_CONSIST_MEM
public static final int CS_CONSIST_MEM
- See Also:
- Constant Field Values
consistList
protected List<NceConsistRosterEntry> consistList
NceConsistEditPanel
public NceConsistEditPanel()
initContext
public void initContext(Object context)
throws Exception
- Description copied from class:
JmriPanel
- 3rd stage of initialization, invoked after
Swing components exist.
- Overrides:
initContext in class NcePanel
- Throws:
Exception
getHelpTarget
public String getHelpTarget()
- Description copied from class:
JmriPanel
- Provide a help target string which an enclosing
frame can provide as a help reference.
- Overrides:
getHelpTarget in class JmriPanel
getTitle
public String getTitle()
- Description copied from class:
JmriPanel
- Provide a recommended title for an enclosing frame.
- Overrides:
getTitle in class JmriPanel
getMenus
public List<JMenu> getMenus()
- Description copied from class:
JmriPanel
- Provide menu items
- Overrides:
getMenus in class JmriPanel
initComponents
public void initComponents(NceSystemConnectionMemo m)
throws Exception
- Description copied from interface:
NcePanelInterface
- 2nd stage of initialization, invoked after
the constuctor is complete.
This needs to be connected to the
initContext() method in implementing classes.
- Specified by:
initComponents in interface NcePanelInterface- Overrides:
initComponents in class NcePanel
- Throws:
Exception
buttonActionPerformed
public void buttonActionPerformed(ActionEvent ae)
buttonActionCmdPerformed
public void buttonActionCmdPerformed(ActionEvent ae)
buttonActionAdrPerformed
public void buttonActionAdrPerformed(ActionEvent ae)
buttonActionDirPerformed
public void buttonActionDirPerformed(ActionEvent ae)
locoSelected
public void locoSelected(ActionEvent ae)
consistRosterSelected
public void consistRosterSelected(ActionEvent ae)
checkBoxActionPerformed
public void checkBoxActionPerformed(ActionEvent ae)
message
public void message(NceMessage m)
- Specified by:
message in interface NceListener
reply
public void reply(NceReply r)
- Specified by:
reply in interface NceListener
reportError
public void reportError()
Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: