KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > instruments > ROI


1 package JSci.instruments;
2
3 import java.awt.*;
4 import java.awt.event.*;
5
6 /** A Region Of Interest, that is a region delimited by a polygon,
7 that can be moved with the mouse.
8 */

9
10 public interface ROI {
11
12     /** @return the Shape of the ROI */
13     Shape getShape();
14
15     /** Called by the Player: set the component where to display the ROI
16      * @param c The Component where to display the ROI
17     */

18     public void setComponent(Component c);
19
20     /** Called by the Player: draw the ROI
21      * @param g the Graphics where to paint the ROI
22     */

23     public void paint(Graphics g);
24     
25 }
26
Popular Tags