adams.flow.transformer.pixelselector
Class SimpleOverlay
java.lang.Object
adams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.transformer.pixelselector.AbstractPixelSelectorOverlay
adams.flow.transformer.pixelselector.AbstractSingleColorPixelSelectorOverlay
adams.flow.transformer.pixelselector.SimpleOverlay
- All Implemented Interfaces:
- Debuggable, Destroyable, OptionHandler, ShallowCopySupporter<AbstractPixelSelectorOverlay>, SizeOfHandler, ImageOverlay, Serializable
public class SimpleOverlay
- extends AbstractSingleColorPixelSelectorOverlay
Simply highlights the selected pixel
Some actions that generate data for this overlay:
adams.flow.transformer.pixelselector.SimpleSelect
Valid options are:
-D <int> (property: debugLevel)
The greater the number the more additional info the scheme may output to
the console (0 = off).
default: 0
minimum: 0
-color <java.awt.Color> (property: color)
The color to use for the overlay.
default: #ff0000
- Version:
- $Revision: 4806 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
| Methods inherited from class adams.core.option.AbstractOptionHandler |
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
SimpleOverlay
public SimpleOverlay()
getGlobalInfo
protected String getGlobalInfo()
- Returns a string describing the object.
- Specified by:
getGlobalInfo in class AbstractPixelSelectorOverlay
- Returns:
- a description suitable for displaying in the gui
getSuggestedActions
public Class[] getSuggestedActions()
- Returns some actions that generate data for this overlay.
- Specified by:
getSuggestedActions in class AbstractPixelSelectorOverlay
- Returns:
- the actions
getPixelLocation
protected Point getPixelLocation()
- Returns the pixel location to paint.
- Returns:
- the location, null if none found
doPaintOverlay
protected void doPaintOverlay(ImagePanel.PaintPanel panel,
Graphics g)
- Paints the actual overlay over the image.
- Specified by:
doPaintOverlay in class AbstractPixelSelectorOverlay
- Parameters:
panel - the panel this overlay is forg - the graphics context
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.