Interface PaintOperation
-
- All Superinterfaces:
Destroyable
,OptionHandler
- All Known Implementing Classes:
AbstractPaintOperation
,NullOperation
,PolygonOverlay
public interface PaintOperation extends OptionHandler
Interface for additional paint operations in the segmentation panel.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
enabledTipText()
Returns the tip text for this property.boolean
getEnabled()
Returns whether the paint operation is enabled.Tool
getOwner()
Returns the owning tool.void
performPaint(Graphics2D g)
Performs a paint operation.void
setEnabled(boolean value)
Sets whether the paint operation is enabled.void
setOwner(Tool value)
Sets the owning tool.-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
-
-
-
Method Detail
-
setOwner
void setOwner(Tool value)
Sets the owning tool.- Parameters:
value
- the owner
-
getOwner
Tool getOwner()
Returns the owning tool.- Returns:
- the owner
-
setEnabled
void setEnabled(boolean value)
Sets whether the paint operation is enabled.- Parameters:
value
- true if enabled
-
getEnabled
boolean getEnabled()
Returns whether the paint operation is enabled.- Returns:
- true if enabled
-
enabledTipText
String enabledTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
performPaint
void performPaint(Graphics2D g)
Performs a paint operation.- Parameters:
g
- the graphics context
-
-