Package adams.gui.visualization.image
Class SimplePointOverlayFromReport
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.image.AbstractImageOverlay
-
- adams.gui.visualization.image.AbstractPointOverlayFromReport
-
- adams.gui.visualization.image.SimplePointOverlayFromReport
-
- All Implemented Interfaces:
CleanUpHandler
,Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<AbstractImageOverlay>
,SizeOfHandler
,PopupMenuCustomizer<ImagePanel.PaintPanel>
,ImageOverlay
,TypeColorProvider
,Serializable
public class SimplePointOverlayFromReport extends AbstractPointOverlayFromReport
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class adams.gui.visualization.image.AbstractPointOverlayFromReport
AbstractPointOverlayFromReport.LocatedPointsPanel, AbstractPointOverlayFromReport.SelectedObjectFilter
-
-
Field Summary
Fields Modifier and Type Field Description protected int
m_Diameter
the diameter of the circle.-
Fields inherited from class adams.gui.visualization.image.AbstractPointOverlayFromReport
m_LocationsUpdatedListeners, m_Overlays, m_Owner, m_PanelPoints, m_ShowPointPanel, PREFIX_DEFAULT
-
Fields inherited from class adams.gui.visualization.image.AbstractImageOverlay
m_Enabled
-
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 SimplePointOverlayFromReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.String
diameterTipText()
Returns the tip text for this property.protected void
doPaintObjects(ImagePanel.PaintPanel panel, Graphics g, List<Polygon> locations)
Performs the actual painting of the objects.int
getDiameter()
Returns the diameter to use for drawing the circle (if < 1 to draw an ellipse using the rectangle's dimensions).String
globalInfo()
Returns a string describing the object.void
setDiameter(int value)
Sets the diameter to use for drawing the circle (if < 1 to draw an ellipse using the rectangle's dimensions).-
Methods inherited from class adams.gui.visualization.image.AbstractPointOverlayFromReport
addLocationsUpdatedListeners, cleanUp, colorTipText, customizePopupMenu, doImageChanged, doPaintOverlay, getColor, getDefaultLabelAnchor, getDefaultLabelOffsetX, getDefaultLabelOffsetY, getLabelAnchor, getLabelFont, getLabelFormat, getLabelOffsetX, getLabelOffsetY, getLocatedPointsPanel, getOverlays, getOwner, getPredefinedLabels, getPrefix, getShowPointPanel, getTypeColor, getTypeColorProvider, getTypeRegExp, getTypeSuffix, getUseColorsPerType, hasTypeColor, initialize, labelAnchorTipText, labelFontTipText, labelFormatTipText, labelOffsetXTipText, labelOffsetYTipText, notifyLocationsUpdatedListeners, overlayAdded, overlayRemoved, predefinedLabelsTipText, prefixTipText, removeLocationsUpdatedListeners, setColor, setLabelAnchor, setLabelFont, setLabelFormat, setLabelOffsetX, setLabelOffsetY, setPredefinedLabels, setPrefix, setShowPointPanel, setTypeColorProvider, setTypeRegExp, setTypeSuffix, setUseColorsPerType, showPointPanelTipText, typeColorProviderTipText, typeRegExpTipText, typeSuffixTipText, useColorsPerTypeTipText
-
Methods inherited from class adams.gui.visualization.image.AbstractImageOverlay
enabledTipText, imageChanged, isEnabled, paintOverlay, setEnabled, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, 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.Destroyable
destroy
-
Methods inherited from interface adams.gui.visualization.image.ImageOverlay
imageChanged, paintOverlay
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
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 classAbstractPointOverlayFromReport
-
setDiameter
public void setDiameter(int value)
Sets the diameter to use for drawing the circle (if < 1 to draw an ellipse using the rectangle's dimensions).- Parameters:
value
- the diameter, < 1 if using the rectangle's dimensions
-
getDiameter
public int getDiameter()
Returns the diameter to use for drawing the circle (if < 1 to draw an ellipse using the rectangle's dimensions).- Returns:
- the diameter, < 1 if using the rectangle's dimensions
-
diameterTipText
public String diameterTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
doPaintObjects
protected void doPaintObjects(ImagePanel.PaintPanel panel, Graphics g, List<Polygon> locations)
Performs the actual painting of the objects.- Specified by:
doPaintObjects
in classAbstractPointOverlayFromReport
- Parameters:
panel
- the panel this overlay is forg
- the graphics contextlocations
- the locations to paint
-
-