Class AbstractPositionableHeatmapOverlayWithDimensions
- 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
-
- adams.gui.visualization.heatmap.overlay.AbstractPositionableHeatmapOverlayWithDimensions
-
- 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:
TextOverlay
public abstract class AbstractPositionableHeatmapOverlayWithDimensions extends AbstractPositionableHeatmapOverlay
Ancestor for overlays that can be positioned on the heatmap panel and support dimensions.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intm_Heightthe height of the overlay.protected intm_Widththe width of the overlay.-
Fields inherited from class adams.gui.visualization.heatmap.overlay.AbstractPositionableHeatmapOverlay
m_X, m_Y
-
Fields inherited from class adams.gui.visualization.heatmap.overlay.AbstractHeatmapOverlay
m_HeatmapPanel
-
-
Constructor Summary
Constructors Constructor Description AbstractPositionableHeatmapOverlayWithDimensions()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.protected voiddoPaintOverlay(adams.gui.visualization.image.ImagePanel.PaintPanel panel, Graphics g)Computes the actual coordinates before doing the actual painting.protected abstract voiddoPaintOverlay(adams.gui.visualization.image.ImagePanel.PaintPanel panel, Graphics g, int x, int y)Performs the actual painting.protected abstract intgetDefaultHeight()Returns the default height for the overlay.protected abstract intgetDefaultWidth()Returns the default width for the overlay.intgetHeight()Returns the currently set height of the overlay.intgetWidth()Returns the currently set width of the overlay.abstract StringheightTipText()Returns the tip text for this property.voidsetHeight(int value)Sets the height of the overlay.voidsetWidth(int value)Sets the width of the overlay.abstract StringwidthTipText()Returns the tip text for this property.-
Methods inherited from class adams.gui.visualization.heatmap.overlay.AbstractPositionableHeatmapOverlay
getDefaultX, getDefaultY, getX, getY, setX, setY, xTipText, yTipText
-
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:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classAbstractPositionableHeatmapOverlay
-
getDefaultWidth
protected abstract int getDefaultWidth()
Returns the default width for the overlay.- Returns:
- the default width
-
setWidth
public void setWidth(int value)
Sets the width of the overlay.- Parameters:
value- the width
-
getWidth
public int getWidth()
Returns the currently set width of the overlay.- Overrides:
getWidthin classAbstractPositionableHeatmapOverlay- Returns:
- the width
-
widthTipText
public abstract String widthTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDefaultHeight
protected abstract int getDefaultHeight()
Returns the default height for the overlay.- Returns:
- the default height
-
setHeight
public void setHeight(int value)
Sets the height of the overlay.- Parameters:
value- the height
-
getHeight
public int getHeight()
Returns the currently set height of the overlay.- Overrides:
getHeightin classAbstractPositionableHeatmapOverlay- Returns:
- the height
-
heightTipText
public abstract String heightTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
doPaintOverlay
protected abstract void doPaintOverlay(adams.gui.visualization.image.ImagePanel.PaintPanel panel, Graphics g, int x, int y)Performs the actual painting.- Specified by:
doPaintOverlayin classAbstractPositionableHeatmapOverlay- Parameters:
panel- the associated viewerg- 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.- Overrides:
doPaintOverlayin classAbstractPositionableHeatmapOverlay- Parameters:
panel- the associated viewerg- the graphics context- See Also:
doPaintOverlay(PaintPanel, Graphics, int, int)
-
-