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
-
done
- A flag indicating when the thread is finished.
-
e1Uptime
- A display label for endpoint 1's uptime.
-
e1Xmit
- A display label for endpoint 1's xmit cell count.
-
e2Uptime
- A display label for endpoint 2's uptime.
-
e2Xmit
- A display label for endpoint 2's xmit cell count.
-
frame
- The application's main frame.
-
graph
- A graph showing recent usage for the VCC.
-
OK
-
-
uptime
- The VCC uptime at the last update of the window.
-
vcc
- The VCC whose information is being displayed.
-
VCCInfoViewer(VisiFrame, String, VCC)
- Constructs a VCC information dialog.
-
actionPerformed(ActionEvent)
-
-
run()
- Main line code for the VCC information thread.
-
setLocation(int, int)
- Sets the location of the dialog window, offsetting the
given location by the parent frame's location.
-
setLocation(Point)
- Sets the location of the dialog window, offsetting the
given location by the parent frame's location.
-
setUpInfoPanel(VCC)
- Creates and fills out a panel with text information about
the VCC.
-
updateTextCounts()
- Updates the displayed versions of the VCC counters.
-
windowActivated(WindowEvent)
-
-
windowClosed(WindowEvent)
-
-
windowClosing(WindowEvent)
-
-
windowDeactivated(WindowEvent)
-
-
windowDeiconified(WindowEvent)
-
-
windowIconified(WindowEvent)
-
-
windowOpened(WindowEvent)
-
frame
private VisiFrame frame
- The application's main frame.
vcc
private VCC vcc
- The VCC whose information is being displayed.
uptime
private long uptime
- The VCC uptime at the last update of the window.
done
private boolean done
- A flag indicating when the thread is finished.
e1Uptime
private Label e1Uptime
- A display label for endpoint 1's uptime.
e1Xmit
private Label e1Xmit
- A display label for endpoint 1's xmit cell count.
e2Uptime
private Label e2Uptime
- A display label for endpoint 2's uptime.
e2Xmit
private Label e2Xmit
- A display label for endpoint 2's xmit cell count.
graph
private VCCInfoViewer. VCCGraph graph
- A graph showing recent usage for the VCC.
OK
private static final String OK
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.
run
public void run()
- Main line code for the VCC information thread.
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.
updateTextCounts
private void updateTextCounts()
- Updates the displayed versions of the VCC counters.
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
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
windowActivated
public void windowActivated(WindowEvent e)
windowClosed
public void windowClosed(WindowEvent e)
windowClosing
public void windowClosing(WindowEvent e)
windowDeactivated
public void windowDeactivated(WindowEvent e)
windowDeiconified
public void windowDeiconified(WindowEvent e)
windowIconified
public void windowIconified(WindowEvent e)
windowOpened
public void windowOpened(WindowEvent e)
actionPerformed
public void actionPerformed(ActionEvent e)