br.usp.iterador.plugin.export
Class ExportImagePlugin

java.lang.Object
  extended by br.usp.iterador.plugin.export.ExportImagePlugin
All Implemented Interfaces:
Plugin

public class ExportImagePlugin
extends java.lang.Object
implements Plugin

Exports an image.

Author:
Guilherme Silveira

Constructor Summary
ExportImagePlugin()
           
 
Method Summary
 void activate()
          Activates this plugins
 void activate(java.lang.Object data)
          Sets its internal data by reading from a serialized object
 void deactivate()
          Deactivates this plugin
 java.util.Map<java.lang.String,java.lang.Class<? extends java.lang.Object>> getAliases()
           
 IterationListener getIterationListener()
          Returns its iteration listener
 javax.swing.JMenu getMenu(MenuBuilder menuBuilder)
          Returns its menu bar
 java.util.Map<java.lang.String,java.lang.Object> getScriptObjects()
          Returns the list of scripted objects
 java.io.Serializable getSerializedData()
          Returns any data that should be serialized in order to save and load
 Tool[] getTools()
          Returns this plugins tools.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportImagePlugin

public ExportImagePlugin()
Method Detail

getMenu

public javax.swing.JMenu getMenu(MenuBuilder menuBuilder)
Description copied from interface: Plugin
Returns its menu bar

Specified by:
getMenu in interface Plugin
Returns:
the menu bar

getIterationListener

public IterationListener getIterationListener()
Returns its iteration listener

Specified by:
getIterationListener in interface Plugin
Returns:
the iteration listener, null otherwise
See Also:
Plugin.getIterationListener()

activate

public void activate()
Description copied from interface: Plugin
Activates this plugins

Specified by:
activate in interface Plugin

deactivate

public void deactivate()
Description copied from interface: Plugin
Deactivates this plugin

Specified by:
deactivate in interface Plugin

getSerializedData

public java.io.Serializable getSerializedData()
Description copied from interface: Plugin
Returns any data that should be serialized in order to save and load

Specified by:
getSerializedData in interface Plugin
Returns:
the data or null if nothing should be saved

activate

public void activate(java.lang.Object data)
Sets its internal data by reading from a serialized object

Specified by:
activate in interface Plugin
Parameters:
data - object
See Also:
Plugin.activate(java.lang.Object)

getScriptObjects

public java.util.Map<java.lang.String,java.lang.Object> getScriptObjects()
Returns the list of scripted objects


getAliases

public java.util.Map<java.lang.String,java.lang.Class<? extends java.lang.Object>> getAliases()

getTools

public Tool[] getTools()
Description copied from interface: Plugin
Returns this plugins tools. This method is always called after activation.

Specified by:
getTools in interface Plugin
Returns:
the tools


Copyright 2004-2004-2006 IME - USP. All Rights Reserved.