adams.gui.visualization.image.plugins
Class ImageMagick
java.lang.Object
adams.core.ConsoleObject
adams.gui.visualization.image.plugins.AbstractImageViewerPlugin
adams.gui.visualization.image.plugins.AbstractImageFilter
adams.gui.visualization.image.plugins.ImageMagick
- All Implemented Interfaces:
- SizeOfHandler, Serializable
public class ImageMagick
- extends AbstractImageFilter
Allows the user to apply ImageMagick commands.
- Version:
- $Revision: 5510 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageMagick
public ImageMagick()
getCaption
public String getCaption()
- Returns the text for the menu item to create.
- Specified by:
getCaption in class AbstractImageViewerPlugin
- Returns:
- the text
canExecute
public boolean canExecute(ImagePanel panel)
- Checks whether the plugin can be executed given the specified image panel.
Panel must be non-null and must contain an image. Also, ImageMagick must
be installed.
- Overrides:
canExecute in class AbstractImageFilter
- Parameters:
panel - the panel to use as basis for decision
- Returns:
- true if plugin can be executed
filter
protected BufferedImage filter(BufferedImage image)
- Filters the image.
- Specified by:
filter in class AbstractImageFilter
- Parameters:
image - the image to filter
- Returns:
- the processed image
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.