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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called whenever a pamcontrolled unit is added ot the model.void
void
void
void
void
enableGUIControl
(boolean enable) Enable and disable the entire GUI.int
static PamObjectViewer
getObjectViewer
(Frame frame) long
void
modelChanged
(int changeType) void
pamEnded()
void
void
Called whenever a controlled unit is removed.boolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings) void
static void
Show
(Frame frame, PamConfiguration pamConfiguration) void
Show 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:
setTitle
in interfacePamViewInterface
-
componentHidden
- Specified by:
componentHidden
in interfaceComponentListener
-
componentMoved
- Specified by:
componentMoved
in interfaceComponentListener
-
componentResized
- Specified by:
componentResized
in interfaceComponentListener
-
componentShown
- Specified by:
componentShown
in interfaceComponentListener
-
modelChanged
public void modelChanged(int changeType) - Specified by:
modelChanged
in interfacePamViewInterface
-
pamEnded
public void pamEnded()- Specified by:
pamEnded
in interfacePamViewInterface
-
pamStarted
public void pamStarted()- Specified by:
pamStarted
in interfacePamViewInterface
-
getSettingsReference
- Specified by:
getSettingsReference
in interfacePamSettings
- Returns:
- The serialisable object that will be stored
-
getSettingsVersion
public long getSettingsVersion()- Specified by:
getSettingsVersion
in interfacePamSettings
- Returns:
- An integer version number for the settings
-
getUnitName
- Specified by:
getUnitName
in interfaceSettingsNameProvider
- Returns:
- A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
-
getUnitType
- Specified by:
getUnitType
in interfacePamSettings
- Returns:
- A Name specific to the type, e.g. Click detector
-
restoreSettings
- Specified by:
restoreSettings
in interfacePamSettings
- 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:PamViewInterface
Called whenever a pamcontrolled unit is added ot the model.- Specified by:
addControlledUnit
in interfacePamViewInterface
- Parameters:
unit
- - the added controlled unit.
-
removeControlledUnit
Description copied from interface:PamViewInterface
Called whenever a controlled unit is removed.- Specified by:
removeControlledUnit
in interfacePamViewInterface
-
showControlledUnit
Description copied from interface:PamViewInterface
Show the GUI for a specific controlled unit- Specified by:
showControlledUnit
in interfacePamViewInterface
- Parameters:
unit
- -the controlled unit to show.
-
getFrameNumber
public int getFrameNumber()- Specified by:
getFrameNumber
in 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:
getGuiFrame
in interfacePamViewInterface
-
enableGUIControl
public void enableGUIControl(boolean enable) Description copied from interface:PamViewInterface
Enable and disable the entire GUI.- Specified by:
enableGUIControl
in interfacePamViewInterface
- Parameters:
enable
- - true to enable the GUI/
-