|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.geom.RectangularShape
java.awt.geom.RoundRectangle2D
public abstract class RoundRectangle2D
This class implements a rectangle with rounded corners.
| Nested Class Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
protected |
RoundRectangle2D()
Create a RoundRectangle2D. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.awt.geom.RectangularShape |
|---|
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getHeight, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, getWidth, getX, getY, intersects, isEmpty, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.Shape |
|---|
getBounds2D |
| Constructor Detail |
|---|
protected RoundRectangle2D()
| Method Detail |
|---|
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 height
public boolean contains(double x,
double y)
x - The x coordinatey - The y coordinate
public boolean contains(double x,
double y,
double w,
double h)
x - The x coordinatey - The y coordinatew - The widthh - The height
Areapublic PathIterator getPathIterator(AffineTransform at)
at - An affine transform to apply to the object
public boolean intersects(double x,
double y,
double w,
double h)
x - The x coordinatey - The y coordinatew - The widthh - The height
Area
public 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||