|
SORTIE Java Interface
1
|
Provides a base class with common methods for display of current specifications for harvest, episodic mortality, and planting. More...
Classes | |
| enum | windowType |
Public Member Functions | |
| DisplayWindowBase (JFrame oOwner, DisturbanceBehaviors oDisturbanceBehaviors, PlantingBehaviors oPlantBehaviors, String sWindowTitle, windowType iWinType) throws ModelException | |
| Constructor. | |
| void | actionPerformed (ActionEvent oEvent) |
| Responds to window events. | |
| TreePopulation | getTreePopulation () |
| Gets access to the tree population for benefit of child windows. | |
| HelpBroker | getHelpBroker () |
| Gets access to the HelpBroker object for benefit of child windows. | |
Static Public Attributes | |
| static final Color | HARVEST_COLOR = new Color(255, 100, 255) |
| Color for displaying harvests. | |
| static final Color | PLANT_COLOR = new Color(255, 255, 100) |
| Color for displaying plantings. | |
| static final Color | MORTALITY_EPISODE_COLOR = new Color(150, 225, 225) |
| Color for displaying mortality episode events. | |
Protected Member Functions | |
| void | setUpCharting (windowType iWinType) throws ModelException |
| Sets up the chart and displays any trees. | |
| void | replaceChart () |
| Replace the chart when it needs to be refreshed. | |
| void | makeTreeDatasetAndRenderer () throws ModelException |
| Create the dataset and renderer for the trees. | |
| void | getPlotAndGridInfo (windowType iWinType) throws ModelException |
| Gets information on the plot and the grids. | |
| JPanel | makeLegendPanel () throws ModelException |
| Creates a legend panel. | |
| JDialog | sizeChildWindow (JDialog jChildWindow) |
| Sizes a child window to fit within the bounds of this window. | |
| void | addFinishedData () throws ModelException |
| Takes the final data and adds it back to the behavior groups. | |
Protected Attributes | |
| DefaultXYZDataset | m_oTreeDataset = new DefaultXYZDataset() |
| A dataset for trees, one series for each species. | |
| XYTreeRenderer | m_oTreeRenderer |
| Renderer for displaying the trees along with episodic event data. | |
| XYPlot | m_oPlot = new XYPlot() |
| Plot object for rendering events. | |
| XYZSimpleDataset | m_oDataset |
| Dataset for displaying harvest events - controls which cells show up which color. | |
| XYSimpleCellRenderer | m_oRenderer = new XYSimpleCellRenderer() |
| Renderer for displaying harvest events. | |
| DisturbanceBehaviors | m_oDisturbanceBehaviors |
| DisturbanceBehaviors object to exchange data with. | |
| PlantingBehaviors | m_oPlantBehaviors |
| PlantingBehaviors object to exchange data with. | |
| ArrayList< HarvestData > | mp_oHarvestData = new ArrayList<HarvestData>(0) |
| Copy of harvest data to display. | |
| ArrayList< HarvestData > | mp_oMortEpisodeData = new ArrayList<HarvestData>(0) |
| Copy of mortality episode data to display. | |
| ArrayList< PlantingData > | mp_oPlantingData = new ArrayList<PlantingData>(0) |
| Copy of planting data to display. | |
| JPanel | m_jChartPanel = new JPanel() |
| Panel displaying the chart. | |
| Dimension | m_jParentSize |
| Size of the parent calling window - so we can make sure children fit within this. | |
| float | m_fLengthXCells |
| Length of grid cells in the X direction. | |
| float | m_fLengthYCells |
| Length of grid cells in the Y direction. | |
| int | m_iNumXCells |
| Number of X cells in the grid. | |
| int | m_iNumYCells |
| Number of Y cells in the grid. | |
| int | m_iPlotLengthX |
| Length of the plot in the X direction, in meters. | |
| int | m_iPlotLengthY |
| Length of the plot in the Y direction, in meters. | |
| int | m_iNumSpecies |
| Number of species. | |
Private Attributes | |
| String | m_sHelpID = "windows.episodic_events_window" |
| Help ID string. | |
Provides a base class with common methods for display of current specifications for harvest, episodic mortality, and planting.
Copyright: Copyright (c) Charles D. Canham 2013
Company: Cary Institute of Ecosystem Studies
| sortie.gui.harvepplant.DisplayWindowBase.DisplayWindowBase | ( | JFrame | oOwner, |
| DisturbanceBehaviors | oDisturbanceBehaviors, | ||
| PlantingBehaviors | oPlantBehaviors, | ||
| String | sWindowTitle, | ||
| windowType | iWinType | ||
| ) | throws ModelException |
Constructor.
Builds the window.
| oOwner | Owner window for this dialog. |
| oDisturbanceBehaviors | DisturbanceBehaviors object to exchange data with. |
| oPlantBehaviors | PlantingBehaviors object to exchange data with. |
| sWindowTitle | Title for the window. |
| iWinType | A value from the enum windowType saying what kind of window this is. |
| ModelException | passing through from called methods. |
| void sortie.gui.harvepplant.DisplayWindowBase.actionPerformed | ( | ActionEvent | oEvent | ) |
Responds to window events.
| oEvent | Event triggering this call. |
|
protected |
Takes the final data and adds it back to the behavior groups.
This takes the contents of mp_oHarvestData, mp_oMortEpisodeData, and mp_oPlantingData, and puts them back into the parent behavior groups. Then, if there is a set of data for any of the behaviors, it makes sure that they are enabled.
| HelpBroker sortie.gui.harvepplant.DisplayWindowBase.getHelpBroker | ( | ) |
Gets access to the HelpBroker object for benefit of child windows.
|
protected |
Gets information on the plot and the grids.
| iWinType | A value from the enum windowType saying what kind of window this is. |
| ModelException | passing through from called methods. |
| TreePopulation sortie.gui.harvepplant.DisplayWindowBase.getTreePopulation | ( | ) |
Gets access to the tree population for benefit of child windows.
|
protected |
Creates a legend panel.
| ModelException | passing through from called methods. |
|
protected |
Create the dataset and renderer for the trees.
|
protected |
Replace the chart when it needs to be refreshed.
|
protected |
Sets up the chart and displays any trees.
| ModelException | should not be thrown. |
|
protected |
Sizes a child window to fit within the bounds of this window.
| jChildWindow | JDialog The window to size. |
|
static |
Color for displaying harvests.
|
protected |
Length of grid cells in the X direction.
|
protected |
Length of grid cells in the Y direction.
|
protected |
Number of species.
|
protected |
Number of X cells in the grid.
|
protected |
Number of Y cells in the grid.
|
protected |
Length of the plot in the X direction, in meters.
|
protected |
Length of the plot in the Y direction, in meters.
|
protected |
Panel displaying the chart.
|
protected |
Size of the parent calling window - so we can make sure children fit within this.
|
protected |
Dataset for displaying harvest events - controls which cells show up which color.
|
protected |
DisturbanceBehaviors object to exchange data with.
|
protected |
PlantingBehaviors object to exchange data with.
|
protected |
Plot object for rendering events.
|
protected |
Renderer for displaying harvest events.
|
protected |
A dataset for trees, one series for each species.
|
protected |
Renderer for displaying the trees along with episodic event data.
|
private |
Help ID string.
|
static |
Color for displaying mortality episode events.
|
protected |
Copy of harvest data to display.
|
protected |
Copy of mortality episode data to display.
|
protected |
Copy of planting data to display.
|
static |
Color for displaying plantings.
1.8.2