|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
jmri.util.swing.JmriPanel
jmri.jmrix.loconet.swing.LnPanel
jmri.jmrix.loconet.duplexgroup.swing.DuplexGroupScanPanel
public class DuplexGroupScanPanel
Defines a GUI and associated logic to perform energy scan operations on Duplex radio channels. Displays energy scan data in a graphical form.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| 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 |
| Field Summary | |
|---|---|
(package private) int |
channelIndexToScan
|
(package private) JButton |
clearButton
|
(package private) jmri.jmrix.loconet.duplexgroup.swing.DuplexGroupScanPanel.DuplexChannelInfo[] |
dci
|
(package private) JLabel |
grStatusValue
|
(package private) static org.slf4j.Logger |
log
|
(package private) int |
loopNum
|
(package private) int |
maxChannelIndexToScan
|
(package private) int |
previousGroupChannel
|
(package private) DuplexGroupScanPanel |
safe
|
(package private) JButton |
scanLoopButton
|
(package private) Integer |
scanLoopDelay
|
(package private) JLabel |
scanLoopLabel
|
(package private) boolean |
stopRequested
|
(package private) boolean |
waitingForPreviousGroupChannel
|
(package private) Integer |
whenToStop
|
| Fields inherited from class jmri.jmrix.loconet.swing.LnPanel |
|---|
memo |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DuplexGroupScanPanel()
|
|
| Method Summary | |
|---|---|
void |
connect(LnTrafficController t)
|
void |
dispose()
Break connection with the LnTrafficController and stop timers |
String |
getHelpTarget()
Provide a help target string which an enclosing frame can provide as a help reference. |
String |
getTitle()
Provide a recommended title for an enclosing frame. |
void |
initComponents()
2nd stage of initialization, invoked after the constuctor is complete. |
void |
initComponents(LocoNetSystemConnectionMemo memo)
2nd stage of initialization, invoked after the constuctor is complete. |
boolean |
isInitialized()
|
void |
message(LocoNetMessage m)
Process all incoming LocoNet messages to look for Duplex Group information operations. |
void |
stateChanged(ChangeEvent e)
|
| Methods inherited from class jmri.jmrix.loconet.swing.LnPanel |
|---|
getTitle, initContext |
| Methods inherited from class jmri.util.swing.JmriPanel |
|---|
getMenus, getWindowInterface, isMultipleInstances, setWindowInterface |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
jmri.jmrix.loconet.duplexgroup.swing.DuplexGroupScanPanel.DuplexChannelInfo[] dci
DuplexGroupScanPanel safe
JButton scanLoopButton
JLabel scanLoopLabel
JButton clearButton
JLabel grStatusValue
boolean stopRequested
Integer scanLoopDelay
boolean waitingForPreviousGroupChannel
int previousGroupChannel
int channelIndexToScan
int maxChannelIndexToScan
int loopNum
Integer whenToStop
static org.slf4j.Logger log
| Constructor Detail |
|---|
public DuplexGroupScanPanel()
| Method Detail |
|---|
public void initComponents()
throws Exception
JmriPanel
initComponents in class JmriPanelExceptionpublic String getHelpTarget()
JmriPanelThis 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.
getHelpTarget in class JmriPanelpublic String getTitle()
JmriPanel
getTitle in class JmriPanelpublic void initComponents(LocoNetSystemConnectionMemo memo)
LnPanelInterfaceThis needs to be connected to the initContext() method in implementing classes.
initComponents in interface LnPanelInterfaceinitComponents in class LnPanelpublic boolean isInitialized()
public void message(LocoNetMessage m)
If tool has sent a query for Duplex group information and has not yet received a Duplex group report, the method updates the GUI with the received information.
If the tool is not currently waiting for a response to a query, then the method compares the received information against the information currently displayed in the GUI. If the received information does not match, a message is displayed on the status line in the GUI, else nothing is displayed in the GUI status line.
message in interface LocoNetListenerm - public void connect(LnTrafficController t)
public void dispose()
dispose in class JmriPanelpublic void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||