1 7 8 package java.awt; 9 10 import java.awt.geom.AffineTransform ; 11 import java.awt.geom.PathIterator ; 12 import java.awt.geom.Point2D ; 13 import java.awt.geom.Rectangle2D ; 14 15 60 public interface Shape { 61 77 public Rectangle getBounds(); 78 79 95 public Rectangle2D getBounds2D(); 96 97 106 public boolean contains(double x, double y); 107 108 116 public boolean contains(Point2D p); 117 118 149 public boolean intersects(double x, double y, double w, double h); 150 151 174 public boolean intersects(Rectangle2D r); 175 176 211 public boolean contains(double x, double y, double w, double h); 212 213 241 public boolean contains(Rectangle2D r); 242 243 270 public PathIterator getPathIterator(AffineTransform at); 271 272 316 public PathIterator getPathIterator(AffineTransform at, double flatness); 317 } 318 | Popular Tags |