Inherits javax::swing::JDialog, and java::awt::event::ActionListener.
Public Member Functions | |
| ManageTreeMap (JFrame jParent, TreePopulation oPop) throws ModelException | |
| Constructor. | |
| void | actionPerformed (ActionEvent e) |
| Controls actions for this window. | |
Protected Member Functions | |
| void | RestoreOriginalView () |
| Restores the original view of the tree map with the scale at which it was first displayed. | |
| void | Scroll (int iDirection) throws ModelException |
| Scrolls the view 10% in the specified direction. | |
| void | WriteTreeMap () throws ModelException |
| Writes the tree map trees to a tab-delimited text file. | |
| void | RefreshChart () throws ModelException |
| Refreshes the chart to show the data currently held in the dataset. | |
| JPanel | MakeTreeLegendPanel () |
| Creates a tree legend panel. | |
Protected Attributes | |
| JPanel | m_jChartPanel = new JPanel() |
| Tree dataset. | |
| Color[] | mp_jSpeciesColors |
| Colors for each species. | |
| TreePopulation | m_oPop |
| TreePopulation object that data changes will be communicated to. | |
| JButton | m_jClearTreeMap |
| Button for clearing tree map trees. | |
| JButton | m_jWriteTreeMap |
| Button for writing a tree map as tab-delimited text. | |
Static Package Attributes | |
| static final long | serialVersionUID = 1 |
Private Member Functions | |
| DefaultXYZDataset | CreateTreeMapDataset () throws ModelException |
| Creates the tree map dataset. | |
Private Attributes | |
| JTextField | m_jDBHScale = new JTextField("") |
| Field displaying the DBH scale factor. | |
| JTextField | m_jMinDbh = new JTextField("") |
| Field displaying the minimum DBH. | |
| String | m_sHelpID = "windows.edit_manage_tree_maps_window" |
| Help ID string. | |
| float | m_fMinDbh |
| Minimum dbh to draw. | |
| float | m_fDBHScale = (float) 1.0 |
| DBH scale factor. | |
| float | m_fXPlotLength |
| X plot length in meters. | |
| float | m_fYPlotLength |
| Y plot length in meters. | |
Static Private Attributes | |
| static final int | LEFT = 1 |
| Scrolling left. | |
| static final int | RIGHT = 2 |
| Scrolling right. | |
| static final int | UP = 3 |
| Scrolling up. | |
| static final int | DOWN = 4 |
| Scrolling down. | |
| javawrapper.ManageTreeMap.ManageTreeMap | ( | JFrame | jParent, | |
| TreePopulation | oPop | |||
| ) | throws ModelException |
Constructor.
Constructs and displays the GUI.
| jParent | Parent window in which to display this dialog. | |
| oPop | TreePopulation object. |
| void javawrapper.ManageTreeMap.actionPerformed | ( | ActionEvent | e | ) |
Controls actions for this window.
| e | ActionEvent. |
| void javawrapper.ManageTreeMap.RestoreOriginalView | ( | ) | [protected] |
Restores the original view of the tree map with the scale at which it was first displayed.
| void javawrapper.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.
| iDirection | int Direction in which to scroll. |
| void javawrapper.ManageTreeMap.WriteTreeMap | ( | ) | throws ModelException [protected] |
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.
| ModelException | if the file cannot be written. |
| void javawrapper.ManageTreeMap.RefreshChart | ( | ) | throws ModelException [protected] |
Refreshes the chart to show the data currently held in the dataset.
| ModelException | if the chart cannot be created. |
| DefaultXYZDataset javawrapper.ManageTreeMap.CreateTreeMapDataset | ( | ) | throws ModelException [private] |
Creates the tree map dataset.
| JPanel javawrapper.ManageTreeMap.MakeTreeLegendPanel | ( | ) | [protected] |
Creates a tree legend panel.
final long javawrapper.ManageTreeMap.serialVersionUID = 1 [static, package] |
JPanel javawrapper.ManageTreeMap.m_jChartPanel = new JPanel() [protected] |
Tree dataset.
Panel container for the chart
Color [] javawrapper.ManageTreeMap.mp_jSpeciesColors [protected] |
Colors for each species.
TreePopulation javawrapper.ManageTreeMap.m_oPop [protected] |
TreePopulation object that data changes will be communicated to.
JButton javawrapper.ManageTreeMap.m_jClearTreeMap [protected] |
Button for clearing tree map trees.
JButton javawrapper.ManageTreeMap.m_jWriteTreeMap [protected] |
Button for writing a tree map as tab-delimited text.
JTextField javawrapper.ManageTreeMap.m_jDBHScale = new JTextField("") [private] |
Field displaying the DBH scale factor.
JTextField javawrapper.ManageTreeMap.m_jMinDbh = new JTextField("") [private] |
Field displaying the minimum DBH.
String javawrapper.ManageTreeMap.m_sHelpID = "windows.edit_manage_tree_maps_window" [private] |
Help ID string.
float javawrapper.ManageTreeMap.m_fMinDbh [private] |
Minimum dbh to draw.
float javawrapper.ManageTreeMap.m_fDBHScale = (float) 1.0 [private] |
DBH scale factor.
float javawrapper.ManageTreeMap.m_fXPlotLength [private] |
X plot length in meters.
float javawrapper.ManageTreeMap.m_fYPlotLength [private] |
Y plot length in meters.
final int javawrapper.ManageTreeMap.LEFT = 1 [static, private] |
Scrolling left.
final int javawrapper.ManageTreeMap.RIGHT = 2 [static, private] |
Scrolling right.
final int javawrapper.ManageTreeMap.UP = 3 [static, private] |
Scrolling up.
final int javawrapper.ManageTreeMap.DOWN = 4 [static, private] |
Scrolling down.
1.5.6