javawrapper::EpisodicEventsEdit Class Reference

Base class for windows for episodic event editing. More...

Inheritance diagram for javawrapper::EpisodicEventsEdit:

javawrapper::HarvestEdit javawrapper::MortalityEpisodeEdit javawrapper::PlantEdit List of all members.

Public Member Functions

 EpisodicEventsEdit (EpisodicEventsWindow oWindow, String sTitle) throws ModelException
 Constructor.

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 mp_iCells.
JPanel MakeTreeLegendPanel (TreePopulation oPop)
 Creates a tree legend panel.

Protected Attributes

EpisodicEventsWindow m_oEpisodicEventsWindow
 Copy of the EpisodicEventsWindow object to exchange data with.
datavisualizer.XYCellRenderer m_oRenderer
 Renderer which displays current cell selections.
int[][] mp_iCells
 Grid of values that says whether a cell is currently selected (1) or not (0).
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.

Detailed Description

Base class for windows for episodic event editing.

Copyright: Copyright (c) Charles D. Canham 2003

Company: Institute of Ecosystem Studies

Author:
Lora E. Murphy
Version:
1.0


Constructor & Destructor Documentation

javawrapper::EpisodicEventsEdit::EpisodicEventsEdit ( EpisodicEventsWindow  oWindow,
String  sTitle 
) throws ModelException [inline]

Constructor.

Creates the window.

Parameters:
oWindow Object to exchange data with.
sTitle Window title.
Exceptions:
ModelException If the window cannot be set up correctly.


Member Function Documentation

JPanel javawrapper::EpisodicEventsEdit::MakeTreeLegendPanel ( TreePopulation  oPop  )  [inline, protected]

Creates a tree legend panel.

Parameters:
oPop TreePopulation Tree population object, for querying for existence of trees.
Returns:
JPanel Panel with tree legend on it.

void javawrapper::EpisodicEventsEdit::RefreshChart (  )  throws ModelException [inline, protected]

Refreshes the chart to show the data currently held in mp_iCells.

Note this function seems a little slow (surprise, surprise, with chart redraw!) so it's a goal to come back and make a faster way to do this.

Exceptions:
ModelException if the chart cannot be created.

void javawrapper::EpisodicEventsEdit::SetUpCharting (  )  throws ModelException [inline, protected]

Sets up the data cell charting.

This creates the cell renderer and the chart, and places the chart in the chart panel.

Exceptions:
ModelException if the chart cannot be created.


Member Data Documentation

float javawrapper::EpisodicEventsEdit::m_fLengthXCells [protected]

Length of cells in the X direction.

Children need to set this value.

float javawrapper::EpisodicEventsEdit::m_fLengthYCells [protected]

Length of cells in the Y direction.

Children need to set this value.

int javawrapper::EpisodicEventsEdit::m_iNumXCells [protected]

Number of X cells in the grid.

Children need to set this value.

int javawrapper::EpisodicEventsEdit::m_iNumYCells [protected]

Number of Y cells in the grid.

Children need to set this value.

java.awt.Color javawrapper::EpisodicEventsEdit::m_jColor [protected]

Color for displaying selected cells.

Children need to set this value.

datavisualizer.XYCellRenderer javawrapper::EpisodicEventsEdit::m_oRenderer [protected]

Initial value:

 new datavisualizer.
      XYCellRenderer()
Renderer which displays current cell selections.


The documentation for this class was generated from the following file:
Generated on Wed Nov 29 08:45:03 2006 for SORTIE Java Interface by  doxygen 1.4.7