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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddSQLLogging(MarkDataBlock dataBlock) createAnnotationEditMenu(PamDataUnit dataUnit) Create a menu for editing annotations for a data unit.abstract AnnotationChoicesintvoidCall this after settings have been loaded to load individual settings for the various annotation types.booleanupdateAnnotation(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, getPamDataBlock, 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:
 getNumUsedAnnotationTypesin classAnnotationHandler- Returns:
 - the number of used annotation types.
 
 - 
getUsedAnnotationTypes
- Overrides:
 getUsedAnnotationTypesin 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:
 createAnnotationEditMenuin 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:
 updateAnnotationin classAnnotationHandler- Parameters:
 pamDataUnit-annotationType-
 
 -