All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.geom.RoundRectangle2D.Float

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

public static class RoundRectangle2D.Float
extends RoundRectangle2D
A rectangle with rounded corners all specified in float coordinates.


Variable Index

 o archeight
The height of the arc that rounds off the corners.
 o arcwidth
The width of the arc that rounds off the corners.
 o height
The height of the rectangle.
 o width
The width of the rectangle.
 o x
The x coordinate of the rectangle.
 o y
The y coordinate of the rectangle.

Constructor Index

 o RoundRectangle2D.Float()
Constructs a new rounded rectangle, initialized to location (0.0, 0.0), size (0.0, 0.0), and corner arcs of radius 0.0.
 o RoundRectangle2D.Float(float, float, float, float, float, float)
Constructs and initializes a rectangle from the specified coordinates.

Method Index

 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 getBounds2D()
Return the high precision bounding box of the shape.
 o getHeight()
Returns the height of the rounded rectangle in double precision.
 o getWidth()
Returns the width of the rounded rectangle in double precision.
 o getX()
Returns the X coordinate of the rounded rectangle in double precision.
 o getY()
Returns the Y coordinate of the rounded rectangle in double precision.
 o isEmpty()
Determines whether the rounded rectangle is empty.
 o setRoundRect(double, double, double, double, double, double)
Sets the location, size, and arc radii of this rectangle to the specified double values.
 o setRoundRect(float, float, float, float, float, float)
Sets the location, size, and arc radii of this rectangle to the specified float values.
 o setRoundRect(RoundRectangle2D)
Sets this rounded rectangle to be the same as the specified RoundRectangle.

Variables

 o x
public float x
The x coordinate of the rectangle.

 o y
public float y
The y coordinate of the rectangle.

 o width
public float width
The width of the rectangle.

 o height
public float height
The height of the rectangle.

 o arcwidth
public float arcwidth
The width of the arc that rounds off the corners.

 o archeight
public float archeight
The height of the arc that rounds off the corners.

Constructors

 o RoundRectangle2D.Float
public RoundRectangle2D.Float()
Constructs a new rounded rectangle, initialized to location (0.0, 0.0), size (0.0, 0.0), and corner arcs of radius 0.0.

 o RoundRectangle2D.Float
public RoundRectangle2D.Float(float x,
                              float y,
                              float w,
                              float h,
                              float arcw,
                              float arch)
Constructs and initializes a rectangle from the specified coordinates.

Parameters:
x - the x coordinate
y - the y coordinate
width - the width of the rectangle
height - the height of the rectangle

Methods

 o getX
public double getX()
Returns the X coordinate of the rounded rectangle in double precision.

Overrides:
getX in class RectangularShape
 o getY
public double getY()
Returns the Y coordinate of the rounded rectangle in double precision.

Overrides:
getY in class RectangularShape
 o getWidth
public double getWidth()
Returns the width of the rounded rectangle in double precision.

Overrides:
getWidth in class RectangularShape
 o getHeight
public double getHeight()
Returns the height of the rounded rectangle in double precision.

Overrides:
getHeight in class RectangularShape
 o getArcWidth
public double getArcWidth()
Gets the width of the arc that rounds off the corners.

Overrides:
getArcWidth in class RoundRectangle2D
 o getArcHeight
public double getArcHeight()
Gets the height of the arc that rounds off the corners.

Overrides:
getArcHeight in class RoundRectangle2D
 o isEmpty
public boolean isEmpty()
Determines whether the rounded rectangle is empty.

Overrides:
isEmpty in class RectangularShape
 o setRoundRect
public void setRoundRect(float x,
                         float y,
                         float w,
                         float h,
                         float arcw,
                         float arch)
Sets the location, size, and arc radii of this rectangle to the specified float values.

 o setRoundRect
public void setRoundRect(double x,
                         double y,
                         double w,
                         double h,
                         double arcw,
                         double arch)
Sets the location, size, and arc radii of this rectangle to the specified double values.

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

Overrides:
setRoundRect in class RoundRectangle2D
 o getBounds2D
public Rectangle2D getBounds2D()
Return the high precision bounding box of the shape.


All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature