|
SORTIE Java Interface
1
|
Window for mortality episode editing. More...
Public Member Functions | |
| MortalityEpisodeEdit (EpisodicEventsWindow oWindow) throws ModelException | |
| Constructor. | |
| MortalityEpisodeEdit (EpisodicEventsWindow oWindow, HarvestData oToDisplay) throws ModelException | |
| Constructor that displays a mortality episode to edit. | |
| void | actionPerformed (ActionEvent oEvent) |
| Responds to window events. | |
Public Member Functions inherited from sortie.gui.EpisodicEventsEditBase | |
| EpisodicEventsEditBase (EpisodicEventsWindow oWindow, String sTitle) throws ModelException | |
| Constructor. | |
| void | actionPerformed (ActionEvent oEvent) |
| Responds to window events. | |
Protected Member Functions | |
| void | makeGUI () |
| Makes the GUI. | |
| void | addNewEpisode () throws ModelException |
| Puts the new mortality episode into DisturbanceWindow. | |
Protected Member Functions inherited from sortie.gui.EpisodicEventsEditBase | |
| void | setUpCharting () throws ModelException |
| Sets up the data cell charting. | |
| void | refreshChart () throws ModelException |
| Refreshes the chart to show the data currently held in the dataset. | |
| JPanel | makeTreeLegendPanel (TreePopulation oPop) |
| Creates a tree legend panel. | |
| JPanel | makeEventsDisplay () |
| Display for harvests, mortality episodes, plantings. | |
| void | displayHarvest (HarvestData oHarvest) throws ModelException |
| Causes a harvest event to be displayed in the window. | |
| void | displayMortEpisode (HarvestData oEpisode) throws ModelException |
| Causes a mortality episode to be displayed in the window. | |
| void | displayPlanting (PlantingData oPlanting) throws ModelException |
| Causes a planting event to be displayed in the window. | |
| void | displayNextHarvest () throws ModelException |
| Displays the next harvest when the ">>" button is pressed. | |
| void | displayNextMortEpisode () throws ModelException |
| Displays the next mortality episode when the next button is pressed. | |
| void | displayNextPlanting () throws ModelException |
| Displays the next planting event when the ">>" button is pressed. | |
| void | displayPreviousHarvest () throws ModelException |
| Displays the next harvest when the previous button is pressed. | |
| void | displayPreviousMortEpisode () throws ModelException |
| Displays the next mortality episode when the previous button is pressed. | |
| void | displayPreviousPlanting () throws ModelException |
| Displays the next plant event when the previous button is pressed. | |
Protected Attributes | |
| JCheckBox[] | mp_jSpeciesChex |
| List of checkboxes, one for each species, for which species to apply the mortality episode to. | |
| JTextField | m_jTimestepEdit = new JTextField(" ") |
| Edit box where timestep is entered. | |
| JTextField | m_jCutRange1MinDBH = new JTextField() |
| Edit box where the cut range 1 minimum DBH is entered. | |
| JTextField | m_jCutRange2MinDBH = new JTextField() |
| Edit box where the cut range 2 minimum DBH is entered. | |
| JTextField | m_jCutRange3MinDBH = new JTextField() |
| Edit box where the cut range 3 minimum DBH is entered. | |
| JTextField | m_jCutRange4MinDBH = new JTextField() |
| Edit box where the cut range 4 minimum DBH is entered. | |
| JTextField | m_jCutRange1MaxDBH = new JTextField() |
| Edit box where the cut range 1 maximum DBH is entered. | |
| JTextField | m_jCutRange2MaxDBH = new JTextField() |
| Edit box where the cut range 2 maximum DBH is entered. | |
| JTextField | m_jCutRange3MaxDBH = new JTextField() |
| Edit box where the cut range 3 maximum DBH is entered. | |
| JTextField | m_jCutRange4MaxDBH = new JTextField() |
| Edit box where the cut range 4 maximum DBH is entered. | |
| JTextField | m_jCutRange1Amt = new JTextField() |
| Edit box where the cut range 1 cut amount is entered. | |
| JTextField | m_jCutRange2Amt = new JTextField() |
| Edit box where the cut range 2 cut amount is entered. | |
| JTextField | m_jCutRange3Amt = new JTextField() |
| Edit box where the cut range 3 cut amount is entered. | |
| JTextField | m_jCutRange4Amt = new JTextField() |
| Edit box where the cut range 4 cut amount is entered. | |
| JRadioButton | m_jPercentDensityButton |
| Radio button for percent of density. | |
| JRadioButton | m_jAbsDensityButton |
| Radio button for absolute density. | |
| JRadioButton | m_jPercentBAButton |
| Radio button for percent of basal area. | |
| JRadioButton | m_jAbsBAButton |
| Radio button for absolute basal area. | |
| float[] | mp_fSeedlingMortRate |
| Seedling mortality rate. | |
| int | m_iEpisodeIndex = -1 |
| This is where our new mortality episode goes. | |
Protected Attributes inherited from sortie.gui.EpisodicEventsEditBase | |
| EpisodicEventsWindow | m_oEpisodicEventsWindow |
| Copy of the EpisodicEventsWindow object to exchange data with. | |
| XYSimpleCellRenderer | m_oRenderer = new XYSimpleCellRenderer() |
| Renderer which displays current cell selections. | |
| XYZSimpleDataset | m_oDataset |
| Dataset of values that says whether a cell is currently selected (true) or not (false) | |
| JPanel | m_jChartPanel = new JPanel() |
| Panel container for the chart. | |
| org.jfree.chart.ChartPanel | m_oChart |
| ChartPanel displaying the chart. | |
| java.awt.Color | m_jColor |
| Color for displaying selected cells. | |
| float | m_fLengthXCells |
| Length of cells in the X direction. | |
| float | m_fLengthYCells |
| Length of cells in the Y direction. | |
| int | m_iNumSpecies |
| Total number of tree species. | |
| int | m_iNumXCells |
| Number of X cells in the grid. | |
| int | m_iNumYCells |
| Number of Y cells in the grid. | |
| int | m_iMortEpisodeDataIndex = 2 |
| Mortality episode data layer index in m_oDataset.mp_bData. | |
| int | m_iPlantingDataIndex = 3 |
| Planting data layer index in m_oDataset.mp_bData. | |
| int | m_iCurrentEventDataIndex = 4 |
| Current event definition data layer index in m_oDataset.mp_bData. | |
| JLabel | m_jHarvestNumber = new JLabel("0") |
| Label that displays the number of the current harvest event. | |
| JLabel | m_jMortEpisodeNumber = new JLabel("0") |
| Label that displays the number of the current mortality episode. | |
| JLabel | m_jPlantNumber = new JLabel("0") |
| Label that displays the number of the current planting event. | |
| int | m_iNumTotalHarvestEvents |
| Number of total harvest events that can be displayed. | |
| int | m_iNumTotalMortEpisodes |
| Number of total mortality episodes that can be displayed. | |
| int | m_iNumTotalPlantingEvents |
| Number of total planting events that can be displayed. | |
Private Attributes | |
| String | m_sHelpID = "windows.edit_mortality_episode_window" |
| Help ID string. | |
Additional Inherited Members | |
Static Public Attributes inherited from sortie.gui.EpisodicEventsEditBase | |
| static final Color | LT_HARVEST_COLOR = new Color(255, 175, 255) |
| Color for displaying harvests. | |
| static final Color | LT_PLANT_COLOR = new Color(255, 255, 175) |
| Color for displaying plantings. | |
| static final Color | LT_MORT_EPISODE_COLOR = new Color(175, 250, 250) |
| Color for displaying mortality episode events. | |
Window for mortality episode editing.
Copyright: Copyright (c) Charles D. Canham 2003 Company: Cary Institute of Ecosystem Studies
| sortie.gui.MortalityEpisodeEdit.MortalityEpisodeEdit | ( | EpisodicEventsWindow | oWindow | ) | throws ModelException |
Constructor.
Creates the window.
| oWindow | Object to exchange mortality episode data with. |
| ModelException | If the window cannot be set up correctly. |
| sortie.gui.MortalityEpisodeEdit.MortalityEpisodeEdit | ( | EpisodicEventsWindow | oWindow, |
| HarvestData | oToDisplay | ||
| ) | throws ModelException |
Constructor that displays a mortality episode to edit.
| oWindow | Object to exchange mortality episode data with. |
| oToDisplay | Mortality episode to display for editing. |
| ModelException | If the window cannot be set up correctly. |
| void sortie.gui.MortalityEpisodeEdit.actionPerformed | ( | ActionEvent | oEvent | ) |
Responds to window events.
| oEvent | Event triggering this call. |
|
protected |
Puts the new mortality episode into DisturbanceWindow.
| ModelException | if any of the values cannot be translated into numbers, or if the new HarvestData object throws an error during its validation. |
|
protected |
Makes the GUI.
This draws all the window components and places them appropriately.
|
protected |
This is where our new mortality episode goes.
In the case of an edited episode, this will make sure that it is inserted where it used to be.
|
protected |
Radio button for absolute basal area.
|
protected |
Radio button for absolute density.
|
protected |
Edit box where the cut range 1 cut amount is entered.
|
protected |
Edit box where the cut range 1 maximum DBH is entered.
|
protected |
Edit box where the cut range 1 minimum DBH is entered.
|
protected |
Edit box where the cut range 2 cut amount is entered.
|
protected |
Edit box where the cut range 2 maximum DBH is entered.
|
protected |
Edit box where the cut range 2 minimum DBH is entered.
|
protected |
Edit box where the cut range 3 cut amount is entered.
|
protected |
Edit box where the cut range 3 maximum DBH is entered.
|
protected |
Edit box where the cut range 3 minimum DBH is entered.
|
protected |
Edit box where the cut range 4 cut amount is entered.
|
protected |
Edit box where the cut range 4 maximum DBH is entered.
|
protected |
Edit box where the cut range 4 minimum DBH is entered.
|
protected |
Radio button for percent of basal area.
|
protected |
Radio button for percent of density.
|
protected |
Edit box where timestep is entered.
|
private |
Help ID string.
|
protected |
Seedling mortality rate.
|
protected |
List of checkboxes, one for each species, for which species to apply the mortality episode to.
1.8.2