
RoundRectangle2D Ja va 1.2
java.awt.geom cloneable shape
This abstract java.awt.Shape repr esents a rectangle with rounded corners, specified by the
position of the upper-left corner (before rounding), the width and height of the rectan-
gle, and the width and height of the arc used to round the corners. RoundRectangle2D is
abstract and may not be instantiated. Use the concrete subclasses RoundRectangle2D.Dou-
ble and RoundRectangle2D.Float, depending on the precision you desire for the rectangle
coordinates and dimensions.
public abstract class RoundRectangle2D extends RectangularShape {
// Protected Constructors
protected RoundRectangle2D();
// Inner Classes
public static class Double extends RoundRectangle2D;
public static class Float extends RoundRectangle2D;
// Property Accessor Methods (by property name)
public abstract double getArcHeight();
public abstract double getArcW idth();
// Public Instance Methods
public void setRoundRect(RoundRectangle2D rr);
public abstract void setRoundRect(double x, double y, double w, double h, double arcWidth, double arcHeight);
// Public Methods Overriding RectangularShape
public boolean contains(double x, double y);
public boolean contains(double x, double y, double w, double h);
public PathIterator getPathIterator(AffineTransform at);
public boolean intersects(double x, double y, double w, double h);
public void setFrame(double x, double y, double w, double h); ...