public Rectangle2D
createIntersection
(Rectangle2D r)
[Inherited From Rectangle]
[Specified in Rectangle2D]
public Rectangle2D
createUnion
(Rectangle2D r)
[Inherited From Rectangle]
[Specified in Rectangle2D]
public Rectangle2D
getBounds2D
()
[Inherited From Rectangle]
Returns a high precision and more accurate bounding box of
the Shape than the getBounds method.
Note that there is no guarantee that the returned
Rectangle2D is the smallest bounding box that encloses
the Shape, only that the Shape lies
entirely within the indicated Rectangle2D. The
bounding box returned by this method is usually tighter than that
returned by the getBounds method and never fails due
to overflow problems since the return value can be an instance of
the Rectangle2D that uses double precision values to
store the dimensions.
public Rectangle2D
getFrame
()
[Inherited From RectangularShape]
Returns the framing Rectangle2D
that defines the overall shape of this object.
public PathIterator
getPathIterator
(AffineTransform at, double flatness)
[Inherited From Rectangle2D]
publicstatic void
intersect
(Rectangle2D src1, Rectangle2D src2, Rectangle2D dest)
[Inherited From Rectangle2D]
public boolean
intersectsLine
(double x1, double y1, double x2, double y2)
[Inherited From Rectangle2D]
public void
setFrame
(double x, double y, double w, double h)
[Inherited From Rectangle2D]
[Specified in RectangularShape]
public void
setFrame
(Point2D loc, Dimension2D size)
[Inherited From RectangularShape]
Sets the location and size of the framing rectangle of this
Shape to the specified Point2D and
Dimension2D, respectively.
public void
setFrameFromCenter
(double centerX, double centerY, double cornerX, double cornerY)
[Inherited From RectangularShape]
public void
setFrameFromDiagonal
(double x1, double y1, double x2, double y2)
[Inherited From RectangularShape]
public void
setRect
(double x, double y, double width, double height)
[Inherited From Rectangle]
[Specified in Rectangle2D]
publicstatic void
union
(Rectangle2D src1, Rectangle2D src2, Rectangle2D dest)
[Inherited From Rectangle2D]