Java java.awt.geom Rectangle2D.Double fields, constructors, methods, implement or subclass

Example usage for Java java.awt.geom Rectangle2D.Double fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.geom Rectangle2D.Double.

The text is from its open source code.

Subclass

java.awt.geom.Rectangle2D.Double has subclasses.
Click this link to see all its subclasses.

Constructor

Double(double x, double y, double w, double h)
Constructs and initializes a Rectangle2D from the specified double coordinates.

Method

booleancontains(Point2D p)
Rectangle2DcreateIntersection(Rectangle2D r)
Returns a new Rectangle2D object representing the intersection of this Rectangle2D with the specified Rectangle2D .
doublegetCenterX()
Returns the X coordinate of the center of the framing rectangle of the Shape in double precision.
doublegetCenterY()
Returns the Y coordinate of the center of the framing rectangle of the Shape in double precision.
doublegetHeight()
Returns the height of the framing rectangle in double precision.
doublegetMaxX()
Returns the largest X coordinate of the framing rectangle of the Shape in double precision.
doublegetMaxY()
Returns the largest Y coordinate of the framing rectangle of the Shape in double precision.
doublegetMinX()
Returns the smallest X coordinate of the framing rectangle of the Shape in double precision.
doublegetMinY()
Returns the smallest Y coordinate of the framing rectangle of the Shape in double precision.
doublegetWidth()
Returns the width of the framing rectangle in double precision.
doublegetX()
Returns the X coordinate of the upper-left corner of the framing rectangle in double precision.
doublegetY()
Returns the Y coordinate of the upper-left corner of the framing rectangle in double precision.
voidsetFrameFromCenter(double centerX, double centerY, double cornerX, double cornerY)
Sets the framing rectangle of this Shape based on the specified center point coordinates and corner point coordinates.
voidsetRect(double x, double y, double w, double h)
Sets the location and size of this Rectangle2D to the specified double values.