public abstract class RoundRectangle2D extends RectangularShape
| Modifier and Type | Class and Description |
|---|---|
static class |
RoundRectangle2D.Double
A subclass of RoundRectangle which keeps its parameters as
doubles.
|
static class |
RoundRectangle2D.Float
A subclass of RoundRectangle which keeps its parameters as
floats.
|
| Modifier | Constructor and Description |
|---|---|
protected |
RoundRectangle2D()
Create a RoundRectangle2D.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(double x,
double y)
Return true if this object contains the specified point.
|
boolean |
contains(double x,
double y,
double w,
double h)
Return true if this object contains the specified rectangle
|
abstract double |
getArcHeight()
Return the arc height of this round rectangle.
|
abstract double |
getArcWidth()
Return the arc width of this round rectangle.
|
PathIterator |
getPathIterator(AffineTransform at)
Return a new path iterator which iterates over this rectangle.
|
boolean |
intersects(double x,
double y,
double w,
double h)
Return true if the given rectangle intersects this shape.
|
void |
setFrame(double x,
double y,
double w,
double h)
Set the boundary of this round rectangle.
|
abstract void |
setRoundRect(double x,
double y,
double w,
double h,
double arcWidth,
double arcHeight)
Set the values of this round rectangle.
|
void |
setRoundRect(RoundRectangle2D rr)
Set the values of this round rectangle to be the same as those
of the argument.
|
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getHeight, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, getWidth, getX, getY, intersects, isEmpty, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonalequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBounds2Dprotected RoundRectangle2D()
public abstract double getArcHeight()
getArcWidth()public abstract double getArcWidth()
getArcHeight()public abstract void setRoundRect(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 boolean contains(double x, double y)
x - The x coordinatey - The y coordinatepublic boolean contains(double x, double y, double w, double h)
x - The x coordinatey - The y coordinatew - The widthh - The heightAreapublic PathIterator getPathIterator(AffineTransform at)
at - An affine transform to apply to the objectpublic boolean intersects(double x, double y, double w, double h)
x - The x coordinatey - The y coordinatew - The widthh - The heightAreapublic void setFrame(double x, double y, double w, double h)
setFrame in class RectangularShapex - The x coordinatey - The y coordinatew - The widthh - The heightRectangularShape.getFrame()public void setRoundRect(RoundRectangle2D rr)
rr - The round rectangle to copy