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

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

Introduction

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

The text is from its open source code.

Constructor

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

Method

voidadd(Point2D pt)
Adds the Point2D object pt to this Rectangle2D .
voidadd(Rectangle2D r)
Adds a Rectangle2D object to this Rectangle2D .
booleancontains(double x, double y)
booleancontains(Point2D p)
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.
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.
voidsetFrameFromDiagonal(double x1, double y1, double x2, double y2)
Sets the diagonal of the framing rectangle of this Shape based on the two specified coordinates.
voidsetRect(double x, double y, double w, double h)
Sets the location and size of this Rectangle2D to the specified double values.
voidsetRect(Rectangle2D r)
Sets this Rectangle2D to be the same as the specified Rectangle2D .