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.
RoundRectangle2D.Float- A rectangle with rounded corners all specified in float coordinates.
RoundRectangle2D()
-
contains(double, double)
- Test if a given coordinate is inside the boundary of the shape.
contains(double, double, double, double)
- Test if the interior of the Shape entirely contains the given
set of rectangular coordinates.
getArcHeight()
- Gets the height of the arc that rounds off the corners.
getArcWidth()
- Gets the width of the arc that rounds off the corners.
getPathIterator(AffineTransform)
- Return an iteration object that defines the boundary of the
shape.
intersects(double, double, double, double)
- Test if the interior of the Shape intersects the interior of a given
set of rectangular coordinates.
setBounds(double, double, double, double)
- Sets the location and size of the outer bounds of this shape
to the specified rectangular values.
setRoundRect(double, double, double, double, double, double)
- Sets the location, size, and corner radii of this rounded
rectangle to the specified double values.
setRoundRect(RoundRectangle2D)
- Sets this rounded rectangle to be the same as the specified
RoundRectangle.
RoundRectangle2D
protected RoundRectangle2D()
getArcWidth
public abstract double getArcWidth()
- Gets the width of the arc that rounds off the corners.
getArcHeight
public abstract double getArcHeight()
- Gets the height of the arc that rounds off the corners.
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.
setRoundRect
public void setRoundRect(RoundRectangle2D rr)
- Sets this rounded rectangle to be the same as the specified
RoundRectangle.
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
contains
public boolean contains(double x,
double y)
- Test if a given coordinate is inside the boundary of the shape.
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.
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.
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