Example usage for Java java.awt.geom Rectangle2D.Float fields, constructors, methods, implement or subclass
The text is from its open source code.
Rectangle2D.Float | |
Float(float x, float y, float w, float h) Constructs and initializes a Rectangle2D from the specified float coordinates. |
void | add(Point2D pt) Adds the Point2D object pt to this Rectangle2D . |
void | add(Rectangle2D r) Adds a Rectangle2D object to this Rectangle2D . |
boolean | contains(double x, double y) |
boolean | contains(Point2D p) |
double | getMaxX() Returns the largest X coordinate of the framing rectangle of the Shape in double precision. |
double | getMaxY() Returns the largest Y coordinate of the framing rectangle of the Shape in double precision. |
double | getMinX() Returns the smallest X coordinate of the framing rectangle of the Shape in double precision. |
double | getMinY() Returns the smallest Y coordinate of the framing rectangle of the Shape in double precision. |
double | getX() Returns the X coordinate of the upper-left corner of the framing rectangle in double precision. |
double | getY() Returns the Y coordinate of the upper-left corner of the framing rectangle in double precision. |
void | setFrameFromDiagonal(double x1, double y1, double x2, double y2) Sets the diagonal of the framing rectangle of this Shape based on the two specified coordinates. |
void | setRect(double x, double y, double w, double h) Sets the location and size of this Rectangle2D to the specified double values. |
void | setRect(Rectangle2D r) Sets this Rectangle2D to be the same as the specified Rectangle2D . |