/** * Checks if one of the lines in the polyline intersects * with a given rectangle. * @see java.awt.Shape#intersects(double, double, double, double) */ public boolean intersects(double x, double y, double w, double h) { return intersects(new Rectangle2D.Double(x, y, w, h)); }
/** * Returns the bounding box of this polyline. * * @return a {@link Rectangle2D} that is the high-precision * bounding box of this line. * @see java.awt.Shape#getBounds2D() */ public Rectangle2D getBounds2D() { int[] r = rect(); return r==null?null:new Rectangle2D.Double(r[0], r[1], r[2], r[3]); }
/** * Returns the bounding box of this polyline. * @see com.google.code.appengine.awt.Shape#getBounds() */ public Rectangle getBounds() { return getBounds2D().getBounds(); }
/** * @see Graphics#drawPolyline(int[], int[], int) */ public void drawPolyline(int[] x, int[] y, int nPoints) { PolylineShape polyline = new PolylineShape(x, y, nPoints); draw(polyline); }
/** * Returns the bounding box of this polyline. * @see java.awt.Shape#getBounds() */ public Rectangle getBounds() { return getBounds2D().getBounds(); }
/** * @see Graphics#drawPolyline(int[], int[], int) */ public void drawPolyline(int[] x, int[] y, int nPoints) { PolylineShape polyline = new PolylineShape(x, y, nPoints); draw(polyline); }
/** * Returns the bounding box of this polyline. * @see java.awt.Shape#getBounds() */ public Rectangle getBounds() { return getBounds2D().getBounds(); }
/** * Checks if one of the lines in the polyline intersects * with a given rectangle. * @see java.awt.Shape#intersects(double, double, double, double) */ public boolean intersects(double x, double y, double w, double h) { return intersects(new Rectangle2D.Double(x, y, w, h)); }
/** * @see Graphics#drawPolyline(int[], int[], int) */ public void drawPolyline(int[] x, int[] y, int nPoints) { PolylineShape polyline = new PolylineShape(x, y, nPoints); draw(polyline); }
/** * Returns the bounding box of this polyline. * * @return a {@link Rectangle2D} that is the high-precision * bounding box of this line. * @see java.awt.Shape#getBounds2D() */ public Rectangle2D getBounds2D() { int[] r = rect(); return r==null?null:new Rectangle2D.Double(r[0], r[1], r[2], r[3]); }
/** * Checks if one of the lines in the polyline intersects * with a given rectangle. * @see com.google.code.appengine.awt.Shape#intersects(double, double, double, double) */ public boolean intersects(double x, double y, double w, double h) { return intersects(new Rectangle2D.Double(x, y, w, h)); }
/** * Returns the bounding box of this polyline. * * @return a {@link Rectangle2D} that is the high-precision * bounding box of this line. * @see com.google.code.appengine.awt.Shape#getBounds2D() */ public Rectangle2D getBounds2D() { int[] r = rect(); return r==null?null:new Rectangle2D.Double(r[0], r[1], r[2], r[3]); }