All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.geom.RoundRectangle2D

java.lang.Object
    |
    +----java.awt.geom.RectangularShape
            |
            +----java.awt.geom.RoundRectangle2D

public abstract class RoundRectangle2D
extends RectangularShape
A rectangle with rounded corners defined by a location (x, y), a dimension (w x h), and the width and height of an arc to round the corners with.

This class is only the abstract superclass for all objects which store a 2D rounded rectangle. The actual storage representation of the coordinates is left to the subclass.


Class Index

 o RoundRectangle2D.Float
A rectangle with rounded corners all specified in float coordinates.

Constructor Index

 o RoundRectangle2D()

Method Index

 o contains(double, double)
Test if a given coordinate is inside the boundary of the shape.
 o contains(double, double, double, double)
Test if the interior of the Shape entirely contains the given set of rectangular coordinates.
 o getArcHeight()
Gets the height of the arc that rounds off the corners.
 o getArcWidth()
Gets the width of the arc that rounds off the corners.
 o getPathIterator(AffineTransform)
Return an iteration object that defines the boundary of the shape.
 o intersects(double, double, double, double)
Test if the interior of the Shape intersects the interior of a given set of rectangular coordinates.
 o setBounds(double, double, double, double)
Sets the location and size of the outer bounds of this shape to the specified rectangular values.
 o setRoundRect(double, double, double, double, double, double)
Sets the location, size, and corner radii of this rounded rectangle to the specified double values.
 o setRoundRect(RoundRectangle2D)
Sets this rounded rectangle to be the same as the specified RoundRectangle.

Constructors

 o RoundRectangle2D
protected RoundRectangle2D()

Methods

 o getArcWidth
public abstract double getArcWidth()
Gets the width of the arc that rounds off the corners.

 o getArcHeight
public abstract double getArcHeight()
Gets the height of the arc that rounds off the corners.

 o setRoundRect
public 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.

 o setRoundRect
public void setRoundRect(RoundRectangle2D rr)
Sets this rounded rectangle to be the same as the specified RoundRectangle.

 o setBounds
public void setBounds(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.

Overrides:
setBounds in class RectangularShape
 o contains
public boolean contains(double x,
                        double y)
Test if a given coordinate is inside the boundary of the shape.

 o intersects
public 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.

 o contains
public 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.

 o getPathIterator
public PathIterator getPathIterator(AffineTransform at)
Return an iteration object that defines the boundary of the shape.


All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature