Allows management of tree maps.
More...
|
void | restoreOriginalView () |
| Restores the original view of the tree map with the scale at which it was first displayed. More...
|
|
void | scroll (int iDirection) throws ModelException |
| Scrolls the view 10% in the specified direction. More...
|
|
void | writeTreeMap () throws ModelException |
| Writes the tree map trees to a tab-delimited text file. More...
|
|
void | refreshChart () throws ModelException |
| Refreshes the chart to show the data currently held in the dataset. More...
|
|
JPanel | makeTreeLegendPanel () |
| Creates a tree legend panel. More...
|
|
Allows management of tree maps.
- Author
- Lora Murphy
Edit history:
---------------—
February 27, 2008: Created by breaking off of a single tree setup window (LEM)
March 5, 2008: Added tree map display (LEM)
◆ ManageTreeMap()
Constructor.
Constructs and displays the GUI.
- Parameters
-
jParent | Parent window in which to display this dialog. |
oPop | TreePopulation object. |
◆ actionPerformed()
void sortie.gui.ManageTreeMap.actionPerformed |
( |
ActionEvent |
e | ) |
|
Controls actions for this window.
- Parameters
-
◆ createTreeMapDataset()
DefaultXYZDataset sortie.gui.ManageTreeMap.createTreeMapDataset |
( |
| ) |
throws ModelException |
|
private |
Creates the tree map dataset.
◆ makeTreeLegendPanel()
JPanel sortie.gui.ManageTreeMap.makeTreeLegendPanel |
( |
| ) |
|
|
protected |
Creates a tree legend panel.
- Returns
- JPanel Panel with tree legend on it.
◆ refreshChart()
Refreshes the chart to show the data currently held in the dataset.
- Exceptions
-
ModelException | if the chart cannot be created. |
◆ restoreOriginalView()
void sortie.gui.ManageTreeMap.restoreOriginalView |
( |
| ) |
|
|
protected |
Restores the original view of the tree map with the scale at which it was first displayed.
◆ scroll()
void sortie.gui.ManageTreeMap.scroll |
( |
int |
iDirection | ) |
throws ModelException |
|
protected |
Scrolls the view 10% in the specified direction.
If the view is full-size nothing happens. If the view is already scrolled all the way over in the specified direction nothing happens.
- Parameters
-
iDirection | int Direction in which to scroll. |
◆ writeTreeMap()
Writes the tree map trees to a tab-delimited text file.
It first displays to the user a dialog for specifying the file name. It then organizes a 2-D array of strings for all possible tree data members that have been defined. Each tree contributes its applicable values to the table. Then the table is written out.
- Exceptions
-
ModelException | if the file cannot be written. |
◆ DOWN
final int sortie.gui.ManageTreeMap.DOWN = 4 |
|
staticprivate |
◆ LEFT
final int sortie.gui.ManageTreeMap.LEFT = 1 |
|
staticprivate |
◆ m_fDBHScale
float sortie.gui.ManageTreeMap.m_fDBHScale = (float)1.0 |
|
private |
◆ m_fMinDbh
float sortie.gui.ManageTreeMap.m_fMinDbh |
|
private |
◆ m_fXPlotLength
float sortie.gui.ManageTreeMap.m_fXPlotLength |
|
private |
◆ m_fYPlotLength
float sortie.gui.ManageTreeMap.m_fYPlotLength |
|
private |
◆ m_jChartPanel
JPanel sortie.gui.ManageTreeMap.m_jChartPanel = new JPanel() |
|
protected |
Tree dataset.
Panel container for the chart
◆ m_jClearTreeMap
JButton sortie.gui.ManageTreeMap.m_jClearTreeMap |
|
protected |
Button for clearing tree map trees.
◆ m_jDBHScale
JTextField sortie.gui.ManageTreeMap.m_jDBHScale = new JTextField("") |
|
private |
Field displaying the DBH scale factor.
◆ m_jMinDbh
JTextField sortie.gui.ManageTreeMap.m_jMinDbh = new JTextField("") |
|
private |
Field displaying the minimum DBH.
◆ m_jWriteTreeMap
JButton sortie.gui.ManageTreeMap.m_jWriteTreeMap |
|
protected |
Button for writing a tree map as tab-delimited text.
◆ m_oPop
TreePopulation object that data changes will be communicated to.
◆ m_sHelpID
String sortie.gui.ManageTreeMap.m_sHelpID = "windows.edit_manage_tree_maps_window" |
|
private |
◆ mp_jSpeciesColors
Color [] sortie.gui.ManageTreeMap.mp_jSpeciesColors |
|
protected |
◆ RIGHT
final int sortie.gui.ManageTreeMap.RIGHT = 2 |
|
staticprivate |
◆ UP
final int sortie.gui.ManageTreeMap.UP = 3 |
|
staticprivate |
The documentation for this class was generated from the following file: