< prev index next >

src/java.desktop/share/classes/java/awt/Shape.java

Print this page

        

*** 88,98 **** * {@code getBounds2D} method generally returns a * tighter bounding box due to its greater flexibility in * representation. * * <p> ! * Note that the <a href="{@docRoot}/java/awt/Shape.html#def_insideness"> * definition of insideness</a> can lead to situations where points * on the defining outline of the {@code shape} may not be considered * contained in the returned {@code bounds} object, but only in cases * where those points are also not considered contained in the original * {@code shape}. --- 88,99 ---- * {@code getBounds2D} method generally returns a * tighter bounding box due to its greater flexibility in * representation. * * <p> ! * Note that the ! * <a href="{@docRoot}/java.desktop/java/awt/Shape.html#def_insideness"> * definition of insideness</a> can lead to situations where points * on the defining outline of the {@code shape} may not be considered * contained in the returned {@code bounds} object, but only in cases * where those points are also not considered contained in the original * {@code shape}.
*** 133,143 **** * to overflow problems since the return value can be an instance of * the {@code Rectangle2D} that uses double precision values to * store the dimensions. * * <p> ! * Note that the <a href="{@docRoot}/java/awt/Shape.html#def_insideness"> * definition of insideness</a> can lead to situations where points * on the defining outline of the {@code shape} may not be considered * contained in the returned {@code bounds} object, but only in cases * where those points are also not considered contained in the original * {@code shape}. --- 134,145 ---- * to overflow problems since the return value can be an instance of * the {@code Rectangle2D} that uses double precision values to * store the dimensions. * * <p> ! * Note that the ! * <a href="{@docRoot}/java.desktop/java/awt/Shape.html#def_insideness"> * definition of insideness</a> can lead to situations where points * on the defining outline of the {@code shape} may not be considered * contained in the returned {@code bounds} object, but only in cases * where those points are also not considered contained in the original * {@code shape}.
*** 167,177 **** public Rectangle2D getBounds2D(); /** * Tests if the specified coordinates are inside the boundary of the * {@code Shape}, as described by the ! * <a href="{@docRoot}/java/awt/Shape.html#def_insideness"> * definition of insideness</a>. * @param x the specified X coordinate to be tested * @param y the specified Y coordinate to be tested * @return {@code true} if the specified coordinates are inside * the {@code Shape} boundary; {@code false} --- 169,179 ---- public Rectangle2D getBounds2D(); /** * Tests if the specified coordinates are inside the boundary of the * {@code Shape}, as described by the ! * <a href="{@docRoot}/java.desktop/java/awt/Shape.html#def_insideness"> * definition of insideness</a>. * @param x the specified X coordinate to be tested * @param y the specified Y coordinate to be tested * @return {@code true} if the specified coordinates are inside * the {@code Shape} boundary; {@code false}
*** 181,191 **** public boolean contains(double x, double y); /** * Tests if a specified {@link Point2D} is inside the boundary * of the {@code Shape}, as described by the ! * <a href="{@docRoot}/java/awt/Shape.html#def_insideness"> * definition of insideness</a>. * @param p the specified {@code Point2D} to be tested * @return {@code true} if the specified {@code Point2D} is * inside the boundary of the {@code Shape}; * {@code false} otherwise. --- 183,193 ---- public boolean contains(double x, double y); /** * Tests if a specified {@link Point2D} is inside the boundary * of the {@code Shape}, as described by the ! * <a href="{@docRoot}/java.desktop/java/awt/Shape.html#def_insideness"> * definition of insideness</a>. * @param p the specified {@code Point2D} to be tested * @return {@code true} if the specified {@code Point2D} is * inside the boundary of the {@code Shape}; * {@code false} otherwise.
< prev index next >