faa.tg.dra.gui
Class TimeSamplerPanel

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 faa.tg.util.gui.awt.DraggableJPanel
                      extended by faa.tg.dra.gui.DraPanel
                          extended by faa.tg.dra.gui.TimeSamplerPanel
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class TimeSamplerPanel
extends DraPanel

 TimeSamplerPanel is a DraPanel that provides a GUI interface panel for
 the TimeSampler class.  TimeSampler takes samples, at regular time 
 intervals, of data objects implementing HasSimTime.  The time sampler
 sends data objects with an associated simulation time that matches
 either 1) the start time, or 2) a time that equals the start time plus
 a positive integer multiple of the specified interval.  To show that the
 aircraft did not disappear and then reappear in the recording,
 EndOfEpochEvents for those times are also removed. 

A TimeSampler can be set to remove only aircraft state information (EndOfEpochEvents are still removed also), allowing all instances of all other data types through no matter what time they occurred at. If set, the resulting output is generally similar to a recording that had output epochs at the TimeSampler interval, since other flight info is retained.

Events that do not implement HasSimTime are discarded unless the passThrough indicator is set.

See the source: TimeSamplerPanel.java

Version:
$Id: TimeSamplerPanel.java,v 3.1 2006/03/14 15:52:46 samf Exp $
Author:
Dana Whicker, Titan/SRC, Wed Mar 20 2002
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
static java.lang.String DEFAULT_INTERVAL
          Defaults to once per minute.
static java.lang.String DEFAULT_INTERVAL_START
          Defaults to simulation start time.
private  java.lang.String defaultInterval
           
private  java.lang.String defaultIntervalStart
           
static java.lang.String INTERVAL_PROP
           
static java.lang.String INTERVAL_START_PROP
           
private  javax.swing.JTextField intervalStartField
           
private  javax.swing.JTextField intervalValueField
           
private  javax.swing.JPanel parmsPanel
           
static java.lang.String PASSTH_PROP
           
private  java.lang.String passThroughString
           
private  PassThroughPanel ptPanel
           
static java.lang.String REMOVE_AC_PROP
           
private  javax.swing.JCheckBox removeAcOnlyChkBox
           
private  java.lang.String removeAcTooltip
           
private  java.lang.String removeAircraftOnlyString
           
(package private) static long serialVersionUID
           
 
Fields inherited from class faa.tg.dra.gui.DraPanel
CLASSNAME_PROP, DEFAULT_PANEL_HEIGHT, DEFAULT_PANEL_WIDTH, DEFAULT_PASSTHROUGH_TRUE, FILTER_COLOR, MULTIPLEXER_COLOR, ONE_ROW_PANEL_HEIGHT, PLOTTER_COLOR, PRINTER_COLOR, READER_COLOR, TEXT_ONLY_PANEL_HEIGHT
 
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
TimeSamplerPanel()
          Constructor for the TimeSampler panel.
TimeSamplerPanel(java.util.Properties props)
          Constructor that accepts panel layout and panel parameters.
 
Method Summary
 java.util.Properties getProperties()
          Returns a Properties field containing the values that define the Factory.
 java.lang.Object instantiateProcessor()
          Instantiate and return a DistFactory with this panel's parameters.
 void setProperties()
          Set the characteristics of the GUI panel.
 void setProperties(java.util.Properties properties)
          Set the characteristics of the GUI panel using the given Properties.
 
Methods inherited from class faa.tg.dra.gui.DraPanel
drawLineOnBottom, drawLineOnTop, getTitle, processMouseEvent, reset, select, setProperty
 
Methods inherited from class faa.tg.util.gui.awt.DraggableJPanel
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
 
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, 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

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
The CVS Version ID

See Also:
Constant Field Values

INTERVAL_START_PROP

public static final java.lang.String INTERVAL_START_PROP
See Also:
Constant Field Values

INTERVAL_PROP

public static final java.lang.String INTERVAL_PROP
See Also:
Constant Field Values

PASSTH_PROP

public static final java.lang.String PASSTH_PROP
See Also:
Constant Field Values

REMOVE_AC_PROP

public static final java.lang.String REMOVE_AC_PROP
See Also:
Constant Field Values

DEFAULT_INTERVAL_START

public static java.lang.String DEFAULT_INTERVAL_START
Defaults to simulation start time.


DEFAULT_INTERVAL

public static java.lang.String DEFAULT_INTERVAL
Defaults to once per minute.


intervalStartField

private javax.swing.JTextField intervalStartField

intervalValueField

private javax.swing.JTextField intervalValueField

parmsPanel

private javax.swing.JPanel parmsPanel

defaultIntervalStart

private java.lang.String defaultIntervalStart

defaultInterval

private java.lang.String defaultInterval

passThroughString

private java.lang.String passThroughString

removeAcOnlyChkBox

private javax.swing.JCheckBox removeAcOnlyChkBox

removeAircraftOnlyString

private java.lang.String removeAircraftOnlyString

removeAcTooltip

private java.lang.String removeAcTooltip

ptPanel

private PassThroughPanel ptPanel
Constructor Detail

TimeSamplerPanel

public TimeSamplerPanel()
Constructor for the TimeSampler panel.


TimeSamplerPanel

public TimeSamplerPanel(java.util.Properties props)
Constructor that accepts panel layout and panel parameters.

Parameters:
props - Values for parameters stored in a Properties file.
Method Detail

setProperties

public void setProperties()
Set the characteristics of the GUI panel.

Overrides:
setProperties in class DraPanel

setProperties

public void setProperties(java.util.Properties properties)
Set the characteristics of the GUI panel using the given Properties.

Specified by:
setProperties in class DraPanel
Parameters:
properties - Properties for the GUI panel.

getProperties

public java.util.Properties getProperties()
Returns a Properties field containing the values that define the Factory.

Specified by:
getProperties in class DraPanel
Returns:
Properties field containing values that define the Factory.

instantiateProcessor

public java.lang.Object instantiateProcessor()
Instantiate and return a DistFactory with this panel's parameters.

Specified by:
instantiateProcessor in class DraPanel
Returns:
The DistFactory instantiated with this panel's parameters.