Package annotation.classifier
Class BaseClassificationAnnotationType
java.lang.Object
annotation.DataAnnotationType<BaseClassificationAnnotation>
annotation.classifier.BaseClassificationAnnotationType
public class BaseClassificationAnnotationType
extends DataAnnotationType<BaseClassificationAnnotation>
-
Field Summary
Fields inherited from class annotation.DataAnnotationType
SHORTIDCODELENGTH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canAnnotate
(Class dataUnitType) Find out whether or not a particular type of data can be annotatedGet an optional AnnotationBinaryHandler which can be used to add the annotation information for binary files and also read data back from them.getDataSelectCreator
(String selectorName, boolean allowScores) A short identifying code which MUST be unique to the data annotation and MUST be four characters long.getSymbolModifier
(PamSymbolChooser symbolChooser) Some annotations may be able to set the type of symbol.toString
(BaseClassificationAnnotation dataAnnotation) Get the annotation as a string for use in tables, tool tips, etc.Methods inherited from class annotation.DataAnnotationType
autoAnnotate, canAutoAnnotate, getAnnotationOptions, getDataSelector, getDialogPanel, getSettingsPanel, getSQLLoggingAddon, getTargetDataBlock, hasSettingsPanel, isAnnotating, setAnnotationOptions, setTargetDataBlock, toString
-
Constructor Details
-
BaseClassificationAnnotationType
-
-
Method Details
-
getAnnotationName
- Specified by:
getAnnotationName
in classDataAnnotationType<BaseClassificationAnnotation>
-
getAnnotationClass
- Specified by:
getAnnotationClass
in classDataAnnotationType<BaseClassificationAnnotation>
- 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<BaseClassificationAnnotation>
- 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.
-
toString
Description copied from class:DataAnnotationType
Get the annotation as a string for use in tables, tool tips, etc.- Overrides:
toString
in classDataAnnotationType<BaseClassificationAnnotation>
- Parameters:
dataAnnotation
- Data Annotation- Returns:
- String representation of the data
-
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<BaseClassificationAnnotation>
- Returns:
- handler for binary data i/o.
-
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<BaseClassificationAnnotation>
- Returns:
- a four character id string.
-
getSymbolModifier
Description copied from class:DataAnnotationType
Some annotations may be able to set the type of symbol. This will be accessed from a datablocks SymbolManager- Overrides:
getSymbolModifier
in classDataAnnotationType<BaseClassificationAnnotation>
- Returns:
-
getDataSelectCreator
-