adams.gui.visualization.image.plugins
Class ImageMagick

java.lang.Object
  extended by adams.core.ConsoleObject
      extended by adams.gui.visualization.image.plugins.AbstractImageViewerPlugin
          extended by adams.gui.visualization.image.plugins.AbstractImageFilter
              extended by 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

Field Summary
 
Fields inherited from class adams.gui.visualization.image.plugins.AbstractImageFilter
m_FilterError
 
Fields inherited from class adams.gui.visualization.image.plugins.AbstractImageViewerPlugin
m_CanceledByUser, m_CurrentPanel, m_LastSetup
 
Constructor Summary
ImageMagick()
           
 
Method Summary
 boolean canExecute(ImagePanel panel)
          Checks whether the plugin can be executed given the specified image panel.
protected  BufferedImage filter(BufferedImage image)
          Filters the image.
 String getCaption()
          Returns the text for the menu item to create.
 
Methods inherited from class adams.gui.visualization.image.plugins.AbstractImageFilter
doExecute
 
Methods inherited from class adams.gui.visualization.image.plugins.AbstractImageViewerPlugin
execute, getCanceledByUser, getLastSetup, getPlugins, hasLastSetup, setLastSetup
 
Methods inherited from class adams.core.ConsoleObject
getDebugging, getSystemErr, getSystemOut, sizeOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageMagick

public ImageMagick()
Method Detail

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.