Package annotation.handler
Class AnnotationChoiceHandler
java.lang.Object
annotation.handler.AnnotationHandler
annotation.handler.AnnotationChoiceHandler
- Direct Known Subclasses:
GroupAnnotationHandler
,MapGroupAnnotationHandler
,OneStopAnnotationHandler
,PrintScreenAnnotationChoiceHandler
,SonobuoyAnnotationHandler
,SpectrogramMarkAnnotationHandler
Annotation handler that provides functionality for the programmer to set things
up so that the user can chose which types of annotation to use.
- Author:
- Doug
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSQLLogging
(MarkDataBlock dataBlock) createAnnotationEditMenu
(PamDataUnit dataUnit) Create a menu for editing annotations for a data unit.abstract AnnotationChoices
int
void
Call this after settings have been loaded to load individual settings for the various annotation types.boolean
updateAnnotation
(PamDataUnit pamDataUnit, DataAnnotationType annotationType) Update an existing annotation - or create a blank one if there isn't already one in the data unit.Methods inherited from class annotation.handler.AnnotationHandler
addAnnotation, addAnnotations, addAnnotationSqlAddons, addAnnotationType, annotateDataUnit, findAnnotationType, findAnnotationTypeFromCode, getAnnotationMenuItems, getAvailableAnnotationTypes, removeAnnotation, removeAnnotations, removeAnnotationType, updateAnnotations
-
Constructor Details
-
AnnotationChoiceHandler
-
-
Method Details
-
getAnnotationChoices
-
getSelectionPanel
- Returns:
- a dialog panel that can be used in Swing dialogs.
-
getNumUsedAnnotationTypes
public int getNumUsedAnnotationTypes()- Overrides:
getNumUsedAnnotationTypes
in classAnnotationHandler
- Returns:
- the number of used annotation types.
-
getUsedAnnotationTypes
- Overrides:
getUsedAnnotationTypes
in classAnnotationHandler
- Returns:
- a list of selected annotation types (which is the same as the list of available annotation types unless this is overridden in a handler that offers choice).
-
loadAnnotationChoices
public void loadAnnotationChoices()Call this after settings have been loaded to load individual settings for the various annotation types. -
addSQLLogging
-
createAnnotationEditMenu
Create a menu for editing annotations for a data unit.- Overrides:
createAnnotationEditMenu
in classAnnotationHandler
- Parameters:
dataUnit
- Existing data unit- Returns:
- menu item.
-
updateAnnotation
Update an existing annotation - or create a blank one if there isn't already one in the data unit.- Overrides:
updateAnnotation
in classAnnotationHandler
- Parameters:
pamDataUnit
-annotationType
-
-