KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > instruments > ROIAdapter


1 package JSci.instruments;
2
3 import java.awt.*;
4 import java.awt.event.*;
5
6 /** A Region Of Interest class adapter
7 */

8
9 public abstract class ROIAdapter extends MouseMotionAdapter implements ROI, MouseListener, MouseMotionListener {
10     public abstract Shape getShape();
11     public abstract void setComponent(Component c);
12     public abstract void paint(Graphics g);
13     public void mouseReleased(MouseEvent e) {}
14     public void mousePressed(MouseEvent e) {}
15     public void mouseExited(MouseEvent e) {}
16     public void mouseEntered(MouseEvent e) {}
17     public void mouseClicked(MouseEvent e) {}
18 }
19
Popular Tags