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

Window for planting editing. More...

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

Public Member Functions

 PlantEdit (PlantingDisplayWindow oWindow) throws ModelException
 Constructor. More...
 
 PlantEdit (PlantingDisplayWindow oWindow, PlantingData oToDisplay) throws ModelException
 Constructor that displays a planting 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 ()
 Makes the GUI. More...
 
void addNewPlanting () throws ModelException
 Puts the new planting 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

JTextField [] mp_jSpeciesAmt
 List of text fields, one for each species, for which species to apply the planting to. More...
 
JTextField m_jTimestepEdit = new JTextField(" ")
 Edit box where timestep is entered. More...
 
JRadioButton m_jGriddedPlantingButton = new JRadioButton("Gridded")
 Radio button for gridded planting. More...
 
JRadioButton m_jRandomPlantingButton = new JRadioButton("Random")
 Radio button for random planting. More...
 
JLabel m_jPlantAmountValueLabel = new JLabel()
 Label that displays the plant amount value for the currently displayed planting. More...
 
JTextField m_jPlantAmtEdit = new JTextField(" ")
 Edit box where amount to plant or plant spacing is entered. More...
 
int m_iPlantingIndex = -1
 This is where our new planting 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_planting_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 planting editing.

Copyright: Copyright (c) Charles D. Canham 2003

Company: Cary Institute of Ecosystem Studies

Author
Lora E. Murphy
Version
1.0

Constructor & Destructor Documentation

◆ PlantEdit() [1/2]

sortie.gui.harvepplant.PlantEdit.PlantEdit ( PlantingDisplayWindow  oWindow) throws ModelException

Constructor.

Creates the window.

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

◆ PlantEdit() [2/2]

sortie.gui.harvepplant.PlantEdit.PlantEdit ( PlantingDisplayWindow  oWindow,
PlantingData  oToDisplay 
) throws ModelException

Constructor that displays a planting event to edit.

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

Member Function Documentation

◆ actionPerformed()

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

Responds to window events.

Parameters
oEventEvent triggering this call.

◆ addNewPlanting()

void sortie.gui.harvepplant.PlantEdit.addNewPlanting ( ) throws ModelException
protected

Puts the new planting into DisturbanceWindow.

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

◆ makeGUI()

void sortie.gui.harvepplant.PlantEdit.makeGUI ( )
protected

Makes the GUI.

This draws all the window components and places them appropriately.

Member Data Documentation

◆ m_iPlantingIndex

int sortie.gui.harvepplant.PlantEdit.m_iPlantingIndex = -1
protected

This is where our new planting event goes.

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

◆ m_jGriddedPlantingButton

JRadioButton sortie.gui.harvepplant.PlantEdit.m_jGriddedPlantingButton = new JRadioButton("Gridded")
protected

Radio button for gridded planting.

◆ m_jPlantAmountValueLabel

JLabel sortie.gui.harvepplant.PlantEdit.m_jPlantAmountValueLabel = new JLabel()
protected

Label that displays the plant amount value for the currently displayed planting.

◆ m_jPlantAmtEdit

JTextField sortie.gui.harvepplant.PlantEdit.m_jPlantAmtEdit = new JTextField(" ")
protected

Edit box where amount to plant or plant spacing is entered.

◆ m_jRandomPlantingButton

JRadioButton sortie.gui.harvepplant.PlantEdit.m_jRandomPlantingButton = new JRadioButton("Random")
protected

Radio button for random planting.

◆ m_jTimestepEdit

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

Edit box where timestep is entered.

◆ m_sHelpID

String sortie.gui.harvepplant.PlantEdit.m_sHelpID = "windows.edit_planting_window"
private

Help ID string.

◆ mp_jSpeciesAmt

JTextField [] sortie.gui.harvepplant.PlantEdit.mp_jSpeciesAmt
protected

List of text fields, one for each species, for which species to apply the planting to.


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