Class RectangleOverlay
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.pixelselector.AbstractPixelSelectorOverlay
-
- adams.flow.transformer.pixelselector.AbstractSingleColorPixelSelectorOverlay
-
- adams.flow.transformer.pixelselector.RectangleOverlay
-
- All Implemented Interfaces:
CleanUpHandler
,Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<AbstractPixelSelectorOverlay>
,SizeOfHandler
,ImageOverlay
,Serializable
public class RectangleOverlay extends AbstractSingleColorPixelSelectorOverlay
Simply highlights the selected pixel
Some actions that generate data for this overlay:
adams.flow.transformer.pixelselector.TopLeftCorner
adams.flow.transformer.pixelselector.BottomRightCorner
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$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.flow.transformer.pixelselector.AbstractSingleColorPixelSelectorOverlay
m_Color
-
Fields inherited from class adams.flow.transformer.pixelselector.AbstractPixelSelectorOverlay
m_Image
-
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 RectangleOverlay()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doPaintOverlay(ImagePanel.PaintPanel panel, Graphics g)
Paints the actual overlay over the image.protected Point
getBottomRight()
Returns the bottom-right corner to paint.protected String
getGlobalInfo()
Returns a string describing the object.Class[]
getSuggestedActions()
Returns some actions that generate data for this overlay.protected Point
getTopLeft()
Returns the top-left corner to paint.void
imageChanged(ImagePanel.PaintPanel panel)
Notifies the overlay that the image has changed.-
Methods inherited from class adams.flow.transformer.pixelselector.AbstractSingleColorPixelSelectorOverlay
colorTipText, defineOptions, getColor, getDefaultColor, setColor
-
Methods inherited from class adams.flow.transformer.pixelselector.AbstractPixelSelectorOverlay
cleanUp, getImage, globalInfo, overlayAdded, overlayRemoved, paintOverlay, setImage, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, 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
-
getGlobalInfo
protected String getGlobalInfo()
Returns a string describing the object.- Specified by:
getGlobalInfo
in classAbstractPixelSelectorOverlay
- 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 classAbstractPixelSelectorOverlay
- Returns:
- the actions
-
getTopLeft
protected Point getTopLeft()
Returns the top-left corner to paint.- Returns:
- the location, null if none found
-
getBottomRight
protected Point getBottomRight()
Returns the bottom-right corner to paint.- Returns:
- the location, null if none found
-
imageChanged
public void imageChanged(ImagePanel.PaintPanel panel)
Notifies the overlay that the image has changed.- Parameters:
panel
- the panel this overlay belongs to
-
doPaintOverlay
protected void doPaintOverlay(ImagePanel.PaintPanel panel, Graphics g)
Paints the actual overlay over the image.- Specified by:
doPaintOverlay
in classAbstractPixelSelectorOverlay
- Parameters:
panel
- the panel this overlay is forg
- the graphics context
-
-