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 AbstractDrawOperation
m_DrawAnnotations
the draw operation to use for the annotations.protected AbstractDrawOperation
m_DrawPredictions
the draw operation to use for the predictions.protected StorageName
m_StorageAnnotations
the storage item with the annotations report.protected StorageName
m_StoragePredictions
the 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 String
check(BufferedImageContainer image)
Checks the image.void
defineOptions()
Adds options to the internal list of options.protected String
doDraw(BufferedImageContainer image)
Performs the actual draw operation.String
drawAnnotationsTipText()
Returns the tip text for this property.String
drawPredictionsTipText()
Returns the tip text for this property.protected AbstractDrawOperation
getDefaultDrawAnnotations()
Returns the default draw operation setup for the annotations.protected AbstractDrawOperation
getDefaultDrawPredictions()
Returns the default draw operation setup for the predictions.AbstractDrawOperation
getDrawAnnotations()
Returns the draw operation for the annotations.AbstractDrawOperation
getDrawPredictions()
Returns the draw operation for the predictions.StorageName
getStorageAnnotations()
Returns the storage item with the annotations report.StorageName
getStoragePredictions()
Returns the storage item with the predictions report.String
globalInfo()
Returns a string describing the object.void
setDrawAnnotations(AbstractDrawOperation value)
Sets the draw operation for the annotations.void
setDrawPredictions(AbstractDrawOperation value)
Sets the draw operation for the predictions.void
setStorageAnnotations(StorageName value)
Sets the storage item with the annotations report.void
setStoragePredictions(StorageName value)
Sets the storage item with the predictions report.String
storageAnnotationsTipText()
Returns the tip text for this property.String
storagePredictionsTipText()
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:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in 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:
check
in 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:
doDraw
in classAbstractDrawOperation
- Parameters:
image
- the image to draw on- Returns:
- null if OK, otherwise error message
-
-