KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwt > awt > Shape


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: Shape.java,v $
11    Revision 1.1 2004/01/15 15:20:29 bobintetley
12    Java2D work
13
14
15 */

16
17 package swingwt.awt;
18
19 import swingwt.awt.geom.*;
20
21 public interface Shape {
22     
23     public Rectangle getBounds();
24     public Rectangle2D getBounds2D();
25     public boolean contains(double x, double y);
26     public boolean contains(Point2D p);
27     public boolean intersects(double x, double y, double w, double h);
28     public boolean intersects(Rectangle2D r);
29     public boolean contains(double x, double y, double w, double h);
30     public boolean contains(Rectangle2D r);
31     public PathIterator getPathIterator(AffineTransform at);
32     public PathIterator getPathIterator(AffineTransform at, double flatness);
33     
34 }
35
Popular Tags