Package annotation.localise.targetmotion
Class TMAnnotationType
- Direct Known Subclasses:
CTMAnntoationType
Annotation type for target motion analysis. Target motion analysis requires a
parent data unit which has multiple sub units.
- Author:
- Jamie Macaulay
-
Field Summary
Fields inherited from class annotation.DataAnnotationType
SHORTIDCODELENGTH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoAnnotate
(PamDataUnit pamDataUnit) Automatically annotate the data unit with this annotation.boolean
canAnnotate
(Class dataUnitType) Find out whether or not a particular type of data can be annotatedboolean
findLocaliserModel
(String modelName) Get an optional AnnotationBinaryHandler which can be used to add the annotation information for binary files and also read data back from them.Get a dialog component that can be incorporated into a larger dialog.A short identifying code which MUST be unique to the data annotation and MUST be four characters long.Get an SQLLogging add on.boolean
void
setAnnotationOptions
(AnnotationOptions annotationOptions) Methods inherited from class annotation.DataAnnotationType
getDataSelector, getSymbolModifier, getTargetDataBlock, isAnnotating, setTargetDataBlock, toString, toString
-
Field Details
-
TMANNOTATIONNAME
- See Also:
-
-
Constructor Details
-
TMAnnotationType
public TMAnnotationType()
-
-
Method Details
-
getAnnotationName
- Specified by:
getAnnotationName
in classDataAnnotationType<TMAnnotation>
-
getAnnotationClass
- Specified by:
getAnnotationClass
in classDataAnnotationType<TMAnnotation>
- Returns:
- Class type for the annotations
-
canAnnotate
Description copied from class:DataAnnotationType
Find out whether or not a particular type of data can be annotated- Specified by:
canAnnotate
in classDataAnnotationType<TMAnnotation>
- Parameters:
dataUnitType
- Class of a type of data unit. Can be null in which case annotation can be stand alone.- Returns:
- true if the data unit Class can be annotated.
-
canAutoAnnotate
public boolean canAutoAnnotate()- Overrides:
canAutoAnnotate
in classDataAnnotationType<TMAnnotation>
- Returns:
- True if annotation can be automatic (i.e. calculated rather than input by user).
-
getShortIdCode
Description copied from class:DataAnnotationType
A short identifying code which MUST be unique to the data annotation and MUST be four characters long. Classes can override this with something even more cryptic so long as it remains unique.- Overrides:
getShortIdCode
in classDataAnnotationType<TMAnnotation>
- Returns:
- a four character id string.
-
autoAnnotate
Description copied from class:DataAnnotationType
Automatically annotate the data unit with this annotation.- Overrides:
autoAnnotate
in classDataAnnotationType<TMAnnotation>
- Parameters:
pamDataUnit
- data unit to annotate- Returns:
- the annotation (though this should have already been added to the data unit).
-
getSQLLoggingAddon
Description copied from class:DataAnnotationType
Get an SQLLogging add on. For stand alone annotations, this will be used to generate a stand alone database table. For annotations of existing data this will be used to add additional columns to the existing data tables.- Overrides:
getSQLLoggingAddon
in classDataAnnotationType<TMAnnotation>
- Returns:
- An SQLLoggingAddon or null if SQL logging unavailable for this type of annotation.
-
getBinaryHandler
Description copied from class:DataAnnotationType
Get an optional AnnotationBinaryHandler which can be used to add the annotation information for binary files and also read data back from them.- Overrides:
getBinaryHandler
in classDataAnnotationType<TMAnnotation>
- Returns:
- handler for binary data i/o.
-
getDialogPanel
Description copied from class:DataAnnotationType
Get a dialog component that can be incorporated into a larger dialog.Note that this is for setting the data for a specific annotation, NOT the dialog for setting options controlling how the annotation type works.
- Overrides:
getDialogPanel
in classDataAnnotationType<TMAnnotation>
- Returns:
- a dialog panel (contains a component = a few other functions).
-
getSettingsPanel
- Overrides:
getSettingsPanel
in classDataAnnotationType<TMAnnotation>
-
hasSettingsPanel
public boolean hasSettingsPanel()- Overrides:
hasSettingsPanel
in classDataAnnotationType<TMAnnotation>
-
getAnnotationOptions
- Overrides:
getAnnotationOptions
in classDataAnnotationType<TMAnnotation>
- Returns:
- the annotationOptions
-
setAnnotationOptions
- Overrides:
setAnnotationOptions
in classDataAnnotationType<TMAnnotation>
- Parameters:
annotationOptions
- the annotationOptions to set
-
findLocaliserModel
-