Class SideBySide
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.compareobjectlocations.AbstractComparison
-
- adams.flow.transformer.compareobjectlocations.SideBySide
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,Serializable
public class SideBySide extends AbstractComparison
Generates a side-by-side comparison.- 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
SideBySide.SideBySidePanel
Panel for displaying the annotations/predictions side-by-side.
-
Field Summary
Fields Modifier and Type Field Description protected ImageOverlay
m_AnnotationsOverlay
the image overlays for the annotations.protected ImageOverlay
m_PredictionsOverlay
the image overlays 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 SideBySide()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
annotationsOverlayTipText()
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.ImageOverlay
getAnnotationsOverlay()
Returns the overlay to use for the annotations.ImageOverlay
getPredictionsOverlay()
Returns the overlay to use for the predictions.double
getZoom()
Returns the zoom level in percent.String
globalInfo()
Returns a string describing the object.String
predictionsOverlayTipText()
Returns the tip text for this property.void
setAnnotationsOverlay(ImageOverlay value)
Sets the overlay to use for the annotations.void
setPredictionsOverlay(ImageOverlay value)
Sets the overlay 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_AnnotationsOverlay
protected ImageOverlay m_AnnotationsOverlay
the image overlays for the annotations.
-
m_PredictionsOverlay
protected ImageOverlay m_PredictionsOverlay
the image overlays for the predictions.
-
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
-
setAnnotationsOverlay
public void setAnnotationsOverlay(ImageOverlay value)
Sets the overlay to use for the annotations.- Parameters:
value
- the overlay
-
getAnnotationsOverlay
public ImageOverlay getAnnotationsOverlay()
Returns the overlay to use for the annotations.- Returns:
- the overlay
-
annotationsOverlayTipText
public String annotationsOverlayTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setPredictionsOverlay
public void setPredictionsOverlay(ImageOverlay value)
Sets the overlay to use for the predictions.- Parameters:
value
- the overlay
-
getPredictionsOverlay
public ImageOverlay getPredictionsOverlay()
Returns the overlay to use for the predictions.- Returns:
- the overlay
-
predictionsOverlayTipText
public String predictionsOverlayTipText()
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
-
-