Package PamView.symbol
Class PamSymbolManager<T extends PamSymbolChooser>
java.lang.Object
PamView.symbol.PamSymbolManager<T>
- All Implemented Interfaces:
 PamSettings,SettingsNameProvider
- Direct Known Subclasses:
 CyclicColourSymbolManager,StandardSymbolManager
public abstract class PamSymbolManager<T extends PamSymbolChooser>
extends Object
implements PamSettings
PAMSymbolManagers are attached to a single datablock and control the type 
 of symbol and line that get's used to plot data on the variety of 
 PAMGUard displays. Note that different displays may chose to plot 
 data in different ways, so the ManagedSymbolData class will contain 
 a list of different symbol selectors, each of which can behave independently
 but all have a "generic" option which is a quick way of forcing them 
 all to do the same thing.
- Author:
 - dg50
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidAdd symbol modifiers from annotations.voidAdd a list of available (AVAILABLE, not used) symbol modifiers to the chooser when it is created.voidClear all the symbol choosers for this datablock.protected abstract TcreateSymbolChooser(String displayName, GeneralProjector projector) getFXOptionsPane(String displayName, GeneralProjector projector) Get the FX pane with controls to change symbol colours, types and line colours.longgetSwingOptionsPanel(String displayName, GeneralProjector projector) Get the Swing pane with controls to change symbol colours, types and line colours.getSymbolChooser(String displayName, GeneralProjector projector) static voidGlobal clear of all symbol choosers.booleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings)  
- 
Field Details
- 
GENERICNAME
- See Also:
 
 
 - 
 - 
Constructor Details
- 
PamSymbolManager
 
 - 
 - 
Method Details
- 
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
 
 - 
globalClear
public static void globalClear()Global clear of all symbol choosers. - 
clearChoosers
public void clearChoosers()Clear all the symbol choosers for this datablock. Get's called when annotations for the datablock have changed, so that they can all recreated with any new options. - 
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
 
 - 
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
 
 - 
getSymbolChooser
 - 
createSymbolChooser
 - 
getPamDataBlock
- Returns:
 - the pamDataBlock
 
 - 
getManagedSymbolData
- Returns:
 - the managedSymbolData
 
 - 
getSwingOptionsPanel
Get the Swing pane with controls to change symbol colours, types and line colours.- Parameters:
 displayName- - the display nameprojector- - the projector associated with the display- Returns:
 - panel with controls for changing symbol settings.
 
 - 
getFXOptionsPane
Get the FX pane with controls to change symbol colours, types and line colours.- Parameters:
 displayName- - the display nameprojector- - the projector associated with the display- Returns:
 - panel with controls for changing symbol settings.
 
 - 
addSymbolModifiers
Add a list of available (AVAILABLE, not used) symbol modifiers to the chooser when it is created. This get's called whenever a symbol chooser if created, but probably needs to be called again whenever a model is changes in case a module is added that contains an additional annotation modifier AFTER the first call to the display. One to worry about!- Parameters:
 psc-
 - 
addAnnotationModifiers
Add symbol modifiers from annotations.- Parameters:
 psc- - the symbol chooser.
 
 -