1 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 |