|
||||||||||
| 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 |
| Nested classes/interfaces inherited from interface jmri.util.swing.WindowInterface |
|---|
WindowInterface.Hint |
| Field Summary | |
|---|---|
protected float |
acc
|
protected float |
avSpeed
|
protected static int |
BASIC
|
protected float |
circ
|
protected static int |
COMMAND
|
protected CommandStation |
commandStation
|
protected float |
count
|
protected float |
currentSpeed
|
protected int |
dccServices
|
protected static int |
defaultScale
|
protected JRadioButton |
dialButton
|
protected JRadioButton |
dirFwdButton
|
protected JRadioButton |
dirRevButton
|
protected SpeedoConsoleFrame.DisplayType |
display
|
protected static int |
DISPLAY_UPDATE
|
protected ButtonGroup |
displayGroup
|
(package private) Timer |
displayTimer
|
protected JButton |
exportProfileButton
|
protected static int |
FAST_DISPLAY_RATIO
|
(package private) Timer |
fastDisplayTimer
|
(package private) static int[] |
filterLength
|
protected float |
freq
|
protected float |
incSpeed
|
protected JRadioButton |
kphButton
|
(package private) static org.slf4j.Logger |
log
|
protected JRadioButton |
mphButton
|
protected JRadioButton |
numButton
|
protected float |
oldSpeed
|
protected JButton |
printProfileButton
|
protected SpeedoConsoleFrame.ProfileDirection |
profileDir
|
(package private) GraphPane |
profileGraphPane
|
protected float |
profileIncrement
|
protected float |
profileSpeed
|
protected int |
profileStep
|
(package private) Timer |
profileTimer
|
protected Programmer |
prog
|
protected static int |
PROG
|
protected int |
range
|
protected static int |
RANGE1HI
|
protected static int |
RANGE1LO
|
protected static int |
RANGE2HI
|
protected static int |
RANGE2LO
|
protected static int |
RANGE3HI
|
protected static int |
RANGE3LO
|
protected static int |
RANGE4HI
|
protected static int |
RANGE4LO
|
(package private) static ResourceBundle |
rb
TODO: Complete the help file Allow selection of arbitrary scale |
protected int |
readAddress
|
protected JButton |
readAddressButton
|
protected JLabel |
readerLabel
|
protected SpeedoConsoleFrame.ProgState |
readState
|
(package private) String |
replyString
|
(package private) Timer |
replyTimer
|
protected RosterEntry |
rosterEntry
|
protected float |
sampleSpeed
|
protected JLabel |
scaleLabel
|
(package private) JComboBox |
scaleList
|
protected float[] |
scales
|
protected String[] |
scaleStrings
|
protected float |
selectedScale
|
protected int |
series
|
protected ButtonGroup |
speedGroup
|
protected SpeedoDial |
speedoDialDisplay
|
protected JTextField |
speedTextField
|
protected DccSpeedProfile |
spFwd
|
protected DccSpeedProfile |
spRev
|
protected JButton |
startProfileButton
|
protected SpeedoConsoleFrame.ProfileState |
state
|
protected JLabel |
statusLabel
|
protected JButton |
stopProfileButton
|
protected float |
targetSpeed
|
(package private) SpeedoTrafficController |
tc
|
protected DccThrottle |
throttle
|
protected static int |
THROTTLE
|
protected boolean |
timerRunning
|
protected JButton |
trackPowerButton
|
| Fields inherited from class jmri.util.JmriJFrame |
|---|
allowInFrameServlet, properties, reuseFrameSavedPosition, reuseFrameSavedSized, windowInterface |
| 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 |
void |
setRosterEntry(RosterEntry entry)
Set the RosterEntry for this throttle. |
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 |
|---|
static final ResourceBundle rb
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
GraphPane profileGraphPane
protected JButton readAddressButton
protected RosterEntry rosterEntry
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
static final int[] filterLength
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 readAddress
protected Programmer prog
protected CommandStation commandStation
protected SpeedoConsoleFrame.ProgState readState
JComboBox scaleList
SpeedoTrafficController tc
String replyString
Timer replyTimer
Timer displayTimer
Timer fastDisplayTimer
Timer profileTimer
static org.slf4j.Logger log
| 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 interface WindowInterfacedispose in class JmriJFrame
public void initComponents()
throws Exception
JmriJFrame
initComponents in class JmriJFrameExceptionpublic void setRosterEntry(RosterEntry entry)
public 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 | |||||||||