org.web3d.vrtp.rtp
Class RtpMonitor

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--org.web3d.vrtp.rtp.RtpMonitor
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.MenuContainer, java.io.Serializable

public class RtpMonitor
extends java.awt.Frame
implements java.awt.event.ActionListener, java.awt.event.ItemListener

The RtpMonitor Application.

This class is a frame that implements the RtpMonitor GUI.

If any command line argument is passed the RtpMonitorCommandLine class is called instead.

Version:
1.0
Author:
Francisco Afonso (afonso@cs.nps.navy.mil)
See Also:
Serialized Form

Inner classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Inner classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  About aboutDialog
           
(package private)  java.awt.MenuItem aboutItem
           
(package private)  java.awt.TextArea activeArea
           
(package private)  java.awt.Label activeLabel
           
(package private)  java.awt.MenuItem addBm
           
(package private)  AddBookmark addBmDialog
           
(package private)  java.awt.MenuBar bar
           
(package private)  java.awt.Menu bookmarkMenu
           
(package private)  java.awt.Button changeStream
           
(package private)  DeleteBookmark delBmDialog
           
(package private)  java.awt.MenuItem deleteBm
           
(package private)  DisplayTask dispTask
           
(package private)  java.util.Date endDate
           
(package private)  java.awt.Label endLabel
           
(package private)  int[] endsInHours
           
(package private)  java.awt.MenuItem exitItem
           
(package private)  java.awt.TextArea feedbkArea
           
(package private)  java.awt.Label feedbkFieldsLabel
           
(package private)  java.awt.Label feedbkLabel
           
(package private)  java.awt.Menu filesMenu
           
(package private)  boolean flgActive
           
(package private)  boolean flgPart
           
(package private)  boolean flgPlay
           
(package private)  boolean flgRecord
           
(package private)  boolean flgUpdateStreams
           
(package private)  java.lang.String[] gField
           
(package private)  java.awt.Label[] gLab
           
(package private)  java.awt.Label globalStatLabel
           
(package private)  java.awt.TextField[] gText
           
(package private)  java.awt.MenuItem headerItem
           
(package private)  java.awt.Menu helpMenu
           
(package private)  java.awt.MenuItem last5Item
           
(package private)  java.awt.MenuItem lastHourItem
           
(package private)  java.lang.String locator
           
(package private)  java.awt.MenuItem modifyPref
           
(package private)  ModifyPreferences modPrefDialog
           
(package private)  RtpMonitorManager monMgr
           
(package private)  javax.media.rtp.SessionManager mymgr
           
(package private)  java.awt.TextArea passiveArea
           
(package private)  java.awt.Label passiveLabel
           
(package private)  java.awt.Menu preferences
           
(package private)  int presInterval
           
(package private)  java.awt.MenuItem previous5Item
           
(package private)  java.awt.MenuItem previousHourItem
           
(package private)  double recInterval
           
(package private)  java.lang.String[] rField
           
(package private)  java.awt.Label[] rLab
           
(package private)  java.awt.TextField[] rText
           
(package private)  SelectBookmark selBmDialog
           
(package private)  java.awt.MenuItem selectBm
           
(package private)  java.awt.Label sessionLabel
           
(package private)  java.awt.Label sessionNameLabel
           
(package private)  java.awt.TextField sessionNameText
           
(package private)  java.awt.TextField sessionText
           
(package private)  long SSRCtoShow
           
(package private)  java.awt.Button start
           
(package private)  java.awt.Button stop
           
(package private)  java.awt.Choice streamChoice
           
(package private)  java.awt.Label streamLabel
           
(package private)  java.util.Hashtable streamTable
           
(package private)  java.awt.MenuItem viewPref
           
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, icon, ICONIFIED, mbManagement, menuBar, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, title, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Window
inputContext, OPENED, ownedWindowList, state, warningString, windowListener
 
Fields inherited from class java.awt.Container
component, containerListener, layoutMgr, listeningBoundsChildren, listeningChildren, ncomponents
 
Fields inherited from class java.awt.Component
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListener, componentListenerK, componentOrientation, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
RtpMonitor()
          Constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Takes action when buttons are selected.
 boolean isMonitoring()
          Returns the state of RtpMonitor.
 void itemStateChanged(java.awt.event.ItemEvent ie)
          Take action when selection boxes are used.
static void main(java.lang.String[] args)
          Method called upon executing class RtpMonitor.
 void showFeedbacks()
          Updates the stream feedbacks.
 void showGlobalStats()
          Updates the global statistics.
 void showParticipants()
          Updates the lists of active and passive participants.
 void showStreamStats()
          Updates the stream statistics.
 
Methods inherited from class java.awt.Frame
, addNotify, addToFrameList, constructComponentName, finalize, getAccessibleContext, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, isResizable, paramString, postProcessKeyEvent, remove, removeFromFrameList, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle
 
Methods inherited from class java.awt.Window
addOwnedWindow, addWindowListener, adjustListeningChildren, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, dispose, eventEnabled, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isActive, isShowing, nextFocus, pack, postEvent, postWindowEvent, preProcessKeyEvent, processEvent, processWindowEvent, removeOwnedWindow, removeWindowListener, resetGC, setCursor, setFocusOwner, show, toBack, toFront, transferFocus
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getCursorTarget, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, numListening, paint, paintComponents, postsOldMouseEvents, preferredSize, print, printComponents, printHeavyweightComponents, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, setFont, setLayout, update, updateCursor, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getIntrinsicCursor, getLocation, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sessionText

java.awt.TextField sessionText

sessionNameText

java.awt.TextField sessionNameText

activeArea

java.awt.TextArea activeArea

passiveArea

java.awt.TextArea passiveArea

feedbkArea

java.awt.TextArea feedbkArea

streamChoice

java.awt.Choice streamChoice

start

java.awt.Button start

stop

java.awt.Button stop

changeStream

java.awt.Button changeStream

sessionLabel

java.awt.Label sessionLabel

sessionNameLabel

java.awt.Label sessionNameLabel

streamLabel

java.awt.Label streamLabel

feedbkLabel

java.awt.Label feedbkLabel

endLabel

java.awt.Label endLabel

globalStatLabel

java.awt.Label globalStatLabel

activeLabel

java.awt.Label activeLabel

passiveLabel

java.awt.Label passiveLabel

feedbkFieldsLabel

java.awt.Label feedbkFieldsLabel

gLab

java.awt.Label[] gLab

gText

java.awt.TextField[] gText

gField

java.lang.String[] gField

rLab

java.awt.Label[] rLab

rText

java.awt.TextField[] rText

rField

java.lang.String[] rField

endsInHours

int[] endsInHours

locator

java.lang.String locator

flgPart

boolean flgPart

flgPlay

boolean flgPlay

flgRecord

boolean flgRecord

flgActive

boolean flgActive

presInterval

int presInterval

recInterval

double recInterval

monMgr

RtpMonitorManager monMgr

mymgr

javax.media.rtp.SessionManager mymgr

dispTask

DisplayTask dispTask

SSRCtoShow

long SSRCtoShow

streamTable

java.util.Hashtable streamTable

flgUpdateStreams

boolean flgUpdateStreams

endDate

java.util.Date endDate

bar

java.awt.MenuBar bar

preferences

java.awt.Menu preferences

bookmarkMenu

java.awt.Menu bookmarkMenu

filesMenu

java.awt.Menu filesMenu

helpMenu

java.awt.Menu helpMenu

viewPref

java.awt.MenuItem viewPref

modifyPref

java.awt.MenuItem modifyPref

selectBm

java.awt.MenuItem selectBm

addBm

java.awt.MenuItem addBm

deleteBm

java.awt.MenuItem deleteBm

aboutItem

java.awt.MenuItem aboutItem

last5Item

java.awt.MenuItem last5Item

previous5Item

java.awt.MenuItem previous5Item

lastHourItem

java.awt.MenuItem lastHourItem

previousHourItem

java.awt.MenuItem previousHourItem

headerItem

java.awt.MenuItem headerItem

exitItem

java.awt.MenuItem exitItem

modPrefDialog

ModifyPreferences modPrefDialog

selBmDialog

SelectBookmark selBmDialog

delBmDialog

DeleteBookmark delBmDialog

addBmDialog

AddBookmark addBmDialog

aboutDialog

About aboutDialog
Constructor Detail

RtpMonitor

public RtpMonitor()
Constructor. It is called by main() if no command line argument is passed.

The constructor initializes the GUI components.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Takes action when buttons are selected.
Specified by:
actionPerformed in interface java.awt.event.ActionListener

showGlobalStats

public void showGlobalStats()
Updates the global statistics.

showParticipants

public void showParticipants()
Updates the lists of active and passive participants.

showStreamStats

public void showStreamStats()
Updates the stream statistics.

showFeedbacks

public void showFeedbacks()
Updates the stream feedbacks.

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent ie)
Take action when selection boxes are used.
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

isMonitoring

public boolean isMonitoring()
Returns the state of RtpMonitor. Also exits the program if the duration is over.
Returns:
true if the monitor is active

main

public static void main(java.lang.String[] args)
Method called upon executing class RtpMonitor. If there is no argument an object of class RtpMonitor will be instantiated and executed, otherwise the same will happen with an RtpMonitorCommandLine object.