marvin.plugin
Class MarvinAbstractImagePlugin

java.lang.Object
  extended by marvin.plugin.MarvinAbstractImagePlugin
All Implemented Interfaces:
MarvinImagePlugin, MarvinPlugin

public abstract class MarvinAbstractImagePlugin
extends java.lang.Object
implements MarvinImagePlugin


Constructor Summary
protected MarvinAbstractImagePlugin()
          Empty constructor
 
Method Summary
 java.lang.Object getAttribute(java.lang.String label)
           
 MarvinAttributes getAttributes()
           
 MarvinImagePanel getImagePanel()
           
 void setAttribute(java.lang.String label, java.lang.Object value)
          Set an attribute
 void setImagePanel(MarvinImagePanel imgPanel)
          Associates the plug-in with an MarvinImagePanel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface marvin.plugin.MarvinImagePlugin
load, process, show
 

Constructor Detail

MarvinAbstractImagePlugin

protected MarvinAbstractImagePlugin()
Empty constructor

Method Detail

getAttributes

public MarvinAttributes getAttributes()
Specified by:
getAttributes in interface MarvinImagePlugin
Returns:
MarvinAttributes object associated with this plug-in

setAttribute

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

Specified by:
setAttribute in interface MarvinImagePlugin
Parameters:
a_attrName - attribute´s name
value - attribute´s value

getAttribute

public java.lang.Object getAttribute(java.lang.String label)
Specified by:
getAttribute in interface MarvinImagePlugin
Parameters:
a_attrName - atribute´s name
Returns:
the attribute´s value

setImagePanel

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

Specified by:
setImagePanel in interface MarvinImagePlugin
Parameters:
imgPanel - reference to a MarvinImagePanel object

getImagePanel

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