SORTIE Java Interface
1
|
This class manages a single data file for the data visualizer. More...
Public Member Functions | |
Legend | getLegend () |
Get the legend for this file. | |
int | getNumberOpenCharts () |
Gets the number of open charts for this file. | |
void | closeAllCharts () |
Closes all the open charts for this window. | |
void | cleanUp () throws ModelException |
Any clean-up tasks that must be done can be put here. | |
DataFileManager (DataVisualizerManager oManager, String sFileName) | |
Constructor. | |
String | getFileName () |
Gets the file being managed. | |
abstract JPopupMenu | getLineGraphOptions (ActionListener sActionListener) |
Gets a list of the line graphs this object is capable of drawing. | |
abstract JPopupMenu | getMapOptions (ActionListener sActionListener) |
Gets a list of maps this object is capable of drawing. | |
abstract JPopupMenu | getHistogramOptions (ActionListener sActionListener) |
Gets a list of histograms this object is capable of drawing. | |
abstract JPopupMenu | getTableOptions (ActionListener sActionListener) |
Gets a list of tables this object is capable of drawing. | |
JInternalFrame | createNewChart (String sGraphName) throws ModelException |
Creates a requested chart as a JInternalFrame. | |
abstract void | updateCharts () throws ModelException |
Prompts the redrawing of all open charts. | |
abstract void | updateCurrentRunCharts () throws ModelException |
Prompts the redrawing of open charts for the current run. | |
Protected Member Functions | |
abstract JInternalFrame | drawChart (String sGraphName) throws ModelException |
Creates a requested chart as a JInternalFrame. | |
Protected Attributes | |
DataVisualizerManager | m_oManager |
Manager object. | |
String | m_sFilename |
File under management. | |
Vector< JInternalFrame > | mp_oCharts = new Vector<JInternalFrame>(0) |
All charts under management. | |
Legend | m_oLegend |
The legend for this file. | |
String[] | mp_sDeadCodeNames = new String[OutputBehaviors.NUMCODES] |
Text equivalents of dead codes. | |
This class manages a single data file for the data visualizer.
It is responsible for parsing the data out of the file, telling the data visualizer what charts are available, and providing requested charts.
Each DataFileManager object keeps track of the charts it has created and placed in JInternalFrame objects. These objects are under the direct management of the entitity to which they were originally passed when DrawChart() was called to create them, but the DataFileManager object retains the ability to update them per user request.
Copyright: Copyright (c) Charles D. Canham 2004
Company: Cary Institute of Ecosystem Studies
Edit history:
---------------—
April 28, 2004: Submitted in beta version (LEM)
November 18, 2004: Added real-time data visualization (LEM)
February 4, 2008: Updated to conform to Java 6 compliance (LEM)
sortie.datavisualizer.DataFileManager.DataFileManager | ( | DataVisualizerManager | oManager, |
String | sFileName | ||
) |
Constructor.
oManager | Data visualizer manager that manages this object. |
sFileName | File name for this manager to manage. |
void sortie.datavisualizer.DataFileManager.cleanUp | ( | ) | throws ModelException |
Any clean-up tasks that must be done can be put here.
This will be called before the object is destroyed.
void sortie.datavisualizer.DataFileManager.closeAllCharts | ( | ) |
Closes all the open charts for this window.
JInternalFrame sortie.datavisualizer.DataFileManager.createNewChart | ( | String | sGraphName | ) | throws ModelException |
Creates a requested chart as a JInternalFrame.
If the chart already exists, a new one is not created; the existing one is returned. If the chart is new, the JInternalFrame will not be packed or set to visible - it will simply have its GUI components.
sGraphName | The string name of the chart - should be from one of the "getXOptions()" methods |
ModelException | if there are any problems drawing the chart |
|
protectedpure virtual |
Creates a requested chart as a JInternalFrame.
The JInternalFrame will not be packed or set to visible - it will simply have its GUI components. If the chart requested already exists, the existing chart is returned.
sGraphName | The string name of the chart - should be from one of the "getXOptions()" methods |
ModelException | if there are any problems drawing the chart. |
Implemented in sortie.datavisualizer.DetailedOutputFileManager, and sortie.datavisualizer.ShortOutputFileManager.
String sortie.datavisualizer.DataFileManager.getFileName | ( | ) |
Gets the file being managed.
|
pure virtual |
Gets a list of histograms this object is capable of drawing.
sActionListener | Action listener that will respond to menu events |
Implemented in sortie.datavisualizer.ShortOutputFileManager, and sortie.datavisualizer.DetailedOutputFileManager.
Legend sortie.datavisualizer.DataFileManager.getLegend | ( | ) |
Get the legend for this file.
|
pure virtual |
Gets a list of the line graphs this object is capable of drawing.
sActionListener | Action listener that will respond to menu events |
Implemented in sortie.datavisualizer.DetailedOutputFileManager, and sortie.datavisualizer.ShortOutputFileManager.
|
pure virtual |
Gets a list of maps this object is capable of drawing.
sActionListener | Action listener that will respond to menu events |
Implemented in sortie.datavisualizer.ShortOutputFileManager, and sortie.datavisualizer.DetailedOutputFileManager.
int sortie.datavisualizer.DataFileManager.getNumberOpenCharts | ( | ) |
Gets the number of open charts for this file.
|
pure virtual |
Gets a list of tables this object is capable of drawing.
sActionListener | Action listener that will respond to menu events |
Implemented in sortie.datavisualizer.ShortOutputFileManager, and sortie.datavisualizer.DetailedOutputFileManager.
|
pure virtual |
Prompts the redrawing of all open charts.
ModelException | wrapping other exceptions |
Implemented in sortie.datavisualizer.DetailedOutputFileManager, and sortie.datavisualizer.ShortOutputFileManager.
|
pure virtual |
Prompts the redrawing of open charts for the current run.
The data file manager should search for and display the most recent information.
ModelException | if there is a problem drawing the charts. |
Implemented in sortie.datavisualizer.ShortOutputFileManager, and sortie.datavisualizer.DetailedOutputFileManager.
|
protected |
The legend for this file.
|
protected |
Manager object.
|
protected |
File under management.
|
protected |
All charts under management.
|
protected |
Text equivalents of dead codes.