jmri.jmrix
Class AbstractMonPane

Show UML class diagram
java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by jmri.util.swing.JmriPanel
                      extended by jmri.jmrix.AbstractMonPane
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
Dcc4PcMonPane, EcosMonPane, LocoMonPane, MarklinMonPane, MonitorPane, MonitorPane, NceMonPanel, NcePacketMonitorPanel, SerialMonPane, SerialMonPane, TamsMonPane

public abstract class AbstractMonPane
extends JmriPanel

Abstract base class for JPanels displaying communications monitor information

See Also:
Serialized 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)  String alwaysOnTopCheck
           
protected  JCheckBox alwaysOnTopCheckBox
           
(package private)  String autoScrollCheck
           
protected  JCheckBox autoScrollCheckBox
           
protected  JButton clearButton
           
(package private)  DateFormat df
           
protected  JButton enterButton
           
protected  JTextField entryField
           
protected  JTextField filterField
           
(package private)  String filterFieldCheck
           
protected  JLabel filterLabel
           
protected  JToggleButton freezeButton
           
protected  JScrollPane jScrollPane1
           
(package private)  StringBuffer linesBuffer
           
(package private)  JFileChooser logFileChooser
           
(package private)  PrintStream logStream
           
protected  JTextArea monTextPane
           
(package private)  String newline
           
protected  JButton openFileChooserButton
           
(package private)  UserPreferencesManager p
           
protected  JCheckBox rawCheckBox
           
(package private)  String rawDataCheck
           
(package private)  AbstractMonPane self
           
protected  JButton startLogButton
           
protected  JButton stopLogButton
           
protected  JCheckBox timeCheckBox
           
(package private)  String timeStampCheck
           
 
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
AbstractMonPane()
           
 
Method Summary
 void clearButtonActionPerformed(ActionEvent e)
           
 void dispose()
           
 void enterButtonActionPerformed(ActionEvent e)
           
 String getFrameText()
           
 String getHelpTarget()
          Define help menu for this window.
abstract  String getTitle()
          Provide a recommended title for an enclosing frame.
protected abstract  void init()
          Initialize the data source.
 void initComponents()
          2nd stage of initialization, invoked after the constuctor is complete.
 void nextLine(String line, String raw)
           
 void nextLineWithTime(Date timestamp, String line, String raw)
           
 void openFileChooserButtonActionPerformed(ActionEvent e)
           
 void setFixedWidthFont()
          Sets the display window to fixed width font, so that e.g. columns line up
 void startLogButtonActionPerformed(ActionEvent e)
           
 void stopLogButtonActionPerformed(ActionEvent e)
           
 
Methods inherited from class jmri.util.swing.JmriPanel
getMenus, getWindowInterface, initContext, isMultipleInstances, setWindowInterface
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

clearButton

protected JButton clearButton

freezeButton

protected JToggleButton freezeButton

jScrollPane1

protected JScrollPane jScrollPane1

monTextPane

protected JTextArea monTextPane

startLogButton

protected JButton startLogButton

stopLogButton

protected JButton stopLogButton

rawCheckBox

protected JCheckBox rawCheckBox

timeCheckBox

protected JCheckBox timeCheckBox

alwaysOnTopCheckBox

protected JCheckBox alwaysOnTopCheckBox

autoScrollCheckBox

protected JCheckBox autoScrollCheckBox

filterField

protected JTextField filterField

filterLabel

protected JLabel filterLabel

openFileChooserButton

protected JButton openFileChooserButton

entryField

protected JTextField entryField

enterButton

protected JButton enterButton

rawDataCheck

String rawDataCheck

timeStampCheck

String timeStampCheck

alwaysOnTopCheck

String alwaysOnTopCheck

autoScrollCheck

String autoScrollCheck

filterFieldCheck

String filterFieldCheck

p

UserPreferencesManager p

self

AbstractMonPane self

logFileChooser

final JFileChooser logFileChooser

newline

String newline

logStream

volatile PrintStream logStream

df

DateFormat df

linesBuffer

StringBuffer linesBuffer
Constructor Detail

AbstractMonPane

public AbstractMonPane()
Method Detail

getTitle

public abstract String getTitle()
Description copied from class: JmriPanel
Provide a recommended title for an enclosing frame.

Overrides:
getTitle in class JmriPanel

init

protected abstract void init()
Initialize the data source.

This is invoked at the end of the GUI initialization phase. Subclass implementations should connect to their data source here.


dispose

public void dispose()
Overrides:
dispose in class JmriPanel

initComponents

public void initComponents()
                    throws Exception
Description copied from class: JmriPanel
2nd stage of initialization, invoked after the constuctor is complete.

Overrides:
initComponents in class JmriPanel
Throws:
Exception

setFixedWidthFont

public void setFixedWidthFont()
Sets the display window to fixed width font, so that e.g. columns line up


getHelpTarget

public String getHelpTarget()
Define help menu for this window.

By default, provides a generic help page that covers general features. Specific implementations can override this to show their own help page if desired.

Overrides:
getHelpTarget in class JmriPanel

nextLineWithTime

public void nextLineWithTime(Date timestamp,
                             String line,
                             String raw)

nextLine

public void nextLine(String line,
                     String raw)

clearButtonActionPerformed

public void clearButtonActionPerformed(ActionEvent e)

startLogButtonActionPerformed

public void startLogButtonActionPerformed(ActionEvent e)

stopLogButtonActionPerformed

public void stopLogButtonActionPerformed(ActionEvent e)

openFileChooserButtonActionPerformed

public void openFileChooserButtonActionPerformed(ActionEvent e)

enterButtonActionPerformed

public void enterButtonActionPerformed(ActionEvent e)

getFrameText

public String getFrameText()


Copyright © 1997-2013 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: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads