adams.flow.transformer.pixelselector
Class AbstractSingleColorPixelSelectorOverlay

java.lang.Object
  extended by adams.core.ConsoleObject
      extended by adams.core.option.AbstractOptionHandler
          extended by adams.flow.transformer.pixelselector.AbstractPixelSelectorOverlay
              extended by adams.flow.transformer.pixelselector.AbstractSingleColorPixelSelectorOverlay
All Implemented Interfaces:
Debuggable, Destroyable, OptionHandler, ShallowCopySupporter<AbstractPixelSelectorOverlay>, SizeOfHandler, ImageOverlay, Serializable
Direct Known Subclasses:
ClassificationOverlay, RectangleOverlay, SimpleOverlay

public abstract class AbstractSingleColorPixelSelectorOverlay
extends AbstractPixelSelectorOverlay

Overlay that uses a single, user-defined color.

Version:
$Revision: 4776 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
See Also:
Serialized Form

Field Summary
protected  Color m_Color
          the color of the overlay.
 
Fields inherited from class adams.flow.transformer.pixelselector.AbstractPixelSelectorOverlay
m_Image
 
Fields inherited from class adams.core.option.AbstractOptionHandler
m_DebugLevel, m_OptionManager
 
Constructor Summary
AbstractSingleColorPixelSelectorOverlay()
           
 
Method Summary
 String colorTipText()
          Returns the tip text for this property.
 void defineOptions()
          Adds options to the internal list of options.
 Color getColor()
          Returns the color for the overlay.
protected  Color getDefaultColor()
          Returns the default color.
 void setColor(Color value)
          Sets the color for the overlay.
 
Methods inherited from class adams.flow.transformer.pixelselector.AbstractPixelSelectorOverlay
doPaintOverlay, getGlobalInfo, getImage, getSuggestedActions, globalInfo, paintOverlay, setImage, shallowCopy, shallowCopy
 
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString
 
Methods inherited from class adams.core.ConsoleObject
getDebugging, getSystemErr, getSystemOut, sizeOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_Color

protected Color m_Color
the color of the overlay.

Constructor Detail

AbstractSingleColorPixelSelectorOverlay

public AbstractSingleColorPixelSelectorOverlay()
Method Detail

defineOptions

public void defineOptions()
Adds options to the internal list of options.

Specified by:
defineOptions in interface OptionHandler
Overrides:
defineOptions in class AbstractOptionHandler

getDefaultColor

protected Color getDefaultColor()
Returns the default color.

Returns:
the default color

setColor

public void setColor(Color value)
Sets the color for the overlay.

Parameters:
value - the color

getColor

public Color getColor()
Returns the color for the overlay.

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.


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.