Static Public Member Functions | |
static void | UpdateLineChart (DefaultCategoryDataset oDataset, JInternalFrame jFrame, Legend oLegend, int iNumSpecies) throws ModelException |
Updates a line chart in a window with a fresh dataset. | |
static void | UpdateHistogram (ModelHistogramDataset oDataset, JInternalFrame jFrame, Legend oLegend, HistogramDataRequest oRequest) throws ModelException |
Updates a histogram with a fresh dataset. | |
static void | UpdateHistogram (ModelHistogramDataset oDataset, JInternalFrame jFrame, Legend oLegend, GridHistogramDataRequest oRequest) throws ModelException |
Updates a histogram with a fresh dataset. | |
static void | UpdateTreeMap (XYZDataset oDataset, JInternalFrame jFrame, Legend oLegend, float fDbhScaleFactor) throws ModelException |
Updates a tree map with a fresh dataset. | |
static void | UpdateGridMap (XYZDataset oDataset, JInternalFrame jFrame, Legend oLegend, XYCellRenderer oRenderer) throws ModelException |
Updates a grid map with a fresh dataset. | |
static JInternalFrame | DrawHistogram (ModelHistogramDataset oDataset, String sXAxisLabel, String sYAxisLabel, String sTitle, Legend oLegend, HistogramDataRequest oRequest) throws ModelException |
Creates a histogram and returns it in a ChartPanel. | |
static JInternalFrame | DrawHistogram (ModelHistogramDataset oDataset, String sXAxisLabel, String sYAxisLabel, String sTitle, Legend oLegend, GridHistogramDataRequest oRequest) throws ModelException |
Creates a histogram and returns it in a ChartPanel. | |
static JInternalFrame | AddFileMenu (JInternalFrame jFrame, java.awt.event.ActionListener oListener, boolean bAllTimesteps) |
Adds a file menu with a save command to a frame. | |
static JInternalFrame | DrawLineChart (DefaultCategoryDataset oDataset, java.awt.event.ActionListener oListener, String sXAxisLabel, String sYAxisLabel, String sTitle, Legend oLegend, int iNumSpecies) throws ModelException |
Draws a line graph using the given dataset and places it in a JInternalFrame as the content pane. | |
static JInternalFrame | DrawTreeMap (XYZDataset oDataset, String sXAxisLabel, String sYAxisLabel, String sTitle, int iXLength, int iYLength, float fDbhScaleFactor, java.awt.event.ActionListener oListener, Legend oLegend) throws ModelException |
Creates a tree map and places it as a content pane in a new JInternalFrame object. | |
static JInternalFrame | DrawGridMap (XYZDataset oDataset, String sXAxisLabel, String sYAxisLabel, String sTitle, int iXLength, int iYLength, Legend oLegend, XYCellRenderer oRenderer, GridDataRequest oRequest) throws ModelException |
Creates a grayscale grid map and places it as a content pane in a new JInternalFrame object. | |
static ChartPanel | MakeOverlaidMap (XYZDataset oPrimaryDataset, XYZDataset oSecondaryDataset, String sAxisLabel, String sYAxisLabel, int iXLength, int iYLength, XYItemRenderer oPrimaryRenderer, XYItemRenderer oSecondaryRenderer, Dimension jPreferredSize) |
Makes an overlaid map. | |
static JInternalFrame | DrawOverviewTables (String sChartTitle, Object[][] p_oSeedlingData, Object[][] p_oSaplingData, Object[][] p_oAdultData, Object[][] p_oSnagData, Legend oLegend, java.awt.event.ActionListener oListener) throws javawrapper. ModelException |
Creates a set of overview tables packaged into a JPanel. | |
static void | UpdateOverviewTables (JPanel jTablePanel, Object[][] p_oSeedlingData, Object[][] p_oSaplingData, Object[][] p_oAdultData, Object[][] p_oSnagData) |
Updates the overview tables with new data without rebuilding the whole window. | |
static java.awt.Component | FindNamedComponent (java.awt.Component jParent, String sName) |
Finds a named component within another component. | |
static boolean | ReplaceNamedComponent (java.awt.Component jParent, java.awt.Component jToReplaceWith, String sName) |
Replaces a named component with another component. | |
Static Private Member Functions | |
static ChartPanel | MakeLineChart (DefaultCategoryDataset dataset, String sXAxisLabel, String sYAxisLabel, Legend oLegend, int iNumSpecies, Dimension jPreferredSize) throws ModelException |
Draws a line graph using the given dataset and returns a ChartPanel containing the desired chart. | |
static ChartPanel | MakeTreeMap (XYZDataset oDataset, String sXAxisLabel, String sYAxisLabel, float fXStart, float fXEnd, float fYStart, float fYEnd, float fDbhScaleFactor, Legend oLegend, Dimension jPreferredSize) throws ModelException |
Creates a tree map and returns it in a ChartPanel. | |
static ChartPanel | MakeGridMap (XYZDataset oDataset, String sXAxisLabel, String sYAxisLabel, int iXLength, int iYLength, Legend oLegend, XYCellRenderer oRenderer, Dimension jPreferredSize) throws ModelException |
Creates a grid map and returns it in a ChartPanel. | |
static JPanel | MakeOverviewTables (Object[][] p_oSeedlingData, Object[][] p_oSaplingData, Object[][] p_oAdultData, Object[][] p_oSnagData, Legend oLegend) throws javawrapper. ModelException |
Creates a set of overview tables packaged into a JPanel. | |
static ChartPanel | MakeHistogram (ModelHistogramDataset oDataset, String sXAxisLabel, String sYAxisLabel, Legend oLegend, HistogramDataRequest oRequest, Dimension jPreferredSize) throws ModelException |
Creates a histogram and returns it in a ChartPanel. | |
static ChartPanel | MakeHistogram (ModelHistogramDataset oDataset, String sXAxisLabel, String sYAxisLabel, Legend oLegend, GridHistogramDataRequest oRequest, Dimension jPreferredSize) throws ModelException |
Creates a histogram and returns it in a ChartPanel. |
The functions you are most likely to call are the Draw[X] and Update[X].
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
|
Adds a file menu with a save command to a frame. The command action string is "WriteChartData".
|
|
Creates a grayscale grid map and places it as a content pane in a new JInternalFrame object. The JInternalFrame object is not sized or made visible. The grid map is drawn by an XYCellRenderer object. This object can be pre-created and passed to control the grayscale and where it is applied to various grid values.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Creates a histogram and returns it in a ChartPanel.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Creates a histogram and returns it in a ChartPanel.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Draws a line graph using the given dataset and places it in a JInternalFrame as the content pane. The JInternalFrame is not sized or made visible. The chart comes without a legend or title.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Creates a set of overview tables packaged into a JPanel. The overview tables contain information on density and basal area for each tree type. The four tables appear in two rows: adults and saplings on top, and seedlings and snags on the bottom. This method expects no null arrays, although null values within the array are all right. They will appear as blanks. A column of species names is added to each dataset as the first column in the table. The tables themselves are named, so they can be found later and updated without rebuilding the entire panel. The seedling table is named "seedling_table", the sapling table is named "sapling_table", the adult table is named "adult_table", and the snag table is named "snag_table".
|
|
Creates a tree map and places it as a content pane in a new JInternalFrame object. The JInternalFrame object is not sized or made visible. The tree map is created with a variation on the XYBubbleRenderer in JFreeChart called XYTreeRenderer, which draws the trees as circles. The chart comes without a legend or title.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Finds a named component within another component. This recursively searches all children of the parent component to find the named component.
|
|
Creates a grid map and returns it in a ChartPanel.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Creates a histogram and returns it in a ChartPanel.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) December 6, 2004: Added total bar (LEM) |
|
Creates a histogram and returns it in a ChartPanel.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) December 6, 2004: Added total bar (LEM) |
|
Draws a line graph using the given dataset and returns a ChartPanel containing the desired chart. The chart comes without a legend or title.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Makes an overlaid map.
|
|
Creates a set of overview tables packaged into a JPanel. The overview tables contain information on density and basal area for each tree type. The four tables appear in two rows: adults and saplings on top, and seedlings and snags on the bottom. This method expects no null arrays, although null values within the array are all right. They will appear as blanks. A column of species names is added to each dataset as the first column in the table. The tables themselves are named, so they can be found later and updated without rebuilding the entire panel. The seedling table is named "seedling_table", the sapling table is named "sapling_table", the adult table is named "adult_table", and the snag table is named "snag_table".
|
|
Creates a tree map and returns it in a ChartPanel.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) November 15, 2004: Added setting of both plot end points |
|
Replaces a named component with another component. This recursively searches all children of the parent component to find the named component, and then places the new component in its place.
|
|
Updates a grid map with a fresh dataset.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Updates a histogram with a fresh dataset.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Updates a histogram with a fresh dataset.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Updates a line chart in a window with a fresh dataset. The old content pane is replaced with a new one, so do not count on existing content pane references to the window working.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Updates the overview tables with new data without rebuilding the whole window. This finds the tables within a panel and sets the values cell-by-cell from the datasets passed in. The tables can be children at any level of the panel being passed - it will be recursively searched to find them. The species names in column one are not touched, only the data values.
|
|
Updates a tree map with a fresh dataset. The old content pane is replaced with a new one, so do not count on existing content pane references to the window working.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) November 15, 2004: Made this smarter about replacing the chart (LEM) |