Package adams.flow.transformer.draw
Class AnnotationsAndPredictions
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.draw.AbstractDrawOperation
-
- adams.flow.transformer.draw.AnnotationsAndPredictions
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,QuickInfoSupporter,SizeOfHandler,Serializable
public class AnnotationsAndPredictions extends AbstractDrawOperation
Overlays the image with annotations and predictions from storage with their respective draw operations.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-storage-annotations <adams.flow.control.StorageName> (property: storageAnnotations) The storage item containing the annotations report. default: annotations
-draw-annotations <adams.flow.transformer.draw.AbstractDrawOperation> (property: drawAnnotations) The draw operation to apply to the annotations. default: adams.flow.transformer.draw.ObjectLocationsFromReport -color #0000ff -type-color-provider adams.gui.visualization.core.DefaultColorProvider -label-format \"\"
-storage-predictions <adams.flow.control.StorageName> (property: storagePredictions) The storage item containing the predictions report. default: predictions
-draw-predictions <adams.flow.transformer.draw.AbstractDrawOperation> (property: drawPredictions) The draw operation to apply to the predictions. default: adams.flow.transformer.draw.ObjectLocationsFromReport -type-color-provider adams.gui.visualization.core.DefaultColorProvider -label-format {score}- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractDrawOperationm_DrawAnnotationsthe draw operation to use for the annotations.protected AbstractDrawOperationm_DrawPredictionsthe draw operation to use for the predictions.protected StorageNamem_StorageAnnotationsthe storage item with the annotations report.protected StorageNamem_StoragePredictionsthe storage item with the predictions report.-
Fields inherited from class adams.flow.transformer.draw.AbstractDrawOperation
m_Owner
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AnnotationsAndPredictions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stringcheck(BufferedImageContainer image)Checks the image.voiddefineOptions()Adds options to the internal list of options.protected StringdoDraw(BufferedImageContainer image)Performs the actual draw operation.StringdrawAnnotationsTipText()Returns the tip text for this property.StringdrawPredictionsTipText()Returns the tip text for this property.protected AbstractDrawOperationgetDefaultDrawAnnotations()Returns the default draw operation setup for the annotations.protected AbstractDrawOperationgetDefaultDrawPredictions()Returns the default draw operation setup for the predictions.AbstractDrawOperationgetDrawAnnotations()Returns the draw operation for the annotations.AbstractDrawOperationgetDrawPredictions()Returns the draw operation for the predictions.StorageNamegetStorageAnnotations()Returns the storage item with the annotations report.StorageNamegetStoragePredictions()Returns the storage item with the predictions report.StringglobalInfo()Returns a string describing the object.voidsetDrawAnnotations(AbstractDrawOperation value)Sets the draw operation for the annotations.voidsetDrawPredictions(AbstractDrawOperation value)Sets the draw operation for the predictions.voidsetStorageAnnotations(StorageName value)Sets the storage item with the annotations report.voidsetStoragePredictions(StorageName value)Sets the storage item with the predictions report.StringstorageAnnotationsTipText()Returns the tip text for this property.StringstoragePredictionsTipText()Returns the tip text for this property.-
Methods inherited from class adams.flow.transformer.draw.AbstractDrawOperation
draw, getOwner, getQuickInfo, setOwner
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_StorageAnnotations
protected StorageName m_StorageAnnotations
the storage item with the annotations report.
-
m_DrawAnnotations
protected AbstractDrawOperation m_DrawAnnotations
the draw operation to use for the annotations.
-
m_StoragePredictions
protected StorageName m_StoragePredictions
the storage item with the predictions report.
-
m_DrawPredictions
protected AbstractDrawOperation m_DrawPredictions
the draw operation to use for the predictions.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
setStorageAnnotations
public void setStorageAnnotations(StorageName value)
Sets the storage item with the annotations report.- Parameters:
value- the storage item
-
getStorageAnnotations
public StorageName getStorageAnnotations()
Returns the storage item with the annotations report.- Returns:
- the storage item
-
storageAnnotationsTipText
public String storageAnnotationsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDefaultDrawAnnotations
protected AbstractDrawOperation getDefaultDrawAnnotations()
Returns the default draw operation setup for the annotations.- Returns:
- the default
-
setDrawAnnotations
public void setDrawAnnotations(AbstractDrawOperation value)
Sets the draw operation for the annotations.- Parameters:
value- the operation
-
getDrawAnnotations
public AbstractDrawOperation getDrawAnnotations()
Returns the draw operation for the annotations.- Returns:
- the operation
-
drawAnnotationsTipText
public String drawAnnotationsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setStoragePredictions
public void setStoragePredictions(StorageName value)
Sets the storage item with the predictions report.- Parameters:
value- the storage item
-
getStoragePredictions
public StorageName getStoragePredictions()
Returns the storage item with the predictions report.- Returns:
- the storage item
-
storagePredictionsTipText
public String storagePredictionsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDefaultDrawPredictions
protected AbstractDrawOperation getDefaultDrawPredictions()
Returns the default draw operation setup for the predictions.- Returns:
- the default
-
setDrawPredictions
public void setDrawPredictions(AbstractDrawOperation value)
Sets the draw operation for the predictions.- Parameters:
value- the operation
-
getDrawPredictions
public AbstractDrawOperation getDrawPredictions()
Returns the draw operation for the predictions.- Returns:
- the operation
-
drawPredictionsTipText
public String drawPredictionsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
check
protected String check(BufferedImageContainer image)
Checks the image.- Overrides:
checkin classAbstractDrawOperation- Parameters:
image- the image to check- Returns:
- null if OK, otherwise error message
-
doDraw
protected String doDraw(BufferedImageContainer image)
Performs the actual draw operation.- Specified by:
doDrawin classAbstractDrawOperation- Parameters:
image- the image to draw on- Returns:
- null if OK, otherwise error message
-
-