|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.geom.RectangularShape | +--java.awt.geom.RoundRectangle2D
This class is the abstract superclass for all objects which store a 2D rounded rectangle. The actual storage representation of the coordinates is left to the subclass.
Inner Class Summary | |
static | RoundRectangle2D.Double
A rectangle with rounded corners all specified in double coordinates. |
static | RoundRectangle2D.Float
A rectangle with rounded corners all specified in float coordinates. |
Constructor Summary | |
RoundRectangle2D()
This is an abstract class that cannot be instantiated directly. |
Method Summary | |
boolean | contains(double x,
double y,
double w,
double h)
Test if the interior of the Shape entirely contains the given set of rectangular coordinates. |
boolean | contains(double x,
double y)
Test if a given coordinate is inside the boundary of the shape. |
abstract double | getArcHeight()
Gets the height of the arc that rounds off the corners. |
abstract double | getArcWidth()
Gets the width of the arc that rounds off the corners. |
PathIterator | getPathIterator(AffineTransform at)
Return an iteration object that defines the boundary of the shape. |
boolean | intersects(double x,
double y,
double w,
double h)
Test if the interior of the Shape intersects the interior of a given set of rectangular coordinates. |
void | setFrame(double x,
double y,
double w,
double h)
Sets the location and size of the outer bounds of this shape to the specified rectangular values. |
abstract void | setRoundRect(double x,
double y,
double w,
double h,
double arcWidth,
double arcHeight)
Sets the location, size, and corner radii of this rounded rectangle to the specified double values. |
void | setRoundRect(RoundRectangle2D rr)
Sets this rounded rectangle to be the same as the specified RoundRectangle. |
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 |
Constructor Detail |
protected RoundRectangle2D()
RoundRectangle2D.Float
,
RoundRectangle2D.Double
Method Detail |
public abstract double getArcWidth()
public abstract double getArcHeight()
public abstract void setRoundRect(double x, double y, double w, double h, double arcWidth, double arcHeight)
public void setRoundRect(RoundRectangle2D rr)
public void setFrame(double x, double y, double w, double h)
public boolean contains(double x, double y)
public boolean intersects(double x, double y, double w, double h)
public boolean contains(double x, double y, double w, double h)
public PathIterator getPathIterator(AffineTransform at)
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |