java.awt.geom
public static class RoundRectangle2D.Double extends RoundRectangle2D
RoundRectangle2D.Double, RoundRectangle2D.Float
Modifier and Type | Field and Description |
---|---|
double |
archeight
The height of the corner arc.
|
double |
arcwidth
The width of the corner arc.
|
double |
height
The height of this object.
|
double |
width
The width of this object.
|
double |
x
The x coordinate of this object.
|
double |
y
The y coordinate of this object.
|
Constructor and Description |
---|
RoundRectangle2D.Double()
Construct a new instance, with all parameters set to 0.
|
RoundRectangle2D.Double(double x,
double y,
double w,
double h,
double arcWidth,
double 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.
|
contains, contains, getPathIterator, intersects, setFrame, setRoundRect
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
public double archeight
public double arcwidth
public double x
public double y
public double width
public double height
public RoundRectangle2D.Double()
public RoundRectangle2D.Double(double x, double y, double w, double h, double arcWidth, double arcHeight)
x
- The x coordinatey
- The y coordinatew
- The widthh
- The heightarcWidth
- The arc widtharcHeight
- The arc heightpublic double getArcHeight()
RoundRectangle2D
getArcHeight
in class RoundRectangle2D
RoundRectangle2D.getArcWidth()
public double getArcWidth()
RoundRectangle2D
getArcWidth
in class RoundRectangle2D
RoundRectangle2D.getArcHeight()
public Rectangle2D getBounds2D()
Shape
Shape.getBounds()
public double getX()
RectangularShape
getX
in class RectangularShape
public double getY()
RectangularShape
getY
in class RectangularShape
public double getWidth()
RectangularShape
getWidth
in class RectangularShape
public double getHeight()
RectangularShape
getHeight
in class RectangularShape
public boolean isEmpty()
RectangularShape
isEmpty
in class RectangularShape
public void setRoundRect(double x, double y, double w, double h, double arcWidth, double arcHeight)
RoundRectangle2D
setRoundRect
in class RoundRectangle2D
x
- The x coordinatey
- The y coordinatew
- The widthh
- The heightarcWidth
- The arc widtharcHeight
- The arc height