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 classSideBySide.SideBySidePanelPanel for displaying the annotations/predictions side-by-side.
-
Field Summary
Fields Modifier and Type Field Description protected ImageOverlaym_AnnotationsOverlaythe image overlays for the annotations.protected ImageOverlaym_PredictionsOverlaythe image overlays 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 SideBySide()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringannotationsOverlayTipText()Returns the tip text for this property.voiddefineOptions()Adds options to the internal list of options.AbstractComparisonPanelgenerate(CompareObjectLocations owner)Generates the comparison panel.ImageOverlaygetAnnotationsOverlay()Returns the overlay to use for the annotations.ImageOverlaygetPredictionsOverlay()Returns the overlay to use for the predictions.doublegetZoom()Returns the zoom level in percent.StringglobalInfo()Returns a string describing the object.StringpredictionsOverlayTipText()Returns the tip text for this property.voidsetAnnotationsOverlay(ImageOverlay value)Sets the overlay to use for the annotations.voidsetPredictionsOverlay(ImageOverlay value)Sets the overlay 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_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:
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
-
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:
generatein classAbstractComparison- Parameters:
owner- the owning panel- Returns:
- the panel
-
-