|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
jmri.util.JmriJFrame
jmri.jmrix.bachrus.SpeedoConsoleFrame
public class SpeedoConsoleFrame
Frame for Speedo Console for Bachrus running stand reader interface
| Nested Class Summary | |
|---|---|
protected static class |
SpeedoConsoleFrame.DisplayType
|
protected static class |
SpeedoConsoleFrame.ProfileDirection
|
protected static class |
SpeedoConsoleFrame.ProfileState
|
protected static class |
SpeedoConsoleFrame.ProgState
|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Fields inherited from class jmri.util.JmriJFrame |
|---|
reuseFrameSavedPosition, reuseFrameSavedSized |
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface jmri.ProgListener |
|---|
CommError, ConfirmFailed, FailedTimeout, NoAck, NoLocoDetected, NotImplemented, OK, ProgrammerBusy, ProgrammingShort, SequenceError, UnknownError, UserAborted |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
SpeedoConsoleFrame()
|
|
| Method Summary | |
|---|---|
protected void |
avClr()
|
protected void |
avFn(float speed)
|
protected void |
calcSpeed()
|
protected void |
displayTimeout()
Internal routine to update the target speed for display |
void |
dispose()
When window is finally destroyed, remove it from the list of windows. |
protected void |
fastDisplayTimeout()
Internal routine to update the displayed speed |
void |
initComponents()
By default, Swing components should be created an installed in this method, rather than in the ctor itself. |
void |
notifyFailedThrottleRequest(DccLocoAddress address,
String reason)
Get notification that an attempt to request a throttle has failed |
void |
notifyThrottleFound(DccThrottle t)
Get notification that a throttle has been found as you requested. |
protected void |
profileTimeout()
Time to change to next speed increment |
void |
programmingOpReply(int value,
int status)
Receive a callback at the end of a programming operation. |
void |
propertyChange(PropertyChangeEvent evt)
|
protected void |
readAddress()
|
void |
reply(SpeedoReply l)
Handle "replies" from the hardware. |
protected void |
replyTimeout()
Internal routine to reset the speed on a timeout |
protected void |
showSpeed()
|
protected void |
startDisplayTimer()
|
protected void |
startFastDisplayTimer()
|
protected void |
startProfile()
|
protected void |
startRead(int cv)
|
protected void |
startReplyTimer()
|
protected void |
stopProfile()
|
protected void |
switchRange()
|
protected void |
throttleTimeout()
timeout requesting a throttle |
protected void |
tidyUp()
|
protected String |
title()
|
protected void |
trackPower()
|
| Methods inherited from class java.awt.Frame |
|---|
getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
protected JLabel scaleLabel
protected JTextField speedTextField
protected ButtonGroup speedGroup
protected JRadioButton mphButton
protected JRadioButton kphButton
protected ButtonGroup displayGroup
protected JRadioButton numButton
protected JRadioButton dialButton
protected SpeedoDial speedoDialDisplay
protected JRadioButton dirFwdButton
protected JRadioButton dirRevButton
protected JLabel profileAddressLabel
protected JTextField profileAddressField
protected JButton readAddressButton
protected JButton trackPowerButton
protected JButton startProfileButton
protected JButton stopProfileButton
protected JButton exportProfileButton
protected JButton printProfileButton
protected JLabel statusLabel
protected JLabel readerLabel
protected String[] scaleStrings
protected float[] scales
protected static final int defaultScale
protected float selectedScale
protected int series
protected float sampleSpeed
protected float targetSpeed
protected float currentSpeed
protected float incSpeed
protected float oldSpeed
protected float acc
protected float avSpeed
protected int range
protected float circ
protected float count
protected float freq
protected static final int DISPLAY_UPDATE
protected static final int FAST_DISPLAY_RATIO
protected static final int RANGE1LO
protected static final int RANGE1HI
protected static final int RANGE2LO
protected static final int RANGE2HI
protected static final int RANGE3LO
protected static final int RANGE3HI
protected static final int RANGE4LO
protected static final int RANGE4HI
protected SpeedoConsoleFrame.DisplayType display
protected int dccServices
protected static final int BASIC
protected static final int PROG
protected static final int COMMAND
protected static final int THROTTLE
protected boolean timerRunning
protected DccSpeedProfile spFwd
protected DccSpeedProfile spRev
protected SpeedoConsoleFrame.ProfileState state
protected SpeedoConsoleFrame.ProfileDirection profileDir
protected DccThrottle throttle
protected int profileStep
protected float profileSpeed
protected float profileIncrement
protected int profileAddress
protected Programmer prog
protected CommandStation commandStation
protected SpeedoConsoleFrame.ProgState readState
| Constructor Detail |
|---|
public SpeedoConsoleFrame()
| Method Detail |
|---|
protected String title()
public void dispose()
JmriJFrameSubclasses that over-ride this method must invoke this implementation with super.dispose()
dispose in class JmriJFrame
public void initComponents()
throws Exception
JmriJFrame
initComponents in class JmriJFrameExceptionpublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpublic void reply(SpeedoReply l)
reply in interface SpeedoListenerl - protected void calcSpeed()
protected void avFn(float speed)
protected void avClr()
protected void switchRange()
protected void showSpeed()
protected void trackPower()
protected void startProfile()
protected void stopProfile()
public void notifyThrottleFound(DccThrottle t)
ThrottleListener
notifyThrottleFound in interface ThrottleListenert - An instantiation of the DccThrottle with the address requested.
public void notifyFailedThrottleRequest(DccLocoAddress address,
String reason)
ThrottleListener
notifyFailedThrottleRequest in interface ThrottleListeneraddress - DccLocoAddress of the failed loco request.reason - The reason why the throttle request failed.protected void startReplyTimer()
protected void replyTimeout()
protected void startDisplayTimer()
protected void startFastDisplayTimer()
protected void displayTimeout()
protected void fastDisplayTimeout()
protected void throttleTimeout()
protected void profileTimeout()
protected void tidyUp()
protected void readAddress()
protected void startRead(int cv)
public void programmingOpReply(int value,
int status)
ProgListener
programmingOpReply in interface ProgListenervalue - Value from a read operation, or value written on a writestatus - Denotes the completion code. Note that this is a
bitwise combination of the various status coded defined
in this interface.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||