| java.lang.Object java.awt.geom.RectangularShape java.awt.geom.RoundRectangle2D
RoundRectangle2D | abstract public class RoundRectangle2D extends RectangularShape (Code) | | The RoundRectangle2D class defines a rectangle with
rounded corners defined by a location
(x,y) , a
dimension
(w x h) , and the width and height of an arc
with which to round the corners.
This class is the abstract superclass for all objects that
store a 2D rounded rectangle.
The actual storage representation of the coordinates is left to
the subclass.
version: 1.29, 05/05/07 author: Jim Graham since: 1.2 |
Constructor Summary | |
protected | RoundRectangle2D() This is an abstract class that cannot be instantiated directly. |
Method Summary | |
public boolean | contains(double x, double y) | public boolean | contains(double x, double y, double w, double h) | public boolean | equals(Object obj) Determines whether or not the specified Object is
equal to this RoundRectangle2D . | abstract public double | getArcHeight() Gets the height of the arc that rounds off the corners.
the height of the arc that rounds off the cornersof this RoundRectangle2D . | abstract public double | getArcWidth() Gets the width of the arc that rounds off the corners. | public PathIterator | getPathIterator(AffineTransform at) Returns an iteration object that defines the boundary of this
RoundRectangle2D . | public int | hashCode() Returns the hashcode for this RoundRectangle2D . | public boolean | intersects(double x, double y, double w, double h) | public void | setFrame(double x, double y, double w, double h) | abstract public void | setRoundRect(double x, double y, double w, double h, double arcWidth, double arcHeight) Sets the location, size, and corner radii of this
RoundRectangle2D to the specified
double values. | public void | setRoundRect(RoundRectangle2D rr) Sets this RoundRectangle2D to be the same as the
specified RoundRectangle2D . |
RoundRectangle2D | protected RoundRectangle2D()(Code) | | This is an abstract class that cannot be instantiated directly.
Type-specific implementation subclasses are available for
instantiation and provide a number of formats for storing
the information necessary to satisfy the various accessor
methods below.
See Also: java.awt.geom.RoundRectangle2D.Float See Also: java.awt.geom.RoundRectangle2D.Double since: 1.2 |
contains | public boolean contains(double x, double y)(Code) | | since: 1.2 |
contains | public boolean contains(double x, double y, double w, double h)(Code) | | since: 1.2 |
equals | public boolean equals(Object obj)(Code) | | Determines whether or not the specified Object is
equal to this RoundRectangle2D . The specified
Object is equal to this RoundRectangle2D
if it is an instance of RoundRectangle2D and if its
location, size, and corner arc dimensions are the same as this
RoundRectangle2D .
Parameters: obj - an Object to be compared with thisRoundRectangle2D . true if obj is an instanceof RoundRectangle2D and has the same values;false otherwise. since: 1.6 |
getArcHeight | abstract public double getArcHeight()(Code) | | Gets the height of the arc that rounds off the corners.
the height of the arc that rounds off the cornersof this RoundRectangle2D . since: 1.2 |
getArcWidth | abstract public double getArcWidth()(Code) | | Gets the width of the arc that rounds off the corners.
the width of the arc that rounds off the cornersof this RoundRectangle2D . since: 1.2 |
getPathIterator | public PathIterator getPathIterator(AffineTransform at)(Code) | | Returns an iteration object that defines the boundary of this
RoundRectangle2D .
The iterator for this class is multi-threaded safe, which means
that this RoundRectangle2D class guarantees that
modifications to the geometry of this RoundRectangle2D
object do not affect any iterations of that geometry that
are already in process.
Parameters: at - an optional AffineTransform to be applied tothe coordinates as they are returned in the iteration, ornull if untransformed coordinates are desired the PathIterator object that returns thegeometry of the outline of thisRoundRectangle2D , one segment at a time. since: 1.2 |
hashCode | public int hashCode()(Code) | | Returns the hashcode for this RoundRectangle2D .
the hashcode for this RoundRectangle2D . since: 1.6 |
intersects | public boolean intersects(double x, double y, double w, double h)(Code) | | since: 1.2 |
setFrame | public void setFrame(double x, double y, double w, double h)(Code) | | since: 1.2 |
setRoundRect | abstract public void setRoundRect(double x, double y, double w, double h, double arcWidth, double arcHeight)(Code) | | Sets the location, size, and corner radii of this
RoundRectangle2D to the specified
double values.
Parameters: x - the X coordinate to which to set thelocation of this RoundRectangle2D Parameters: y - the Y coordinate to which to set thelocation of this RoundRectangle2D Parameters: w - the width to which to set thisRoundRectangle2D Parameters: h - the height to which to set thisRoundRectangle2D Parameters: arcWidth - the width to which to set the arc of thisRoundRectangle2D Parameters: arcHeight - the height to which to set the arc of thisRoundRectangle2D since: 1.2 |
setRoundRect | public void setRoundRect(RoundRectangle2D rr)(Code) | | Sets this RoundRectangle2D to be the same as the
specified RoundRectangle2D .
Parameters: rr - the specified RoundRectangle2D since: 1.2 |
Methods inherited from java.awt.geom.RectangularShape | public Object clone()(Code)(Java Doc) public boolean contains(Point2D p)(Code)(Java Doc) public boolean contains(Rectangle2D r)(Code)(Java Doc) public Rectangle getBounds()(Code)(Java Doc) public double getCenterX()(Code)(Java Doc) public double getCenterY()(Code)(Java Doc) public Rectangle2D getFrame()(Code)(Java Doc) abstract public double getHeight()(Code)(Java Doc) public double getMaxX()(Code)(Java Doc) public double getMaxY()(Code)(Java Doc) public double getMinX()(Code)(Java Doc) public double getMinY()(Code)(Java Doc) public PathIterator getPathIterator(AffineTransform at, double flatness)(Code)(Java Doc) abstract public double getWidth()(Code)(Java Doc) abstract public double getX()(Code)(Java Doc) abstract public double getY()(Code)(Java Doc) public boolean intersects(Rectangle2D r)(Code)(Java Doc) abstract public boolean isEmpty()(Code)(Java Doc) abstract public void setFrame(double x, double y, double w, double h)(Code)(Java Doc) public void setFrame(Point2D loc, Dimension2D size)(Code)(Java Doc) public void setFrame(Rectangle2D r)(Code)(Java Doc) public void setFrameFromCenter(double centerX, double centerY, double cornerX, double cornerY)(Code)(Java Doc) public void setFrameFromCenter(Point2D center, Point2D corner)(Code)(Java Doc) public void setFrameFromDiagonal(double x1, double y1, double x2, double y2)(Code)(Java Doc) public void setFrameFromDiagonal(Point2D p1, Point2D p2)(Code)(Java Doc)
|
|
|