Class Invert
- java.lang.Object
-
- adams.gui.visualization.segmentation.layer.overlaylayeraction.AbstractOverlayLayerAction
-
- adams.gui.visualization.segmentation.layer.overlaylayeraction.Invert
-
public class Invert extends AbstractOverlayLayerAction
Inverts background and foreground.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description Invert()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIconName()
Returns the name of the icon to use.String
getName()
The name to display in the menu.void
performAction(OverlayLayer origin)
Performs the action.protected void
swap(BufferedImage image)
Updates the image using the current color.-
Methods inherited from class adams.gui.visualization.segmentation.layer.overlaylayeraction.AbstractOverlayLayerAction
getIcon
-
-
-
-
Method Detail
-
getName
public String getName()
The name to display in the menu.- Specified by:
getName
in classAbstractOverlayLayerAction
- Returns:
- the name
-
getIconName
public String getIconName()
Returns the name of the icon to use.- Specified by:
getIconName
in classAbstractOverlayLayerAction
- Returns:
- the name, null for empty icon
-
swap
protected void swap(BufferedImage image)
Updates the image using the current color.
-
performAction
public void performAction(OverlayLayer origin)
Performs the action.- Specified by:
performAction
in classAbstractOverlayLayerAction
- Parameters:
origin
- the origin of the action
-
-