Package adams.gui.visualization.image
Class HighlightLocations
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.image.AbstractImageOverlay
-
- adams.gui.visualization.image.HighlightLocations
-
- All Implemented Interfaces:
CleanUpHandler,Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,ShallowCopySupporter<AbstractImageOverlay>,SizeOfHandler,ImageOverlay,Serializable
public class HighlightLocations extends AbstractImageOverlay
Overlay for highlighting points on an image.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Colorm_Colorthe color of the circle.protected intm_Diameterthe diameter of the circle.protected List<Point>m_Locationsthe list of locations to highlight.protected floatm_StrokeThicknessthe thickness of the stroke.-
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 HighlightLocations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcolorTipText()Returns the tip text for this property.voiddefineOptions()Adds options to the internal list of options.StringdiameterTipText()Returns the tip text for this property.protected voiddoImageChanged(ImagePanel.PaintPanel panel)Notifies the overlay that the image has changed.protected voiddoPaintOverlay(ImagePanel.PaintPanel panel, Graphics g)Performs the actual painting of the overlay.ColorgetColor()Returns the color of the circles.intgetDiameter()Returns the diameter of the circles.List<Point>getLocations()Returns the current locations that are being highlighted.floatgetStrokeThickness()Returns the current stroke thickness.StringglobalInfo()Returns a string describing the object.protected voidinitialize()Initializes the members.voidsetColor(Color value)Sets the color of the circles.voidsetDiameter(int value)Sets the diameter of the circles.voidsetLocations(List<Point> value)Sets the locations to highlight.voidsetStrokeThickness(float value)Sets the stroke thickness to use.StringstrokeThicknessTipText()Returns the tip text for this property.-
Methods inherited from class adams.gui.visualization.image.AbstractImageOverlay
cleanUp, enabledTipText, imageChanged, isEnabled, overlayAdded, overlayRemoved, 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.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:
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 classAbstractImageOverlay
-
setStrokeThickness
public void setStrokeThickness(float value)
Sets the stroke thickness to use.- Parameters:
value- the thickness
-
getStrokeThickness
public float getStrokeThickness()
Returns the current stroke thickness.- Returns:
- the thickness
-
strokeThicknessTipText
public String strokeThicknessTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setDiameter
public void setDiameter(int value)
Sets the diameter of the circles.- Parameters:
value- the diameter in pixels
-
getDiameter
public int getDiameter()
Returns the diameter of the circles.- Returns:
- the diameter in pixels
-
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.
-
setColor
public void setColor(Color value)
Sets the color of the circles.- Parameters:
value- the color
-
getColor
public Color getColor()
Returns the color of the circles.- Returns:
- the color
-
colorTipText
public String colorTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initializein classAbstractOptionHandler
-
setLocations
public void setLocations(List<Point> value)
Sets the locations to highlight.- Parameters:
value- the locations
-
getLocations
public List<Point> getLocations()
Returns the current locations that are being highlighted.- Returns:
- the locations
-
doImageChanged
protected void doImageChanged(ImagePanel.PaintPanel panel)
Notifies the overlay that the image has changed.- Specified by:
doImageChangedin classAbstractImageOverlay- Parameters:
panel- the panel this overlay belongs to
-
doPaintOverlay
protected void doPaintOverlay(ImagePanel.PaintPanel panel, Graphics g)
Performs the actual painting of the overlay.- Specified by:
doPaintOverlayin classAbstractImageOverlay- Parameters:
panel- the panel this overlay is forg- the graphics context
-
-