|
SORTIE Java Interface
1
|
Displays planting events and allows for editing. More...
Public Member Functions | |
| PlantingDisplayWindow (JFrame oOwner, DisturbanceBehaviors oDisturbanceBehaviors, PlantingBehaviors oPlantBehaviors) throws ModelException | |
| Constructor. | |
| void | actionPerformed (ActionEvent oEvent) |
| Responds to window events. | |
Public Member Functions inherited from sortie.gui.harvepplant.DisplayWindowBase | |
| 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. | |
Protected Member Functions | |
| void | makeGUI () throws ModelException |
| Draws the window. | |
| void | displayNextPlanting () throws ModelException |
| Displays the next planting event when the ">>" button is pressed. | |
| void | displayPreviousPlanting () throws ModelException |
| Displays the next plant event when the previous button is pressed. | |
| void | deletePlanting () throws ModelException |
| Deletes the currently displayed planting. | |
| void | displayPlanting (PlantingData oPlanting) throws ModelException |
| Causes a planting event to be displayed in the window. | |
| void | addFinishedData () throws ModelException |
| Takes the final data and adds it back to the behavior groups. | |
Protected Member Functions inherited from sortie.gui.harvepplant.DisplayWindowBase | |
| 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 | |
| float[] | mp_fPlantInitialDiam10s |
| Copy of the planting initial diameter at 10 cm values. | |
| JLabel | mp_jSpeciesPlantPercentages [] |
| Array of labels displaying species percentages for the current planting. | |
| JLabel | mp_jSpeciesPlantInitialDiam10 [] |
| Array of labels displaying the initial diam10 for each species for all plantings. | |
| JLabel | m_jTimestepLabel = new JLabel("N/A") |
| Label that displays the timestep for the currently displayed planting. | |
| JLabel | m_jSpacingLabel = new JLabel("N/A") |
| Label that displays the plant spacing for the currently displayed planting. | |
| JLabel | m_jAmountLabel = new JLabel("Density (#/ha):") |
| Label that displays the plant amount label for the currently displayed planting. | |
| JLabel | m_jAmountValueLabel = new JLabel("N/A") |
| Label that displays the plant amount value for the currently displayed planting. | |
| JLabel | m_jNumPlantingEvents = new JLabel("0") |
| Label that displays number of planting events currently defined. | |
| JLabel | m_jPlantNumber = new JLabel("0") |
| Label that displays the number of the current planting event. | |
Protected Attributes inherited from sortie.gui.harvepplant.DisplayWindowBase | |
| 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.edit_planting_window" |
| Help ID string. | |
Additional Inherited Members | |
Static Public Attributes inherited from sortie.gui.harvepplant.DisplayWindowBase | |
| 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. | |
Displays planting events and allows for editing.
Copyright: Copyright (c) Charles D. Canham 2003
Company: Cary Institute of Ecosystem Studies
| sortie.gui.harvepplant.PlantingDisplayWindow.PlantingDisplayWindow | ( | JFrame | oOwner, |
| DisturbanceBehaviors | oDisturbanceBehaviors, | ||
| PlantingBehaviors | oPlantBehaviors | ||
| ) | 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. |
| ModelException | passing through from called methods. |
| void sortie.gui.harvepplant.PlantingDisplayWindow.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.
|
protected |
Deletes the currently displayed planting.
If no planting is displayed (the display number is set to 0), nothing happens. If a planting is deleted, the next planting is displayed, or the previous one if it is the last.
| ModelException | passed through from called methods. |
|
protected |
Displays the next planting event when the ">>" button is pressed.
If the last planting is being displayed, then nothing changes.
| ModelException | Passing through from called methods. |
|
protected |
Causes a planting event to be displayed in the window.
Planting events are displayed as a transparent texture - this allows harvests to display underneath.
| oPlanting | Planting to display, or NULL if no planting is to be displayed. |
| ModelException | passing through from called methods. |
|
protected |
Displays the next plant event when the previous button is pressed.
If the first planting is being displayed, then nothing changes.
| ModelException | Passing through from called methods. |
|
protected |
Draws the window.
| ModelException | passing through from called methods. |
|
protected |
Label that displays the plant amount label for the currently displayed planting.
|
protected |
Label that displays the plant amount value for the currently displayed planting.
|
protected |
Label that displays number of planting events currently defined.
|
protected |
Label that displays the number of the current planting event.
|
protected |
Label that displays the plant spacing for the currently displayed planting.
|
protected |
Label that displays the timestep for the currently displayed planting.
|
private |
Help ID string.
|
protected |
Copy of the planting initial diameter at 10 cm values.
|
protected |
Array of labels displaying the initial diam10 for each species for all plantings.
|
protected |
Array of labels displaying species percentages for the current planting.
1.8.2