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

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

Introduction

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

The text is from its open source code.

Method

Objectclone()
Creates a new object of the same class and with the same contents as this object.
Rectangle2DgetBounds2D()
Returns a high precision and more accurate bounding box of the Shape than the getBounds method.
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.
booleanintersects(Rectangle2D r)
voidsetFrame(double x, double y, double w, double h)
Sets the location and size of the framing rectangle of this Shape to the specified rectangular values.