Back to index

moin  1.9.0~rc2
Tool.java
Go to the documentation of this file.
00001 /*
00002  * @(#)Tool.java 5.1
00003  *
00004  */
00005 
00006 package CH.ifa.draw.framework;
00007 
00008 import java.awt.*;
00009 import java.awt.event.MouseEvent;
00010 import java.awt.event.KeyEvent;
00011 
00028 public interface Tool {
00029 
00035     public void activate();
00036 
00043     public void deactivate();
00044 
00048     public void mouseDown(MouseEvent e, int x, int y);
00049 
00053     public void mouseDrag(MouseEvent e, int x, int y);
00054 
00058     public void mouseUp(MouseEvent e, int x, int y);
00059 
00063     public void mouseMove(MouseEvent evt, int x, int y);
00064 
00068     public void keyDown(KeyEvent evt, int key);
00069 }