Class lilgpMonitor
Class lilgpMonitor
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----lilgpMonitor
- public class lilgpMonitor
- extends Frame
- implements Timed
This is the main class. It creates the various UI components
and is responsible for dispatching events to the appropriate
classes when the user changes settings.
-
numViewers
-
-
lilgpMonitor()
- The constructor method is responsible for creating each of the
UI components and initializing variables.
-
action(Event, Object)
-
-
handleEvent(Event)
-
-
main(String[])
- The main method for the application.
-
readData(String)
- This method actually reads the lilgp statistics file.
-
selectedAbout()
- This method creates a dialog that describes the software
-
selectedCloseViewer()
- This method closes a viewer.
-
selectedExitAll()
- This method closes all viewers.
-
selectedLines()
- This method responsible for updating the linestyle in
the Graph object.
-
selectedLinesPoints()
- This method responsible for updating the linestyle in
the Graph object.
-
selectedManualUpdates()
- This method manually updates the graph.
-
selectedNewViewer()
- This method simply instantiates a new viewer
-
selectedOpen()
- This method is called when the user selects Open from the
file menu.
-
selectedSaveAs()
- This method is called when the user selects Save As from the file menu.
-
setTimer(int)
- This method sets a timer for automatic updates
-
stopTimer()
- This method stops the current timer
-
tick(Timer)
- Everytime we recieve a tick from our timer, reload the data file
-
updateGraphData(int, int, int, int)
- This method is responsible for retrieving the correct data from the
statistics and passing it into the Graph object.
numViewers
public static int numViewers
lilgpMonitor
public lilgpMonitor()
- The constructor method is responsible for creating each of the
UI components and initializing variables.
handleEvent
public boolean handleEvent(Event event)
- Overrides:
- handleEvent in class Component
action
public boolean action(Event event,
Object arg)
- Overrides:
- action in class Component
main
public static void main(String args[])
- The main method for the application. Simply instantiates itself.
selectedOpen
public void selectedOpen()
- This method is called when the user selects Open from the
file menu. It creates a file dialog and then calls the
method that reads the data.
- See Also:
- readData
selectedSaveAs
public void selectedSaveAs()
- This method is called when the user selects Save As from the file menu.
It opens a file dialog and then calls the conversion routine to create
the GIF file.
selectedNewViewer
public void selectedNewViewer()
- This method simply instantiates a new viewer
selectedCloseViewer
public void selectedCloseViewer()
- This method closes a viewer.
selectedExitAll
public void selectedExitAll()
- This method closes all viewers.
selectedLines
public void selectedLines()
- This method responsible for updating the linestyle in
the Graph object.
- See Also:
- setLineStyle
selectedLinesPoints
public void selectedLinesPoints()
- This method responsible for updating the linestyle in
the Graph object.
- See Also:
- setLineStyle
selectedManualUpdates
public void selectedManualUpdates()
- This method manually updates the graph.
selectedAbout
public void selectedAbout()
- This method creates a dialog that describes the software
readData
public void readData(String inputFile) throws IOException
- This method actually reads the lilgp statistics file.
- Parameters:
- inputFile - pathname to the datafile.
updateGraphData
public void updateGraphData(int m_One,
int m_Two,
int p_one,
int p_two)
- This method is responsible for retrieving the correct data from the
statistics and passing it into the Graph object.
- Parameters:
- m_One - the current selection for metric one
- m_Two - the current selection for metric Two
- p_one - the current selection for subpopulation one
- p_two - the current selection for subpopulation two
- See Also:
- setGraphData
stopTimer
public void stopTimer()
- This method stops the current timer
setTimer
public void setTimer(int minutes)
- This method sets a timer for automatic updates
- Parameters:
- minutes - the amount of time in minutes for the timer
tick
public void tick(Timer t)
- Everytime we recieve a tick from our timer, reload the data file
- Parameters:
- t - a reference to the Timer object
- See Also:
- Timer