|
SORTIE Java Interface
1
|
Base class for windows for episodic event editing. More...
Public Member Functions | |
| EpisodicEventsEditBase (EpisodicEventsWindow oWindow, String sTitle) throws ModelException | |
| Constructor. | |
| void | actionPerformed (ActionEvent oEvent) |
| Responds to window events. | |
Static Public Attributes | |
| 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. | |
Protected Member Functions | |
| 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 | |
| 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 | |
| int | m_iHarvestDataIndex = 1 |
| Harvest data layer index in m_oDataset.mp_bData. | |
Base class for windows for episodic event editing.
Copyright: Copyright (c) Charles D. Canham 2003 Company: Cary Institute of Ecosystem Studies
| sortie.gui.EpisodicEventsEditBase.EpisodicEventsEditBase | ( | EpisodicEventsWindow | oWindow, |
| String | sTitle | ||
| ) | throws ModelException |
Constructor.
Creates the window.
| oWindow | Object to exchange data with. |
| sTitle | Window title. |
| ModelException | If the window cannot be set up correctly. |
| void sortie.gui.EpisodicEventsEditBase.actionPerformed | ( | ActionEvent | oEvent | ) |
Responds to window events.
| oEvent | Event triggering this call. |
|
protected |
Causes a harvest event to be displayed in the window.
| oHarvest | Harvest to display, or NULL if no harvest is to be displayed. |
| ModelException | passing through from called methods. |
|
protected |
Causes a mortality episode to be displayed in the window.
| oEpisode | Mortality episode to display, or NULL if no episode is to be displayed. |
| ModelException | passing through from called methods. |
|
protected |
Displays the next harvest when the ">>" button is pressed.
If the last harvest is being displayed, then nothing changes.
| ModelException | Passing through from called methods. |
|
protected |
Displays the next mortality episode when the next button is pressed.
If the last episode is being displayed, then nothing changes.
| ModelException | Passing 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 harvest when the previous button is pressed.
If the first harvest is being displayed, then nothing changes.
| ModelException | Passing through from called methods. |
|
protected |
Displays the next mortality episode when the previous button is pressed.
If the first episode is being displayed, then nothing changes.
| 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 |
Display for harvests, mortality episodes, plantings.
|
protected |
Creates a tree legend panel.
| oPop | TreePopulation Tree population object, for querying for existence of trees. |
|
protected |
Refreshes the chart to show the data currently held in the dataset.
| ModelException | if the chart cannot be created. |
|
protected |
Sets up the data cell charting.
This creates the cell renderer and the chart, and places the chart in the chart panel.
| ModelException | if the chart cannot be created. |
|
static |
Color for displaying harvests.
|
static |
Color for displaying mortality episode events.
|
static |
Color for displaying plantings.
|
protected |
Length of cells in the X direction.
Children need to set this value.
|
protected |
Length of cells in the Y direction.
Children need to set this value.
|
protected |
Current event definition data layer index in m_oDataset.mp_bData.
|
private |
Harvest data layer index in m_oDataset.mp_bData.
|
protected |
Mortality episode data layer index in m_oDataset.mp_bData.
|
protected |
Total number of tree species.
|
protected |
Number of total harvest events that can be displayed.
|
protected |
Number of total mortality episodes that can be displayed.
|
protected |
Number of total planting events that can be displayed.
|
protected |
Number of X cells in the grid.
Children need to set this value.
|
protected |
Number of Y cells in the grid.
Children need to set this value.
|
protected |
Planting data layer index in m_oDataset.mp_bData.
|
protected |
Panel container for the chart.
|
protected |
Color for displaying selected cells.
Children need to set this value.
|
protected |
Label that displays the number of the current harvest event.
|
protected |
Label that displays the number of the current mortality episode.
|
protected |
Label that displays the number of the current planting event.
|
protected |
ChartPanel displaying the chart.
|
protected |
Dataset of values that says whether a cell is currently selected (true) or not (false)
|
protected |
Copy of the EpisodicEventsWindow object to exchange data with.
|
protected |
Renderer which displays current cell selections.
1.8.2