Class AbstractPositionableHeatmapOverlay
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.image.AbstractImageOverlay
-
- adams.gui.visualization.heatmap.overlay.AbstractHeatmapOverlay
-
- adams.gui.visualization.heatmap.overlay.AbstractPositionableHeatmapOverlay
-
- All Implemented Interfaces:
adams.core.CleanUpHandler
,adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.ShallowCopySupporter<adams.gui.visualization.image.AbstractImageOverlay>
,adams.core.SizeOfHandler
,adams.gui.visualization.image.ImageOverlay
,Serializable
- Direct Known Subclasses:
AbstractPositionableHeatmapOverlayWithDimensions
public abstract class AbstractPositionableHeatmapOverlay extends AbstractHeatmapOverlay
Ancestor for overlays that can be positioned on the heatmap panel.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
m_X
the X position of the overlay.protected int
m_Y
the Y position of the overlay.-
Fields inherited from class adams.gui.visualization.heatmap.overlay.AbstractHeatmapOverlay
m_HeatmapPanel
-
-
Constructor Summary
Constructors Constructor Description AbstractPositionableHeatmapOverlay()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.protected void
doPaintOverlay(adams.gui.visualization.image.ImagePanel.PaintPanel panel, Graphics g)
Computes the actual coordinates before doing the actual painting.protected abstract void
doPaintOverlay(adams.gui.visualization.image.ImagePanel.PaintPanel panel, Graphics g, int x, int y)
Performs the actual painting.protected int
getDefaultX()
Returns the default X position for the overlay.protected int
getDefaultY()
Returns the default Y position for the overlay.protected int
getHeight()
Returns the height.protected int
getWidth()
Returns the width.int
getX()
Returns the currently set X position of the overlay.int
getY()
Returns the currently set Y position of the overlay.void
setX(int value)
Sets the X position of the overlay.void
setY(int value)
Sets the Y position of the overlay.String
xTipText()
Returns the tip text for this property.String
yTipText()
Returns the tip text for this property.-
Methods inherited from class adams.gui.visualization.heatmap.overlay.AbstractHeatmapOverlay
getHeatmapPanel, paintOverlay, setHeatmapPanel
-
Methods inherited from class adams.gui.visualization.image.AbstractImageOverlay
cleanUp, doImageChanged, enabledTipText, imageChanged, isEnabled, overlayAdded, overlayRemoved, setEnabled, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classadams.gui.visualization.image.AbstractImageOverlay
-
getDefaultX
protected int getDefaultX()
Returns the default X position for the overlay.- Returns:
- the default X position
-
setX
public void setX(int value)
Sets the X position of the overlay.- Parameters:
value
- the X position
-
getX
public int getX()
Returns the currently set X position of the overlay.- Returns:
- the X position
-
xTipText
public String xTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDefaultY
protected int getDefaultY()
Returns the default Y position for the overlay.- Returns:
- the default Y position
-
setY
public void setY(int value)
Sets the Y position of the overlay.- Parameters:
value
- the Y position
-
getY
public int getY()
Returns the currently set Y position of the overlay.- Returns:
- the Y position
-
yTipText
public String yTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getHeight
protected int getHeight()
Returns the height.- Returns:
- the height
-
getWidth
protected int getWidth()
Returns the width.- Returns:
- the width
-
doPaintOverlay
protected abstract void doPaintOverlay(adams.gui.visualization.image.ImagePanel.PaintPanel panel, Graphics g, int x, int y)
Performs the actual painting.- Parameters:
panel
- the panel this overlay is forg
- the graphics contextx
- the actual x coordinatey
- the actual y coordinate
-
doPaintOverlay
protected void doPaintOverlay(adams.gui.visualization.image.ImagePanel.PaintPanel panel, Graphics g)
Computes the actual coordinates before doing the actual painting.- Specified by:
doPaintOverlay
in classadams.gui.visualization.image.AbstractImageOverlay
- Parameters:
panel
- the panel this overlay is forg
- the graphics context- See Also:
doPaintOverlay(PaintPanel, Graphics, int, int)
-
-