Package PamView
Class PamObjectViewer
java.lang.Object
PamView.PamObjectViewer
- All Implemented Interfaces:
ComponentListener,EventListener,PamSettings,SettingsNameProvider,PamViewInterface
public class PamObjectViewer
extends Object
implements PamViewInterface, ComponentListener, PamSettings
Make a diagram of the overall PAM process layout. A bit like UML !
Contains menus to add modules, remove them, rename them, etc.
- Author:
- Doug Gillespie
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled whenever a pamcontrolled unit is added ot the model.voidvoidvoidvoidvoidenableGUIControl(boolean enable) Enable and disable the entire GUI.intstatic PamObjectViewergetObjectViewer(Frame frame) longvoidmodelChanged(int changeType) voidpamEnded()voidvoidCalled whenever a controlled unit is removed.booleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings) voidstatic voidShow(Frame frame, PamConfiguration pamConfiguration) voidShow the GUI for a specific controlled unit
-
Field Details
-
arrowSize
public static final int arrowSize- See Also:
-
instArrowSize
public static final int instArrowSize- See Also:
-
-
Method Details
-
getObjectViewer
-
Show
-
setTitle
- Specified by:
setTitlein interfacePamViewInterface
-
componentHidden
- Specified by:
componentHiddenin interfaceComponentListener
-
componentMoved
- Specified by:
componentMovedin interfaceComponentListener
-
componentResized
- Specified by:
componentResizedin interfaceComponentListener
-
componentShown
- Specified by:
componentShownin interfaceComponentListener
-
modelChanged
public void modelChanged(int changeType) - Specified by:
modelChangedin interfacePamViewInterface
-
pamEnded
public void pamEnded()- Specified by:
pamEndedin interfacePamViewInterface
-
pamStarted
public void pamStarted()- Specified by:
pamStartedin interfacePamViewInterface
-
getSettingsReference
- Specified by:
getSettingsReferencein interfacePamSettings- Returns:
- The serialisable object that will be stored
-
getSettingsVersion
public long getSettingsVersion()- Specified by:
getSettingsVersionin interfacePamSettings- Returns:
- An integer version number for the settings
-
getUnitName
- Specified by:
getUnitNamein interfaceSettingsNameProvider- Returns:
- A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
-
getUnitType
- Specified by:
getUnitTypein interfacePamSettings- Returns:
- A Name specific to the type, e.g. Click detector
-
restoreSettings
- Specified by:
restoreSettingsin interfacePamSettings- Parameters:
pamControlledUnitSettings-- Returns:
- true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
-
addControlledUnit
Description copied from interface:PamViewInterfaceCalled whenever a pamcontrolled unit is added ot the model.- Specified by:
addControlledUnitin interfacePamViewInterface- Parameters:
unit- - the added controlled unit.
-
removeControlledUnit
Description copied from interface:PamViewInterfaceCalled whenever a controlled unit is removed.- Specified by:
removeControlledUnitin interfacePamViewInterface- Parameters:
unit-
-
showControlledUnit
Description copied from interface:PamViewInterfaceShow the GUI for a specific controlled unit- Specified by:
showControlledUnitin interfacePamViewInterface- Parameters:
unit- -the controlled unit to show.
-
getFrameNumber
public int getFrameNumber()- Specified by:
getFrameNumberin interfacePamViewInterface- Returns:
- Frame number used by the multiple GUI frames. All other objects, such as the model view should return invalid input: '<' 0.
-
getGuiFrame
- Specified by:
getGuiFramein interfacePamViewInterface
-
enableGUIControl
public void enableGUIControl(boolean enable) Description copied from interface:PamViewInterfaceEnable and disable the entire GUI.- Specified by:
enableGUIControlin interfacePamViewInterface- Parameters:
enable- - true to enable the GUI/
-