Example usage for Java java.awt.geom Rectangle2D.Double fields, constructors, methods, implement or subclass
The text is from its open source code.
Double(double x, double y, double w, double h) Constructs and initializes a Rectangle2D from the specified double coordinates. |
boolean | contains(Point2D p) |
Rectangle2D | createIntersection(Rectangle2D r) Returns a new Rectangle2D object representing the intersection of this Rectangle2D with the specified Rectangle2D . |
double | getCenterX() Returns the X coordinate of the center of the framing rectangle of the Shape in double precision. |
double | getCenterY() Returns the Y coordinate of the center of the framing rectangle of the Shape in double precision. |
double | getHeight() Returns the height of the framing rectangle in double precision. |
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 | getWidth() Returns the width of the framing rectangle 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 | setFrameFromCenter(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. |
void | setRect(double x, double y, double w, double h) Sets the location and size of this Rectangle2D to the specified double values. |