Class VCCInfoViewer

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----VCCInfoViewer

public class VCCInfoViewer
extends Dialog
implements ActionListener, Runnable, WindowListener
Class definition for a dialog window to display information about a VCC.

Version:
$Revision: 1.4 $, $Date: 2000/10/12 14:08:03 $
Author:
John Cavanaugh

Variable Index

 o done
A flag indicating when the thread is finished.
 o e1Uptime
A display label for endpoint 1's uptime.
 o e1Xmit
A display label for endpoint 1's xmit cell count.
 o e2Uptime
A display label for endpoint 2's uptime.
 o e2Xmit
A display label for endpoint 2's xmit cell count.
 o frame
The application's main frame.
 o graph
A graph showing recent usage for the VCC.
 o OK
 o uptime
The VCC uptime at the last update of the window.
 o vcc
The VCC whose information is being displayed.

Constructor Index

 o VCCInfoViewer(VisiFrame, String, VCC)
Constructs a VCC information dialog.

Method Index

 o actionPerformed(ActionEvent)
 o run()
Main line code for the VCC information thread.
 o setLocation(int, int)
Sets the location of the dialog window, offsetting the given location by the parent frame's location.
 o setLocation(Point)
Sets the location of the dialog window, offsetting the given location by the parent frame's location.
 o setUpInfoPanel(VCC)
Creates and fills out a panel with text information about the VCC.
 o updateTextCounts()
Updates the displayed versions of the VCC counters.
 o windowActivated(WindowEvent)
 o windowClosed(WindowEvent)
 o windowClosing(WindowEvent)
 o windowDeactivated(WindowEvent)
 o windowDeiconified(WindowEvent)
 o windowIconified(WindowEvent)
 o windowOpened(WindowEvent)

Variables

 o frame
 private VisiFrame frame
The application's main frame.

 o vcc
 private VCC vcc
The VCC whose information is being displayed.

 o uptime
 private long uptime
The VCC uptime at the last update of the window.

 o done
 private boolean done
A flag indicating when the thread is finished.

 o e1Uptime
 private Label e1Uptime
A display label for endpoint 1's uptime.

 o e1Xmit
 private Label e1Xmit
A display label for endpoint 1's xmit cell count.

 o e2Uptime
 private Label e2Uptime
A display label for endpoint 2's uptime.

 o e2Xmit
 private Label e2Xmit
A display label for endpoint 2's xmit cell count.

 o graph
 private VCCInfoViewer. VCCGraph graph
A graph showing recent usage for the VCC.

 o OK
 private static final String OK

Constructors

 o VCCInfoViewer
 public VCCInfoViewer(VisiFrame frame,
                      String title,
                      VCC vcc)
Constructs a VCC information dialog.

Parameters:
frame - the application's main frame.
title - a title for the dialog window.
vcc - the VCC whose information is to be displayed.

Methods

 o run
 public void run()
Main line code for the VCC information thread.

 o setUpInfoPanel
 private Panel setUpInfoPanel(VCC vcc)
Creates and fills out a panel with text information about the VCC.

Parameters:
vcc - the VCC to be displayed.
Returns:
a panel with VCC information.
 o updateTextCounts
 private void updateTextCounts()
Updates the displayed versions of the VCC counters.

 o setLocation
 public void setLocation(Point loc)
Sets the location of the dialog window, offsetting the given location by the parent frame's location.

Parameters:
loc - The location for the window.
Overrides:
setLocation in class Component
 o setLocation
 public void setLocation(int x,
                         int y)
Sets the location of the dialog window, offsetting the given location by the parent frame's location.

Parameters:
x - The x offset for the window.
y - The y offset for the window.
Overrides:
setLocation in class Component
 o windowActivated
 public void windowActivated(WindowEvent e)
 o windowClosed
 public void windowClosed(WindowEvent e)
 o windowClosing
 public void windowClosing(WindowEvent e)
 o windowDeactivated
 public void windowDeactivated(WindowEvent e)
 o windowDeiconified
 public void windowDeiconified(WindowEvent e)
 o windowIconified
 public void windowIconified(WindowEvent e)
 o windowOpened
 public void windowOpened(WindowEvent e)
 o actionPerformed
 public void actionPerformed(ActionEvent e)