Class Combined
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.compareobjectlocations.AbstractComparison
-
- adams.flow.transformer.compareobjectlocations.Combined
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,Serializable
public class Combined extends AbstractComparison
Displays the annotations and predictions with different colors.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Combined.CombinedPanel
Displays the annotations/predictions in a single .
-
Field Summary
Fields Modifier and Type Field Description protected Color
m_AnnotationsColor
the color for the annotations.protected Font
m_LabelFont
the label font.protected String
m_LabelFormat
the label format.protected ObjectOverlap
m_ObjectOverlap
the algorithm for calculating the overlapping objects.protected Color
m_OverlapColorCorrect
the color for the correct overlaps.protected Color
m_OverlapColorIncorrect
the color for the incorrect overlaps.protected Color
m_PredictionsColor
the color for the predictions.protected double
m_Zoom
the zoom level.-
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 Combined()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
annotationsColorTipText()
Returns the tip text for this property.void
defineOptions()
Adds options to the internal list of options.AbstractComparisonPanel
generate(CompareObjectLocations owner)
Generates the comparison panel.Color
getAnnotationsColor()
Returns the color to use for the annotations.Font
getLabelFont()
Returns the label font.String
getLabelFormat()
Returns the label format.ObjectOverlap
getObjectOverlap()
Returns the algorithm to use for determining overlapping objects.Color
getOverlapColorCorrect()
Returns the color to use for the overlapping objects with matching labels.Color
getOverlapColorIncorrect()
Returns the color to use for the overlapping objects with matching labels.Color
getPredictionsColor()
Returns the color to use for the predictions.double
getZoom()
Returns the zoom level in percent.String
globalInfo()
Returns a string describing the object.String
labelFontTipText()
Returns the tip text for this property.String
labelFormatTipText()
Returns the tip text for this property.String
objectOverlapTipText()
Returns the tip text for this property.String
overlapColorCorrectTipText()
Returns the tip text for this property.String
overlapColorIncorrectTipText()
Returns the tip text for this property.String
predictionsColorTipText()
Returns the tip text for this property.void
setAnnotationsColor(Color value)
Sets the color to use for the annotations.void
setLabelFont(Font value)
Sets the label font.void
setLabelFormat(String value)
Sets the label format.void
setObjectOverlap(ObjectOverlap value)
Sets the algorithm to use for determining overlapping objects.void
setOverlapColorCorrect(Color value)
Sets the color to use for the overlapping objects with matching labels.void
setOverlapColorIncorrect(Color value)
Sets the color to use for the overlapping objects with matching labels.void
setPredictionsColor(Color value)
Sets the color to use for the predictions.void
setZoom(double value)
Sets the zoom level in percent (0-1600).String
zoomTipText()
Returns the tip text for this property.-
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_AnnotationsColor
protected Color m_AnnotationsColor
the color for the annotations.
-
m_PredictionsColor
protected Color m_PredictionsColor
the color for the predictions.
-
m_ObjectOverlap
protected ObjectOverlap m_ObjectOverlap
the algorithm for calculating the overlapping objects.
-
m_OverlapColorCorrect
protected Color m_OverlapColorCorrect
the color for the correct overlaps.
-
m_OverlapColorIncorrect
protected Color m_OverlapColorIncorrect
the color for the incorrect overlaps.
-
m_LabelFormat
protected String m_LabelFormat
the label format.
-
m_LabelFont
protected Font m_LabelFont
the label font.
-
m_Zoom
protected double m_Zoom
the zoom level.
-
-
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
-
setAnnotationsColor
public void setAnnotationsColor(Color value)
Sets the color to use for the annotations.- Parameters:
value
- the color
-
getAnnotationsColor
public Color getAnnotationsColor()
Returns the color to use for the annotations.- Returns:
- the color
-
annotationsColorTipText
public String annotationsColorTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setPredictionsColor
public void setPredictionsColor(Color value)
Sets the color to use for the predictions.- Parameters:
value
- the color
-
getPredictionsColor
public Color getPredictionsColor()
Returns the color to use for the predictions.- Returns:
- the color
-
predictionsColorTipText
public String predictionsColorTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setObjectOverlap
public void setObjectOverlap(ObjectOverlap value)
Sets the algorithm to use for determining overlapping objects.- Parameters:
value
- the algorithm
-
getObjectOverlap
public ObjectOverlap getObjectOverlap()
Returns the algorithm to use for determining overlapping objects.- Returns:
- the algorithm
-
objectOverlapTipText
public String objectOverlapTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setOverlapColorCorrect
public void setOverlapColorCorrect(Color value)
Sets the color to use for the overlapping objects with matching labels.- Parameters:
value
- the color
-
getOverlapColorCorrect
public Color getOverlapColorCorrect()
Returns the color to use for the overlapping objects with matching labels.- Returns:
- the color
-
overlapColorCorrectTipText
public String overlapColorCorrectTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setOverlapColorIncorrect
public void setOverlapColorIncorrect(Color value)
Sets the color to use for the overlapping objects with matching labels.- Parameters:
value
- the color
-
getOverlapColorIncorrect
public Color getOverlapColorIncorrect()
Returns the color to use for the overlapping objects with matching labels.- Returns:
- the color
-
overlapColorIncorrectTipText
public String overlapColorIncorrectTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setLabelFormat
public void setLabelFormat(String value)
Sets the label format.- Parameters:
value
- the label format
-
getLabelFormat
public String getLabelFormat()
Returns the label format.- Returns:
- the label format
-
labelFormatTipText
public String labelFormatTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setLabelFont
public void setLabelFont(Font value)
Sets the label font.- Parameters:
value
- the label font
-
getLabelFont
public Font getLabelFont()
Returns the label font.- Returns:
- the label font
-
labelFontTipText
public String labelFontTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setZoom
public void setZoom(double value)
Sets the zoom level in percent (0-1600).- Parameters:
value
- the zoom, -1 to fit window, or 0-1600
-
getZoom
public double getZoom()
Returns the zoom level in percent.- Returns:
- the zoom
-
zoomTipText
public String zoomTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
generate
public AbstractComparisonPanel generate(CompareObjectLocations owner)
Generates the comparison panel.- Specified by:
generate
in classAbstractComparison
- Parameters:
owner
- the owning panel- Returns:
- the panel
-
-