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 StringgetIconName()Returns the name of the icon to use.StringgetName()The name to display in the menu.voidperformAction(OverlayLayer origin)Performs the action.protected voidswap(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:
getNamein classAbstractOverlayLayerAction- Returns:
- the name
-
getIconName
public String getIconName()
Returns the name of the icon to use.- Specified by:
getIconNamein 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:
performActionin classAbstractOverlayLayerAction- Parameters:
origin- the origin of the action
-
-