marvin.plugin
Interface MarvinImagePlugin

All Superinterfaces:
MarvinPlugin
All Known Implementing Classes:
MarvinAbstractImagePlugin

public interface MarvinImagePlugin
extends MarvinPlugin


Method Summary
 java.lang.Object getAttribute(java.lang.String attrName)
           
 MarvinAttributes getAttributes()
           
 MarvinImagePanel getImagePanel()
           
 void load()
          Initializes objects and attributes.
 void process(MarvinImage imgIn, MarvinImage imgOut, MarvinAttributes attrOut, MarvinImageMask mask, boolean previewMode)
          Executes the algorithm.
 void setAttribute(java.lang.String attrName, java.lang.Object value)
          Set an attribute
 void setImagePanel(MarvinImagePanel imgPanel)
          Associates the plug-in with an MarvinImagePanel
 void show()
          Shows a graphical interface
 

Method Detail

load

void load()
Initializes objects and attributes.


show

void show()
Shows a graphical interface


process

void process(MarvinImage imgIn,
             MarvinImage imgOut,
             MarvinAttributes attrOut,
             MarvinImageMask mask,
             boolean previewMode)
Executes the algorithm.

Parameters:
imgIn - input image.
imgOut - output image.
attrOut - output attributes.
mask - mask containing what pixels should be considered.
previewMode - it is or isnīt on preview mode.

getAttributes

MarvinAttributes getAttributes()
Returns:
MarvinAttributes object associated with this plug-in

setAttribute

void setAttribute(java.lang.String attrName,
                  java.lang.Object value)
Set an attribute

Parameters:
attrName - attribute name
value - attribute value

getAttribute

java.lang.Object getAttribute(java.lang.String attrName)
Parameters:
attrName - attribute name
Returns:
the attributeīs value

setImagePanel

void setImagePanel(MarvinImagePanel imgPanel)
Associates the plug-in with an MarvinImagePanel

Parameters:
imgPanel - reference to a MarvinImagePanel object

getImagePanel

MarvinImagePanel getImagePanel()
Returns:
a reference to the associated MarvinImagePanel. If no one MarvinImagePanel is associated with this plug-in, this method returns null.