Class WrapperControlledGUISwing
This is used to allow developers to call GUI functions from the PAMControlled unit using getPamGui(Swing) without requiring any alterations to the PamControlledUnit.
- Author:
 - Jamie Macaulay
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptioncreateDetectionMenu(Frame parentFrame) Create a JMenu object containing MenuItems associated with PamProcessescreateDisplayMenu(Frame parentFrame) Create a JMenu object containing MenuItems associated with the viewcreateFileMenu(JFrame parentFrame) createHelpMenu(Frame parentFrame) intGet the number of the frame that side and tab panels for this module should sit on.Get the main frame for the GUI.Gets a reference to a small panel to be displayed along the left hand edge of the main tab panel.Gets a reference to a panel to be added to a viewSets the toolbar component which will be incorporated into the top toolbar whenever this controlled unit's display is selected in the main tab panelvoidsetFrameNumber(int frameNumber) voidsetSidePanel(PamSidePanel sidePanel) Sets the side panel for the PamControlledUnit Side panels are shown down the left hand side of the main Pamguard GUI and are always visible, irrespective of which tab is being viewed on the main tabbed display.voidsetTabPanel(PamTabPanel tabPanel) Sets the tab panel for the PamControlledUnit.protected voidsetToolbarComponent(Component toolbarComponent) Set the toolbar component which will be incorporated into the top toolbar whenever this controlled unit's display is selected in the main tab panelMethods inherited from class PamView.PamControlledGUISwing
getGUIFlagMethods inherited from class PamController.PamControlledUnitGUI
notifyGUIChange 
- 
Constructor Details
- 
WrapperControlledGUISwing
 
 - 
 - 
Method Details
- 
getTabPanel
Description copied from class:PamControlledGUISwingGets a reference to a panel to be added to a view- Overrides:
 getTabPanelin classPamControlledGUISwing- Returns:
 - reference to a PamTabPanel object
 - See Also:
 
 - 
setSidePanel
Description copied from class:PamControlledGUISwingSets the side panel for the PamControlledUnit Side panels are shown down the left hand side of the main Pamguard GUI and are always visible, irrespective of which tab is being viewed on the main tabbed display.Side panels are generally used to display summary information for the PamControlledUnit or to provide quick access controls.
- Overrides:
 setSidePanelin classPamControlledGUISwing- Parameters:
 sidePanel- Reference to a PamSidePanel object- See Also:
 
 - 
setTabPanel
Description copied from class:PamControlledGUISwingSets the tab panel for the PamControlledUnit. A tab panel may contain graphics or tables to display information of any type.- Overrides:
 setTabPanelin classPamControlledGUISwing- Parameters:
 tabPanel-
 - 
getFrameNumber
public int getFrameNumber()Description copied from class:PamControlledGUISwingGet the number of the frame that side and tab panels for this module should sit on.- Overrides:
 getFrameNumberin classPamControlledGUISwing- Returns:
 - frame number.
 
 - 
setFrameNumber
public void setFrameNumber(int frameNumber) - Overrides:
 setFrameNumberin classPamControlledGUISwing
 - 
getSidePanel
Description copied from class:PamControlledGUISwingGets a reference to a small panel to be displayed along the left hand edge of the main tab panel. Side panels should be small since they are always visible and any space they take will be taken from the main tab panel.It is possible for a PamControlled unit to have a side panel without having a pamTabPanel.
- Overrides:
 getSidePanelin classPamControlledGUISwing- Returns:
 - a pamSidePanel object.
 - See Also:
 
 - 
getToolbarComponent
Description copied from class:PamControlledGUISwingSets the toolbar component which will be incorporated into the top toolbar whenever this controlled unit's display is selected in the main tab panel- Overrides:
 getToolbarComponentin classPamControlledGUISwing- Returns:
 - An AWT component to include in the toolbar.
 
 - 
setToolbarComponent
Description copied from class:PamControlledGUISwingSet the toolbar component which will be incorporated into the top toolbar whenever this controlled unit's display is selected in the main tab panel- Overrides:
 setToolbarComponentin classPamControlledGUISwing- Parameters:
 toolbarComponent- An AWT component to include in the toolbar.
 - 
createDetectionMenu
Description copied from class:PamControlledGUISwingCreate a JMenu object containing MenuItems associated with PamProcesses- Overrides:
 createDetectionMenuin classPamControlledGUISwing- Parameters:
 parentFrame- The owner frame of the menu- Returns:
 - reference to a JMenu which can be added to an existing menu or
         menu bar
         
Note that if multiple views are to use the same menu, then they should each create a new menu (by setting Create to true) the first time they call this method.
 
 - 
createDisplayMenu
Description copied from class:PamControlledGUISwingCreate a JMenu object containing MenuItems associated with the view- Overrides:
 createDisplayMenuin classPamControlledGUISwing- Returns:
 - reference to a JMenu which can be added to an existing menu or
         menu bar
         
Note that if multiple views are to use the same menu, then they should each create a new menu (by setting Create to true) the first time they call this method.
 
 - 
createHelpMenu
- Overrides:
 createHelpMenuin classPamControlledGUISwing
 - 
createFileMenu
- Overrides:
 createFileMenuin classPamControlledGUISwing- Parameters:
 parentFrame- parent frame for the menu- Returns:
 - the file menu item
 
 - 
getPamView
- Overrides:
 getPamViewin classPamControlledGUISwing
 - 
getTabClipCopier
- Overrides:
 getTabClipCopierin classPamControlledGUISwing
 - 
getGuiFrame
Description copied from class:PamControlledGUISwingGet the main frame for the GUI. In some cases the view may not have been created, so go straight to the main one.- Overrides:
 getGuiFramein classPamControlledGUISwing- Returns:
 - frame.
 
 
 -