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 classCombined.CombinedPanelDisplays the annotations/predictions in a single .
-
Field Summary
Fields Modifier and Type Field Description protected Colorm_AnnotationsColorthe color for the annotations.protected Fontm_LabelFontthe label font.protected Stringm_LabelFormatthe label format.protected ObjectOverlapm_ObjectOverlapthe algorithm for calculating the overlapping objects.protected Colorm_OverlapColorCorrectthe color for the correct overlaps.protected Colorm_OverlapColorIncorrectthe color for the incorrect overlaps.protected Colorm_PredictionsColorthe color for the predictions.protected doublem_Zoomthe 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 StringannotationsColorTipText()Returns the tip text for this property.voiddefineOptions()Adds options to the internal list of options.AbstractComparisonPanelgenerate(CompareObjectLocations owner)Generates the comparison panel.ColorgetAnnotationsColor()Returns the color to use for the annotations.FontgetLabelFont()Returns the label font.StringgetLabelFormat()Returns the label format.ObjectOverlapgetObjectOverlap()Returns the algorithm to use for determining overlapping objects.ColorgetOverlapColorCorrect()Returns the color to use for the overlapping objects with matching labels.ColorgetOverlapColorIncorrect()Returns the color to use for the overlapping objects with matching labels.ColorgetPredictionsColor()Returns the color to use for the predictions.doublegetZoom()Returns the zoom level in percent.StringglobalInfo()Returns a string describing the object.StringlabelFontTipText()Returns the tip text for this property.StringlabelFormatTipText()Returns the tip text for this property.StringobjectOverlapTipText()Returns the tip text for this property.StringoverlapColorCorrectTipText()Returns the tip text for this property.StringoverlapColorIncorrectTipText()Returns the tip text for this property.StringpredictionsColorTipText()Returns the tip text for this property.voidsetAnnotationsColor(Color value)Sets the color to use for the annotations.voidsetLabelFont(Font value)Sets the label font.voidsetLabelFormat(String value)Sets the label format.voidsetObjectOverlap(ObjectOverlap value)Sets the algorithm to use for determining overlapping objects.voidsetOverlapColorCorrect(Color value)Sets the color to use for the overlapping objects with matching labels.voidsetOverlapColorIncorrect(Color value)Sets the color to use for the overlapping objects with matching labels.voidsetPredictionsColor(Color value)Sets the color to use for the predictions.voidsetZoom(double value)Sets the zoom level in percent (0-1600).StringzoomTipText()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:
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
-
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:
generatein classAbstractComparison- Parameters:
owner- the owning panel- Returns:
- the panel
-
-