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. More... | |
int | getNumberOpenCharts () |
Gets the number of open charts for this file. More... | |
void | closeAllCharts () |
Closes all the open charts for this window. More... | |
void | cleanUp () throws ModelException |
Any clean-up tasks that must be done can be put here. More... | |
DataFileManager (DataVisualizerManager oManager, String sFileName) | |
Constructor. More... | |
String | getFileName () |
Gets the file being managed. More... | |
abstract JPopupMenu | getLineGraphOptions (ActionListener sActionListener) |
Gets a list of the line graphs this object is capable of drawing. More... | |
abstract JPopupMenu | getMapOptions (ActionListener sActionListener) |
Gets a list of maps this object is capable of drawing. More... | |
abstract JPopupMenu | getHistogramOptions (ActionListener sActionListener) |
Gets a list of histograms this object is capable of drawing. More... | |
abstract JPopupMenu | getTableOptions (ActionListener sActionListener) |
Gets a list of tables this object is capable of drawing. More... | |
JInternalFrame | createNewChart (String sGraphName) throws ModelException |
Creates a requested chart as a JInternalFrame. More... | |
abstract void | updateCharts () throws ModelException |
Prompts the redrawing of all open charts. More... | |
abstract void | updateCurrentRunCharts () throws ModelException |
Prompts the redrawing of open charts for the current run. More... | |
Protected Member Functions | |
abstract JInternalFrame | drawChart (String sGraphName) throws ModelException |
Creates a requested chart as a JInternalFrame. More... | |
Protected Attributes | |
DataVisualizerManager | m_oManager |
Manager object. More... | |
String | m_sFilename |
File under management. More... | |
ArrayList< JInternalFrame > | mp_oCharts = new ArrayList<JInternalFrame>(0) |
All charts under management. More... | |
Legend | m_oLegend |
The legend for this file. More... | |
String [] | mp_sDeadCodeNames = new String[OutputBehaviors.NUMCODES] |
Text equivalents of dead codes. More... | |
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 |
|
abstractprotected |
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. |
String sortie.datavisualizer.DataFileManager.getFileName | ( | ) |
Gets the file being managed.
|
abstract |
Gets a list of histograms this object is capable of drawing.
sActionListener | Action listener that will respond to menu events |
Legend sortie.datavisualizer.DataFileManager.getLegend | ( | ) |
Get the legend for this file.
|
abstract |
Gets a list of the line graphs this object is capable of drawing.
sActionListener | Action listener that will respond to menu events |
|
abstract |
Gets a list of maps this object is capable of drawing.
sActionListener | Action listener that will respond to menu events |
int sortie.datavisualizer.DataFileManager.getNumberOpenCharts | ( | ) |
Gets the number of open charts for this file.
|
abstract |
Gets a list of tables this object is capable of drawing.
sActionListener | Action listener that will respond to menu events |
|
abstract |
Prompts the redrawing of all open charts.
ModelException | wrapping other exceptions |
|
abstract |
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. |
|
protected |
The legend for this file.
|
protected |
Manager object.
|
protected |
File under management.
|
protected |
All charts under management.
|
protected |
Text equivalents of dead codes.