Package annotation.userforms.species
Class FormsAnnotationSpeciesManager
java.lang.Object
tethys.species.DataBlockSpeciesManager
annotation.userforms.species.FormsAnnotationSpeciesManager
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class tethys.species.DataBlockSpeciesManager
unitType, UNKNOWNSPECIES
-
Constructor Summary
ConstructorsConstructorDescriptionFormsAnnotationSpeciesManager
(UserFormAnnotationType userFormAnnotationType, PamDataBlock dataBlock) -
Method Summary
Modifier and TypeMethodDescriptiongetDialogPanel
(SpeciesManagerObserver speciesManagerObserver) Return a (preferably) small dialog panel that can contain options for the species manager.long
getSpeciesCode
(PamDataUnit dataUnit) Gets a species string for a specific data unit, This is abstracted since different detectors store this in non standard ways.Object that contains a list of species codes.boolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings) Methods inherited from class tethys.species.DataBlockSpeciesManager
checkSpeciesMapError, clearMap, getAllSpeciesCodes, getDataBlock, getDatablockSpeciesMap, getDefaultDefaultSpecies, getDefaultSpeciesCode, getSpeciesItem, makeUniqueList, setDatablockSpeciesMap, setDefaultDefaultSpecies, setDefaultSpeciesCode, showSpeciesDialog
-
Constructor Details
-
FormsAnnotationSpeciesManager
public FormsAnnotationSpeciesManager(UserFormAnnotationType userFormAnnotationType, PamDataBlock dataBlock)
-
-
Method Details
-
getSpeciesCodes
Description copied from class:DataBlockSpeciesManager
Object that contains a list of species codes. This may be fluid between configurations and may change during a session, e.g. through the addition of a new click type or changes to the whistle classifier settings.- Specified by:
getSpeciesCodes
in classDataBlockSpeciesManager
- Returns:
- object containing a list of species types.
-
getSpeciesCode
Description copied from class:DataBlockSpeciesManager
Gets a species string for a specific data unit, This is abstracted since different detectors store this in non standard ways. The result of this should be within the set provided by getSpeciesCodes() which can then be used in the DataBlockSpeciesMap to look up an itis code.- Specified by:
getSpeciesCode
in classDataBlockSpeciesManager
- Parameters:
dataUnit
-- Returns:
- A species code for a specific data unit. May be null (e.g. for an unclassified click)
-
getDialogPanel
Description copied from class:DataBlockSpeciesManager
Return a (preferably) small dialog panel that can contain options for the species manager.- Overrides:
getDialogPanel
in classDataBlockSpeciesManager
- Returns:
-
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
-
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
-
restoreSettings
- Specified by:
restoreSettings
in 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
-
getUserFormAnnotationType
- Returns:
- the userFormAnnotationType
-
getSpeciesSettings
- Returns:
- the speciesSettings
-