public static class RoundRectangle2D.Float extends RoundRectangle2D
RoundRectangle2D.Double, RoundRectangle2D.Float| Modifier and Type | Field and Description |
|---|---|
float |
archeight
The height of the corner arc.
|
float |
arcwidth
The width of the corner arc.
|
float |
height
The height of this object.
|
float |
width
The width of this object.
|
float |
x
The x coordinate of this object.
|
float |
y
The y coordinate of this object.
|
| Constructor and Description |
|---|
RoundRectangle2D.Float()
Construct a new instance, with all parameters set to 0.
|
RoundRectangle2D.Float(float x,
float y,
float w,
float h,
float arcWidth,
float arcHeight)
Construct a new instance with the given arguments.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getArcHeight()
Return the arc height of this round rectangle.
|
double |
getArcWidth()
Return the arc width of this round rectangle.
|
Rectangle2D |
getBounds2D()
Returns a high precision bounding box of the shape.
|
double |
getHeight()
Get the height of the framing rectangle.
|
double |
getWidth()
Get the width of the framing rectangle.
|
double |
getX()
Get the x coordinate of the upper-left corner of the framing rectangle.
|
double |
getY()
Get the y coordinate of the upper-left corner of the framing rectangle.
|
boolean |
isEmpty()
Test if the shape is empty, meaning that no points are inside it.
|
void |
setRoundRect(double x,
double y,
double w,
double h,
double arcWidth,
double arcHeight)
Set the values of this round rectangle.
|
void |
setRoundRect(float x,
float y,
float w,
float h,
float arcWidth,
float arcHeight)
Sets the dimensions for this rounded rectangle.
|
contains, contains, getPathIterator, intersects, setFrame, setRoundRectclone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonalpublic float archeight
public float arcwidth
public float x
public float y
public float width
public float height
public RoundRectangle2D.Float()
public RoundRectangle2D.Float(float x, float y, float w, float h, float arcWidth, float arcHeight)
x - The x coordinatey - The y coordinatew - The widthh - The heightarcWidth - The arc widtharcHeight - The arc heightpublic double getArcHeight()
RoundRectangle2DgetArcHeight in class RoundRectangle2DRoundRectangle2D.getArcWidth()public double getArcWidth()
RoundRectangle2DgetArcWidth in class RoundRectangle2DRoundRectangle2D.getArcHeight()public Rectangle2D getBounds2D()
ShapeShape.getBounds()public double getX()
RectangularShapegetX in class RectangularShapepublic double getY()
RectangularShapegetY in class RectangularShapepublic double getWidth()
RectangularShapegetWidth in class RectangularShapepublic double getHeight()
RectangularShapegetHeight in class RectangularShapepublic boolean isEmpty()
RectangularShapeisEmpty in class RectangularShapepublic void setRoundRect(float x, float y, float w, float h, float arcWidth, float arcHeight)
x - the x-coordinate of the top left corner.y - the y-coordinate of the top left corner.w - the width of the rectangle.h - the height of the rectangle.arcWidth - the arc width.arcHeight - the arc height.setRoundRect(double, double, double, double, double, double)public void setRoundRect(double x, double y, double w, double h, double arcWidth, double arcHeight)
RoundRectangle2DsetRoundRect in class RoundRectangle2Dx - The x coordinatey - The y coordinatew - The widthh - The heightarcWidth - The arc widtharcHeight - The arc height