/** Tests if a specified {@link Point2D} is inside the boundary of the <code>Shape</code>. */ public boolean contains(final Point2D p) { try { return shape.contains(inverseTransform(p, point)); } catch (NoninvertibleTransformException exception) { exceptionOccured(exception, "contains"); return false; } }
/** * 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; } }
/** * Tests if the interior of the <code>Shape</code> entirely contains the specified <code> * Rectangle2D</code>. This method might conservatively return <code>false</code>. */ public boolean contains(final Rectangle2D r) { try { return shape.contains(XAffineTransform.inverseTransform(this, r, rectangle)); } catch (NoninvertibleTransformException exception) { exceptionOccured(exception, "contains"); return false; } }
/** * Tests if a specified {@link Point2D} is inside the boundary of the * <code>Shape</code>. */ public boolean contains(final Point2D p) { try { return shape.contains(inverseTransform(p, point)); } catch (NoninvertibleTransformException exception) { exceptionOccured(exception, "contains"); return false; } }
/** * Tests if a specified {@link Point2D} is inside the boundary of the * <code>Shape</code>. */ public boolean contains(final Point2D p) { try { return shape.contains(inverseTransform(p, point)); } catch (NoninvertibleTransformException exception) { exceptionOccured(exception, "contains"); return false; } }
/** * Tests if the interior of the <code>Shape</code> entirely contains the * specified <code>Rectangle2D</code>. This method might conservatively * return <code>false</code>. */ public boolean contains(final Rectangle2D r) { try { return shape.contains(XAffineTransform.inverseTransform(this, r, rectangle)); } catch (NoninvertibleTransformException exception) { exceptionOccured(exception, "contains"); return false; } }
/** * Tests if the interior of the <code>Shape</code> entirely contains the * specified <code>Rectangle2D</code>. This method might conservatively * return <code>false</code>. */ public boolean contains(final Rectangle2D r) { try { return shape.contains(XAffineTransform.inverseTransform(this, r, rectangle)); } catch (NoninvertibleTransformException exception) { exceptionOccured(exception, "contains"); return false; } }
/** * 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; } }
/** * 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; } }