Public Member Functions | |
| DetailedOutputTreeSetup (JDialog oParent, OutputBehaviors oOutputBehaviors) | |
| Constructor. | |
| void | SaveAll () throws ModelException |
| Causes all possible tree data members to be saved for the run. | |
| void | actionPerformed (ActionEvent oEvent) |
| Performs the actions of the window. | |
Package Attributes | |
| JTabbedPane | m_jTabbedPanel = new JTabbedPane() |
| Panel showing the different tree types. | |
| JPanel | m_jSeedlingPanel = new JPanel() |
| Panel for seedlings. | |
| JPanel | m_jSaplingPanel = new JPanel() |
| Panel for saplings. | |
| JPanel | m_jAdultPanel = new JPanel() |
| Panel for adults. | |
| JPanel | m_jSnagPanel = new JPanel() |
| Panel for snags. | |
| JLabel | m_jSeedlingSelectLabel = new JLabel() |
| Label for selection. | |
| JScrollPane | m_jSeedlingSpeciesScrollPane = new JScrollPane() |
| Scroll pane for displaying species. | |
| JLabel | m_jSeedlingSaveEveryLabel = new JLabel() |
| Label for how often to save data members. | |
| JTextField | m_jSeedlingTimestepsEdit = new JTextField() |
| Edit box for entering how often to save. | |
| JLabel | m_jSeedlingTreeSaveLabel = new JLabel() |
| Label for save. | |
| JButton | m_jSeedlingAddButton = new JButton() |
| Button for adding data members. | |
| JLabel | m_jSeedlingWhatSavedLabel = new JLabel() |
| Label displaying what's saved. | |
| JScrollPane | m_jSeedlingSaveScrollPane = new JScrollPane() |
| Scroll pane with what's been saved. | |
| JButton | m_jSeedlingRemoveButton = new JButton() |
| Button for removing data members. | |
| JScrollPane | m_jSeedlingDataMemberScrollPane = new JScrollPane() |
| Scroll pane for displaying data members. | |
| JButton | m_jSaplingAddButton = new JButton() |
| Button for adding data members. | |
| JLabel | m_jSaplingSelectLabel = new JLabel() |
| Label for selection. | |
| JScrollPane | m_jSaplingSpeciesScrollPane = new JScrollPane() |
| Scroll pane for displaying species. | |
| JScrollPane | m_jSaplingSaveScrollPane = new JScrollPane() |
| Scroll pane with what's been saved. | |
| JButton | m_jSaplingRemoveButton = new JButton() |
| Button for removing data members. | |
| JLabel | m_jSaplingWhatSavedLabel = new JLabel() |
| Label displaying what's saved. | |
| JLabel | m_jSaplingTreeSaveLabel = new JLabel() |
| Label for save. | |
| JLabel | m_jSaplingSaveEveryLabel = new JLabel() |
| Label for how often to save data members. | |
| JScrollPane | m_jSaplingDataMemberScrollPane = new JScrollPane() |
| Scroll pane for displaying data members. | |
| JTextField | m_jSaplingTimestepsEdit = new JTextField() |
| Edit box for entering how often to save. | |
| JScrollPane | m_jAdultSpeciesScrollPane = new JScrollPane() |
| Scroll pane for displaying species. | |
| JLabel | m_jAdultSelectLabel = new JLabel() |
| Label for selection. | |
| JButton | m_jAdultRemoveButton = new JButton() |
| Button for removing data members. | |
| JScrollPane | m_jAdultSaveScrollPane = new JScrollPane() |
| Scroll pane with what's been saved. | |
| JLabel | m_jAdultWhatSavedLabel = new JLabel() |
| Label displaying what's saved. | |
| JLabel | m_jAdultTreeSaveLabel = new JLabel() |
| Label for save. | |
| JButton | m_jAdultAddButton = new JButton() |
| Button for adding data members. | |
| JLabel | m_jAdultSaveEveryLabel = new JLabel() |
| Label for how often to save data members. | |
| JScrollPane | m_jAdultDataMemberScrollPane = new JScrollPane() |
| Scroll pane for displaying data members. | |
| JTextField | m_jAdultTimestepsEdit = new JTextField() |
| Edit box for entering how often to save. | |
| JScrollPane | m_jSnagSpeciesScrollPane = new JScrollPane() |
| Scroll pane for displaying species. | |
| JLabel | m_jSnagSelectLabel = new JLabel() |
| Label for selection. | |
| JButton | m_jSnagRemoveButton = new JButton() |
| Button for removing data members. | |
| JScrollPane | m_jSnagSaveScrollPane = new JScrollPane() |
| Scroll pane with what's been saved. | |
| JLabel | m_jSnagWhatSavedLabel = new JLabel() |
| Label displaying what's saved. | |
| JLabel | m_jSnagTreeSaveLabel = new JLabel() |
| Label for save. | |
| JButton | m_jSnagAddButton = new JButton() |
| Button for adding data members. | |
| JLabel | m_jSnagSaveEveryLabel = new JLabel() |
| Label for how often to save data members. | |
| JScrollPane | m_jSnagDataMemberScrollPane = new JScrollPane() |
| Scroll pane for displaying data members. | |
| JTextField | m_jSnagTimestepsEdit = new JTextField() |
| Edit box for entering how often to save. | |
| JList | m_jSeedlingDataMemberList = new JList(m_jSeedlingDataMemberListModel) |
| Seedling data member list. | |
| JList | m_jSeedlingSpeciesList = new JList(m_jSpeciesListModel) |
| Seedling species list. | |
| JList | m_jSeedlingSaveList = new JList(m_jSeedlingSaveListModel) |
| Seedling save list. | |
| JList | m_jSaplingSpeciesList = new JList(m_jSpeciesListModel) |
| Sapling species list. | |
| JList | m_jSaplingSaveList = new JList(m_jSaplingSaveListModel) |
| Sapling save list. | |
| JList | m_jSaplingDataMemberList = new JList(m_jSaplingDataMemberListModel) |
| Sapling data member list. | |
| JList | m_jAdultSpeciesList = new JList(m_jSpeciesListModel) |
| Adult species list. | |
| JList | m_jAdultSaveList = new JList(m_jAdultSaveListModel) |
| Adult save list. | |
| JList | m_jAdultDataMemberList = new JList(m_jAdultDataMemberListModel) |
| Adult data member list. | |
| JList | m_jSnagSpeciesList = new JList(m_jSpeciesListModel) |
| Snag species list. | |
| JList | m_jSnagSaveList = new JList(m_jSnagSaveListModel) |
| Snag save list. | |
| JList | m_jSnagDataMemberList = new JList(m_jSnagDataMemberListModel) |
| Snag data member list. | |
| GridBagLayout | m_jGridBagLayout3 = new GridBagLayout() |
| Layout. | |
| GridBagLayout | m_jGridBagLayout1 = new GridBagLayout() |
| Layout. | |
| GridBagLayout | m_jGridBagLayout2 = new GridBagLayout() |
| Layout. | |
| GridBagLayout | m_jGridBagLayout4 = new GridBagLayout() |
| Layout. | |
| GridBagLayout | m_jGridBagLayout5 = new GridBagLayout() |
| Layout. | |
| JPanel | m_jComponentPanel = new JPanel() |
| Component panel. | |
| JPanel | m_jButtonPanel = new JPanel() |
| Button panel. | |
Private Member Functions | |
| void | CollectTreeDataMembers (TreePopulation oPop) throws ModelException |
| Collects together the tree data members that will be displayed. | |
| void | SaveData () throws ModelException |
| Saves the settings collected by this window to the OutputBehaviors object. | |
| void | LoadSettings () |
| Loads the settings from output into this form's temp array for display. | |
| void | UpdateSaves () |
| Displays what's being saved in each save list based on what's in mp_oDetailedTreeSaveSettings. | |
| void | jbInit () throws Exception |
| Builds GUI. | |
| void | AddButtonActionPerformed (int iType) throws ModelException |
| Serves as the common function for adding settings entered when the user clicks an "Add" button. | |
| void | RemoveButtonActionPerformed (int iType) |
| Serves as the common function for removing settings entered when the user clicks a "Remove" button. | |
Private Attributes | |
| OutputBehaviors | m_oOutputBehaviors |
| For exchanging data with. | |
| Vector | mp_oDetailedTreeSaveSettings |
| Temp collection of settings - vector of DetailedTreeSettings objects. | |
| String | m_sHelpID = "windows.detailed_output_tree_setup" |
| The help ID for this window. | |
| boolean[][] | mp_bSeedlingDataMembersBySpecies |
| For each seedling data member, whether it's used by a particular species. | |
| boolean[][] | mp_bSaplingDataMembersBySpecies |
| For each sapling data member, whether it's used by a particular species. | |
| boolean[][] | mp_bAdultDataMembersBySpecies |
| For each adult data member, whether it's used by a particular species. | |
| boolean[][] | mp_bSnagDataMembersBySpecies |
| For each snag data member, whether it's used by a particular species. | |
| boolean | m_bIsSnagAware = false |
| Whether or not this run is snag-aware and any snags should be saved. | |
| DefaultListModel | m_jSeedlingDataMemberListModel |
| List model for the seedling data member list. | |
| DefaultListModel | m_jSaplingDataMemberListModel = new DefaultListModel() |
| List model for the sapling data member list. | |
| DefaultListModel | m_jAdultDataMemberListModel = new DefaultListModel() |
| List model for the adult data member list. | |
| DefaultListModel | m_jSnagDataMemberListModel = new DefaultListModel() |
| List model for the snag data member list. | |
| DefaultListModel | m_jSpeciesListModel = new DefaultListModel() |
| List model for the species list. | |
| DefaultListModel | m_jSeedlingSaveListModel = new DefaultListModel() |
| List model for the seedling saved data member list. | |
| DefaultListModel | m_jSaplingSaveListModel = new DefaultListModel() |
| List model for the sapling saved data member list. | |
| DefaultListModel | m_jAdultSaveListModel = new DefaultListModel() |
| List model for the adult saved data member list. | |
| DefaultListModel | m_jSnagSaveListModel = new DefaultListModel() |
| List model for the snag saved data member list. | |
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
| javawrapper::DetailedOutputTreeSetup::DetailedOutputTreeSetup | ( | JDialog | oParent, | |
| OutputBehaviors | oOutputBehaviors | |||
| ) | [inline] |
Constructor.
| oParent | Parent window in which to display this dialog. | |
| oOutputBehaviors | OutputBehaviors object. |
| void javawrapper::DetailedOutputTreeSetup::actionPerformed | ( | ActionEvent | oEvent | ) | [inline] |
Performs the actions of the window.
| oEvent | ActionEvent object. |
| void javawrapper::DetailedOutputTreeSetup::AddButtonActionPerformed | ( | int | iType | ) | throws ModelException [inline, private] |
Serves as the common function for adding settings entered when the user clicks an "Add" button.
| iType | The tree type (TreePopulation.SEEDLING, TreePopulation.SAPLING, TreePopulation.ADULT, or TreePopulation.SNAG) that is firing the button. |
| ModelException | if the run is not snag-aware but someone is trying to save snag settings. |
| void javawrapper::DetailedOutputTreeSetup::CollectTreeDataMembers | ( | TreePopulation | oPop | ) | throws ModelException [inline, private] |
Collects together the tree data members that will be displayed.
| oPop | Tree population object. |
| ModelException | passed through from called functions. Should never be thrown. |
| void javawrapper::DetailedOutputTreeSetup::jbInit | ( | ) | throws Exception [inline, private] |
Builds GUI.
| java.lang.Exception | if there's a problem. |
| void javawrapper::DetailedOutputTreeSetup::LoadSettings | ( | ) | [inline, private] |
Loads the settings from output into this form's temp array for display.
Edit history:
------------------
April 28, 2004: Submitted in beta version (LEM)
| void javawrapper::DetailedOutputTreeSetup::RemoveButtonActionPerformed | ( | int | iType | ) | [inline, private] |
Serves as the common function for removing settings entered when the user clicks a "Remove" button.
| iType | The tree type (TreePopulation.SEEDLING, TreePopulation.SAPLING, TreePopulation.ADULT, or TreePopulation.SNAG) that is firing the button. |
| void javawrapper::DetailedOutputTreeSetup::SaveAll | ( | ) | throws ModelException [inline] |
Causes all possible tree data members to be saved for the run.
This can be called without the window's being visible. Its results are immediately applied to the output behavior - so this is not subject to a Cancel button.
| ModelException | passed through from called methods. |
| void javawrapper::DetailedOutputTreeSetup::SaveData | ( | ) | throws ModelException [inline, private] |
Saves the settings collected by this window to the OutputBehaviors object.
| ModelException | passed through from called methods. |
| void javawrapper::DetailedOutputTreeSetup::UpdateSaves | ( | ) | [inline, private] |
Displays what's being saved in each save list based on what's in mp_oDetailedTreeSaveSettings.
Edit history:
------------------
April 28, 2004: Submitted in beta version (LEM)
DefaultListModel javawrapper::DetailedOutputTreeSetup::m_jSeedlingDataMemberListModel [private] |
Initial value:
new
DefaultListModel()
boolean [][] javawrapper::DetailedOutputTreeSetup::mp_bAdultDataMembersBySpecies [private] |
For each adult data member, whether it's used by a particular species.
Array is sized number of adult data members by number of species.
boolean [][] javawrapper::DetailedOutputTreeSetup::mp_bSaplingDataMembersBySpecies [private] |
For each sapling data member, whether it's used by a particular species.
Array is sized number of sapling data members by number of species.
boolean [][] javawrapper::DetailedOutputTreeSetup::mp_bSeedlingDataMembersBySpecies [private] |
For each seedling data member, whether it's used by a particular species.
Array is sized number of seedling data members by number of species.
boolean [][] javawrapper::DetailedOutputTreeSetup::mp_bSnagDataMembersBySpecies [private] |
For each snag data member, whether it's used by a particular species.
Array is sized number of snag data members by number of species.
1.4.7