Home » openjdk-7 » java » awt » geom » [javadoc | source]
java.awt.geom
abstract public class: RoundRectangle2D [javadoc | source]
java.lang.Object
   java.awt.geom.RectangularShape
      java.awt.geom.RoundRectangle2D

All Implemented Interfaces:
    Shape, Cloneable

Direct Known Subclasses:
    Float, Double

The RoundRectangle2D class defines a rectangle with rounded corners defined by a location {@code (x,y)}, a dimension {@code (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.

Nested Class Summary:
public static class  RoundRectangle2D.Float  The Float class defines a rectangle with rounded corners all specified in float coordinates. 
public static class  RoundRectangle2D.Double  The Double class defines a rectangle with rounded corners all specified in double coordinates. 
Constructor:
 protected RoundRectangle2D() 
Method from java.awt.geom.RoundRectangle2D Summary:
contains,   contains,   equals,   getArcHeight,   getArcWidth,   getPathIterator,   hashCode,   intersects,   setFrame,   setRoundRect,   setRoundRect
Methods from java.awt.geom.RectangularShape:
clone,   contains,   contains,   getBounds,   getCenterX,   getCenterY,   getFrame,   getHeight,   getMaxX,   getMaxY,   getMinX,   getMinY,   getPathIterator,   getWidth,   getX,   getY,   intersects,   isEmpty,   setFrame,   setFrame,   setFrame,   setFrameFromCenter,   setFrameFromCenter,   setFrameFromDiagonal,   setFrameFromDiagonal
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.awt.geom.RoundRectangle2D Detail:
 public boolean contains(double x,
    double y) 
    {@inheritDoc}
 public boolean contains(double x,
    double y,
    double w,
    double h) 
    {@inheritDoc}
 public boolean equals(Object obj) 
    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.
 abstract public double getArcHeight()
    Gets the height of the arc that rounds off the corners.
 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. 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.
 public int hashCode() 
    Returns the hashcode for this RoundRectangle2D.
 public boolean intersects(double x,
    double y,
    double w,
    double h) 
    {@inheritDoc}
 public  void setFrame(double x,
    double y,
    double w,
    double h) 
    {@inheritDoc}
 public  void setRoundRect(RoundRectangle2D rr) 
    Sets this RoundRectangle2D to be the same as the specified RoundRectangle2D.
 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.