br.usp.iterador.plugin
Interface Tool

All Known Implementing Classes:
ClearTool, DiagramTool, ExportImageTool, InitialConditionTool, LoadTool, PluginsTool, RedrawTool, SaveTool, ShowPointTool, StableManifoldTool, ZoomTool

public interface Tool

A plugin tool to be displayed in the toolbar

Author:
Guilherme Silveira

Method Summary
 void activate(Controller controller)
           
 void deactivate()
           
 javax.swing.Icon getIcon()
          Returns its icon, if it has any
 java.lang.String getName()
           
 void mouseMoved(int x, int y)
          The mouse has moved
 void onClick(int x, int y)
           
 

Method Detail

getName

java.lang.String getName()

activate

void activate(Controller controller)

deactivate

void deactivate()

onClick

void onClick(int x,
             int y)

mouseMoved

void mouseMoved(int x,
                int y)
The mouse has moved

Parameters:
x - x pos
y - y pos

getIcon

javax.swing.Icon getIcon()
Returns its icon, if it has any

Returns:
the icon


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