return s.intersects(rect);
public boolean intersects(double x, double y, double w, double h) { return shape.intersects(x, y, w, h); }
public boolean intersects(Rectangle2D r) { return shape.intersects(r); }
public boolean intersects(Rectangle2D r) { return shape.intersects(r); }
public boolean intersects(double x, double y, double w, double h) { return shape.intersects(x, y, w, h); }
y -= 0.5 * height; return shape.intersects(x, y, width, height);
/** * Tests if the interior of the <code>Shape</code> intersects the interior of a specified <code> * Rectangle2D</code>. This method might conservatively return <code>true</code>. */ public boolean intersects(final Rectangle2D r) { try { return shape.intersects(XAffineTransform.inverseTransform(this, r, rectangle)); } catch (NoninvertibleTransformException exception) { exceptionOccured(exception, "intersects"); return false; } }
@Override public boolean intersects(double x, double y, double w, double h) { return s.intersects(x, y, w, h); } }
/** * Returns whether the sprite's drawn rectangle intersects the given shape in pixel coordinates. */ public boolean intersects (Shape shape) { return shape.intersects(_bounds); }
/** * {@inheritDoc} */ public boolean intersects(Rectangle2D r) { return starShape.intersects(r); }
/** * {@inheritDoc} */ @Override public boolean intersects(Rectangle2D r) { return starShape.intersects(r); }
expect(shape.getPathIterator(null)).andReturn(null); expect(shape.getPathIterator(null, 0.0)).andReturn(null); expect(shape.intersects(null)).andReturn(false); expect(shape.intersects(0.0, 0.0, 0.0, 0.0)).andReturn(false);
/** * <B>NOTE</B>: This method does not consider any children of this box */ public boolean intersects(CssContext cssCtx, Shape clip) { return clip == null || clip.intersects(getPaintingClipEdge(cssCtx)); }
@Override public boolean intersects(Shape primitive, AttributeSet style, Rectangle2D rect) { if (Styles.hasFill(style) && primitive.intersects(rect)) { return true; } else { Shape sh = PathRenderer.strokedShape(primitive, style); return sh != null && sh.intersects(rect); } }
@Override public boolean intersects(Shape primitive, AttributeSet style, Rectangle2D rect) { Shape sh = strokedShape(primitive, style); return sh != null && sh.intersects(rect); }
void pick(Rectangle2D pickArea, AffineTransform ltw, boolean boundingBox, List retVec) throws SVGException { if (ltw.createTransformedShape(getBoundingBox()).intersects(pickArea)) { retVec.add(getPath(null)); } }
@Override void pick(Rectangle2D pickArea, AffineTransform ltw, boolean boundingBox, List<List<SVGElement>> retVec) throws SVGException { if (ltw.createTransformedShape(getBoundingBox()).intersects(pickArea)) { retVec.add(getPath(null)); } }
private boolean intersectsAggregateBounds(Shape clip, Box box) { if (clip == null) { return true; } PaintingInfo info = box.getPaintingInfo(); if (info == null) { return false; } Rectangle bounds = info.getAggregateBounds(); return clip.intersects(bounds); }
private boolean intersectsAggregateBounds(Shape clip, Box box) { if (clip == null) { return true; } PaintingInfo info = box.getPaintingInfo(); if (info == null) { return false; } Rectangle bounds = info.getAggregateBounds(); return clip.intersects(bounds); }
@Override protected boolean outsideClip(Graphics2D g) throws SVGException { Shape clip = g.getClip(); // g.getClipBounds(clipBounds); Rectangle2D rect = super.getBoundingBox(); if (clip == null || clip.intersects(rect)) { return false; } return true; }