SORTIE Java Interface  1
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
sortie.gui.harvepplant.HarvestEdit Class Reference

Window for harvest editing. More...

Inheritance diagram for sortie.gui.harvepplant.HarvestEdit:
sortie.gui.harvepplant.EditWindowBase

Classes

class  DisplaySpecies
 Displays a window with species for the user to select.
 
class  SelectPriorities
 Displays a window for the user to select tree cutting priorities.
 

Public Member Functions

 HarvestEdit (HarvestDisplayWindow oWindow) throws ModelException
 Constructor. More...
 
 HarvestEdit (HarvestDisplayWindow oWindow, HarvestData oToDisplay) throws ModelException
 Constructor that displays a harvest event to edit. More...
 
void actionPerformed (ActionEvent oEvent)
 Responds to window events. More...
 
- Public Member Functions inherited from sortie.gui.harvepplant.EditWindowBase
 EditWindowBase (DisplayWindowBase oWindow, String sTitle) throws ModelException
 Constructor. More...
 
void actionPerformed (ActionEvent oEvent)
 Responds to window events. More...
 

Protected Member Functions

void makeGUI () throws ModelException
 Makes the GUI. More...
 
void setPrioritiesInfo ()
 Sets the priorities display info depending on current selections. More...
 
void setSpeciesInfo ()
 Sets the species display info depending on current selections. More...
 
void addNewHarvest () throws ModelException
 Puts the new harvest into DisturbanceWindow. More...
 
- Protected Member Functions inherited from sortie.gui.harvepplant.EditWindowBase
void setUpCharting () throws ModelException
 Sets up the data cell charting. More...
 
void refreshChart () throws ModelException
 Refreshes the chart to show the data currently held in the dataset. More...
 
JPanel makeTreeLegendPanel (TreePopulation oPop)
 Creates a tree legend panel. More...
 
JPanel makeEventsDisplay ()
 Display for harvests, mortality episodes, plantings. More...
 
void displayHarvest (HarvestData oHarvest) throws ModelException
 Causes a harvest event to be displayed in the window. More...
 
void displayMortEpisode (HarvestData oEpisode) throws ModelException
 Causes a mortality episode to be displayed in the window. More...
 
void displayPlanting (PlantingData oPlanting) throws ModelException
 Causes a planting event to be displayed in the window. More...
 
void displayNextHarvest () throws ModelException
 Displays the next harvest when the ">>" button is pressed. More...
 
void displayNextMortEpisode () throws ModelException
 Displays the next mortality episode when the next button is pressed. More...
 
void displayNextPlanting () throws ModelException
 Displays the next planting event when the ">>" button is pressed. More...
 
void displayPreviousHarvest () throws ModelException
 Displays the next harvest when the previous button is pressed. More...
 
void displayPreviousMortEpisode () throws ModelException
 Displays the next mortality episode when the previous button is pressed. More...
 
void displayPreviousPlanting () throws ModelException
 Displays the next plant event when the previous button is pressed. More...
 

Protected Attributes

JCheckBox [] mp_jSpeciesChex
 List of checkboxes, one for each species, for which species to apply the harvest to. More...
 
JTextField m_jTimestepEdit = new JTextField(" ")
 Edit box where timestep is entered. More...
 
JTextField m_jCutRange1MinDBH = new JTextField()
 Edit box where the cut range 1 minimum DBH is entered. More...
 
JTextField m_jCutRange2MinDBH = new JTextField()
 Edit box where the cut range 2 minimum DBH is entered. More...
 
JTextField m_jCutRange3MinDBH = new JTextField()
 Edit box where the cut range 3 minimum DBH is entered. More...
 
JTextField m_jCutRange4MinDBH = new JTextField()
 Edit box where the cut range 4 minimum DBH is entered. More...
 
JTextField m_jCutRange1MaxDBH = new JTextField()
 Edit box where the cut range 1 maximum DBH is entered. More...
 
JTextField m_jCutRange2MaxDBH = new JTextField()
 Edit box where the cut range 2 maximum DBH is entered. More...
 
JTextField m_jCutRange3MaxDBH = new JTextField()
 Edit box where the cut range 3 maximum DBH is entered. More...
 
JTextField m_jCutRange4MaxDBH = new JTextField()
 Edit box where the cut range 4 maximum DBH is entered. More...
 
JTextField m_jCutRange1Amt = new JTextField()
 Edit box where the cut range 1 cut amount is entered. More...
 
JTextField m_jCutRange2Amt = new JTextField()
 Edit box where the cut range 2 cut amount is entered. More...
 
JTextField m_jCutRange3Amt = new JTextField()
 Edit box where the cut range 3 cut amount is entered. More...
 
JTextField m_jCutRange4Amt = new JTextField()
 Edit box where the cut range 4 cut amount is entered. More...
 
JComboBox< String > m_jCutType
 Combo box where cut type is selected. More...
 
JComboBox< String > m_jCutAmountType
 Combo box where cut amount type is selected. More...
 
JRadioButton m_jTallestFirst = new JRadioButton("Tallest to shortest")
 Where you set the cut from tallest to smallest or smallest to tallest. More...
 
JRadioButton m_jSmallestFirst = new JRadioButton("Shortest to tallest")
 
MultilineLabel m_jSpeciesSelected
 Label for displaying what species are selected. More...
 
MultilineLabel m_jPrioritiesSet
 Label for displaying what priorities are specified. More...
 
ArrayList< DataMembermp_sPriorityDataMembers = new ArrayList<DataMember>(0)
 List of tree data members for prioritizing. More...
 
float [] mp_fSeedlingMortRate
 Seedling mortality rate. More...
 
JTextField m_jPriority1Min = new JTextField()
 Edit box where priority 1 minimum is entered. More...
 
JTextField m_jPriority2Min = new JTextField()
 Edit box where priority 2 minimum is entered. More...
 
JTextField m_jPriority3Min = new JTextField()
 Edit box where priority 3 minimum is entered. More...
 
JTextField m_jPriority1Max = new JTextField()
 Edit box where priority 1 maximum is entered. More...
 
JTextField m_jPriority2Max = new JTextField()
 Edit box where priority 2 maximum is entered. More...
 
JTextField m_jPriority3Max = new JTextField()
 Edit box where priority 3 maximum is entered. More...
 
JComboBox< String > m_jPriority1Name
 Combo box where priority 1 name is selected. More...
 
JComboBox< String > m_jPriority2Name
 Combo box where priority 2 name is selected. More...
 
JComboBox< String > m_jPriority3Name
 Combo box where priority 3 name is selected. More...
 
int m_iHarvestIndex = -1
 This is where our new harvest event goes. More...
 
- Protected Attributes inherited from sortie.gui.harvepplant.EditWindowBase
DisplayWindowBase m_oParentDisplayWindow
 Copy of the EpisodicEventsWindow object to exchange data with. More...
 
XYSimpleCellRenderer m_oRenderer = new XYSimpleCellRenderer()
 Renderer which displays current cell selections. More...
 
XYZSimpleDataset m_oDataset
 Dataset of values that says whether a cell is currently selected (true) or not (false) More...
 
JPanel m_jChartPanel = new JPanel()
 Panel container for the chart. More...
 
org.jfree.chart.ChartPanel m_oChart
 ChartPanel displaying the chart. More...
 
Color m_jColor
 Color for displaying selected cells. More...
 
float m_fLengthXCells
 Length of cells in the X direction. More...
 
float m_fLengthYCells
 Length of cells in the Y direction. More...
 
int m_iNumSpecies
 Total number of tree species. More...
 
int m_iNumXCells
 Number of X cells in the grid. More...
 
int m_iNumYCells
 Number of Y cells in the grid. More...
 
int m_iHarvestDataIndex = 1
 Harvest data layer index in m_oDataset.mp_bData. More...
 
int m_iMortEpisodeDataIndex = 2
 Mortality episode data layer index in m_oDataset.mp_bData. More...
 
int m_iPlantingDataIndex = 3
 Planting data layer index in m_oDataset.mp_bData. More...
 
int m_iCurrentEventDataIndex = 4
 Current event definition data layer index in m_oDataset.mp_bData. More...
 
JLabel m_jHarvestNumber = new JLabel("0")
 Label that displays the number of the current harvest event. More...
 
JLabel m_jMortEpisodeNumber = new JLabel("0")
 Label that displays the number of the current mortality episode. More...
 
JLabel m_jPlantNumber = new JLabel("0")
 Label that displays the number of the current planting event. More...
 
int m_iNumTotalHarvestEvents
 Number of total harvest events that can be displayed. More...
 
int m_iNumTotalMortEpisodes
 Number of total mortality episodes that can be displayed. More...
 
int m_iNumTotalPlantingEvents
 Number of total planting events that can be displayed. More...
 

Private Attributes

String m_sHelpID = "windows.edit_harvest_window"
 Help ID string. More...
 

Additional Inherited Members

- Static Public Attributes inherited from sortie.gui.harvepplant.EditWindowBase
static final Color LT_HARVEST_COLOR = new Color(255, 175, 255)
 Color for displaying harvests. More...
 
static final Color LT_PLANT_COLOR = new Color(255, 255, 175)
 Color for displaying plantings. More...
 
static final Color LT_MORT_EPISODE_COLOR = new Color(175, 250, 250)
 Color for displaying mortality episode events. More...
 

Detailed Description

Window for harvest editing.

Copyright: Copyright (c) Charles D. Canham 2003 Company: Cary Institute of Ecosystem Studies

Author
Lora E. Murphy

Constructor & Destructor Documentation

◆ HarvestEdit() [1/2]

sortie.gui.harvepplant.HarvestEdit.HarvestEdit ( HarvestDisplayWindow  oWindow) throws ModelException

Constructor.

Creates the window.

Parameters
oWindowObject to exchange harvest data with.
Exceptions
ModelExceptionIf the window cannot be set up correctly.

◆ HarvestEdit() [2/2]

sortie.gui.harvepplant.HarvestEdit.HarvestEdit ( HarvestDisplayWindow  oWindow,
HarvestData  oToDisplay 
) throws ModelException

Constructor that displays a harvest event to edit.

Parameters
oWindowObject to exchange harvest data with.
oToDisplayHarvest event to display for editing.
Exceptions
ModelExceptionIf the window cannot be set up correctly.

Member Function Documentation

◆ actionPerformed()

void sortie.gui.harvepplant.HarvestEdit.actionPerformed ( ActionEvent  oEvent)

Responds to window events.

Parameters
oEventEvent triggering this call.

◆ addNewHarvest()

void sortie.gui.harvepplant.HarvestEdit.addNewHarvest ( ) throws ModelException
protected

Puts the new harvest into DisturbanceWindow.

Exceptions
ModelExceptionif any of the values cannot be translated into numbers, or if the new HarvestData object throws an error during its validation.

◆ makeGUI()

void sortie.gui.harvepplant.HarvestEdit.makeGUI ( ) throws ModelException
protected

Makes the GUI.

This draws all the window components and places them appropriately.

◆ setPrioritiesInfo()

void sortie.gui.harvepplant.HarvestEdit.setPrioritiesInfo ( )
protected

Sets the priorities display info depending on current selections.

◆ setSpeciesInfo()

void sortie.gui.harvepplant.HarvestEdit.setSpeciesInfo ( )
protected

Sets the species display info depending on current selections.

Member Data Documentation

◆ m_iHarvestIndex

int sortie.gui.harvepplant.HarvestEdit.m_iHarvestIndex = -1
protected

This is where our new harvest event goes.

In the case of an edited event, this will make sure that it is inserted where it used to be.

◆ m_jCutAmountType

JComboBox<String> sortie.gui.harvepplant.HarvestEdit.m_jCutAmountType
protected
Initial value:
= new JComboBox<String>(new String[] {
"% of density", "Amt. density (#/ha)", "% of basal area",
"Amt. basal area (m2/ha)"
})

Combo box where cut amount type is selected.

◆ m_jCutRange1Amt

JTextField sortie.gui.harvepplant.HarvestEdit.m_jCutRange1Amt = new JTextField()
protected

Edit box where the cut range 1 cut amount is entered.

◆ m_jCutRange1MaxDBH

JTextField sortie.gui.harvepplant.HarvestEdit.m_jCutRange1MaxDBH = new JTextField()
protected

Edit box where the cut range 1 maximum DBH is entered.

◆ m_jCutRange1MinDBH

JTextField sortie.gui.harvepplant.HarvestEdit.m_jCutRange1MinDBH = new JTextField()
protected

Edit box where the cut range 1 minimum DBH is entered.

◆ m_jCutRange2Amt

JTextField sortie.gui.harvepplant.HarvestEdit.m_jCutRange2Amt = new JTextField()
protected

Edit box where the cut range 2 cut amount is entered.

◆ m_jCutRange2MaxDBH

JTextField sortie.gui.harvepplant.HarvestEdit.m_jCutRange2MaxDBH = new JTextField()
protected

Edit box where the cut range 2 maximum DBH is entered.

◆ m_jCutRange2MinDBH

JTextField sortie.gui.harvepplant.HarvestEdit.m_jCutRange2MinDBH = new JTextField()
protected

Edit box where the cut range 2 minimum DBH is entered.

◆ m_jCutRange3Amt

JTextField sortie.gui.harvepplant.HarvestEdit.m_jCutRange3Amt = new JTextField()
protected

Edit box where the cut range 3 cut amount is entered.

◆ m_jCutRange3MaxDBH

JTextField sortie.gui.harvepplant.HarvestEdit.m_jCutRange3MaxDBH = new JTextField()
protected

Edit box where the cut range 3 maximum DBH is entered.

◆ m_jCutRange3MinDBH

JTextField sortie.gui.harvepplant.HarvestEdit.m_jCutRange3MinDBH = new JTextField()
protected

Edit box where the cut range 3 minimum DBH is entered.

◆ m_jCutRange4Amt

JTextField sortie.gui.harvepplant.HarvestEdit.m_jCutRange4Amt = new JTextField()
protected

Edit box where the cut range 4 cut amount is entered.

◆ m_jCutRange4MaxDBH

JTextField sortie.gui.harvepplant.HarvestEdit.m_jCutRange4MaxDBH = new JTextField()
protected

Edit box where the cut range 4 maximum DBH is entered.

◆ m_jCutRange4MinDBH

JTextField sortie.gui.harvepplant.HarvestEdit.m_jCutRange4MinDBH = new JTextField()
protected

Edit box where the cut range 4 minimum DBH is entered.

◆ m_jCutType

JComboBox<String> sortie.gui.harvepplant.HarvestEdit.m_jCutType
protected
Initial value:
= new JComboBox<String>(new String[] {
"Partial cut", "Gap cut", "Clear cut"})

Combo box where cut type is selected.

◆ m_jPrioritiesSet

MultilineLabel sortie.gui.harvepplant.HarvestEdit.m_jPrioritiesSet
protected
Initial value:
=
new MultilineLabel("No priorities set")

Label for displaying what priorities are specified.

◆ m_jPriority1Max

JTextField sortie.gui.harvepplant.HarvestEdit.m_jPriority1Max = new JTextField()
protected

Edit box where priority 1 maximum is entered.

◆ m_jPriority1Min

JTextField sortie.gui.harvepplant.HarvestEdit.m_jPriority1Min = new JTextField()
protected

Edit box where priority 1 minimum is entered.

◆ m_jPriority1Name

JComboBox<String> sortie.gui.harvepplant.HarvestEdit.m_jPriority1Name
protected

Combo box where priority 1 name is selected.

◆ m_jPriority2Max

JTextField sortie.gui.harvepplant.HarvestEdit.m_jPriority2Max = new JTextField()
protected

Edit box where priority 2 maximum is entered.

◆ m_jPriority2Min

JTextField sortie.gui.harvepplant.HarvestEdit.m_jPriority2Min = new JTextField()
protected

Edit box where priority 2 minimum is entered.

◆ m_jPriority2Name

JComboBox<String> sortie.gui.harvepplant.HarvestEdit.m_jPriority2Name
protected

Combo box where priority 2 name is selected.

◆ m_jPriority3Max

JTextField sortie.gui.harvepplant.HarvestEdit.m_jPriority3Max = new JTextField()
protected

Edit box where priority 3 maximum is entered.

◆ m_jPriority3Min

JTextField sortie.gui.harvepplant.HarvestEdit.m_jPriority3Min = new JTextField()
protected

Edit box where priority 3 minimum is entered.

◆ m_jPriority3Name

JComboBox<String> sortie.gui.harvepplant.HarvestEdit.m_jPriority3Name
protected

Combo box where priority 3 name is selected.

◆ m_jSmallestFirst

JRadioButton sortie.gui.harvepplant.HarvestEdit.m_jSmallestFirst = new JRadioButton("Shortest to tallest")
protected

◆ m_jSpeciesSelected

MultilineLabel sortie.gui.harvepplant.HarvestEdit.m_jSpeciesSelected
protected
Initial value:
=
new MultilineLabel("No species selected")

Label for displaying what species are selected.

◆ m_jTallestFirst

JRadioButton sortie.gui.harvepplant.HarvestEdit.m_jTallestFirst = new JRadioButton("Tallest to shortest")
protected

Where you set the cut from tallest to smallest or smallest to tallest.

◆ m_jTimestepEdit

JTextField sortie.gui.harvepplant.HarvestEdit.m_jTimestepEdit = new JTextField(" ")
protected

Edit box where timestep is entered.

◆ m_sHelpID

String sortie.gui.harvepplant.HarvestEdit.m_sHelpID = "windows.edit_harvest_window"
private

Help ID string.

◆ mp_fSeedlingMortRate

float [] sortie.gui.harvepplant.HarvestEdit.mp_fSeedlingMortRate
protected

Seedling mortality rate.

◆ mp_jSpeciesChex

JCheckBox [] sortie.gui.harvepplant.HarvestEdit.mp_jSpeciesChex
protected

List of checkboxes, one for each species, for which species to apply the harvest to.

◆ mp_sPriorityDataMembers

ArrayList<DataMember> sortie.gui.harvepplant.HarvestEdit.mp_sPriorityDataMembers = new ArrayList<DataMember>(0)
protected

List of tree data members for prioritizing.


The documentation for this class was generated from the following file: