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.
archeight- The height of the arc that rounds off the corners.
arcwidth- The width of the arc that rounds off the corners.
height- The height of the rectangle.
width- The width of the rectangle.
x- The x coordinate of the rectangle.
y- The y coordinate of the rectangle.
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.
RoundRectangle2D.Float(float, float, float, float, float, float)
- Constructs and initializes a rectangle from the specified 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.
getBounds2D()
- Return the high precision bounding box of the shape.
getHeight()
- Returns the height of the rounded rectangle in double precision.
getWidth()
- Returns the width of the rounded rectangle in double precision.
getX()
- Returns the X coordinate of the rounded rectangle in double precision.
getY()
- Returns the Y coordinate of the rounded rectangle in double precision.
isEmpty()
- Determines whether the rounded rectangle is empty.
setRoundRect(double, double, double, double, double, double)
- Sets the location, size, and arc radii of this rectangle to the
specified double values.
setRoundRect(float, float, float, float, float, float)
- Sets the location, size, and arc radii of this rectangle to the
specified float values.
setRoundRect(RoundRectangle2D)
- Sets this rounded rectangle to be the same as the specified
RoundRectangle.
x
public float x
- The x coordinate of the rectangle.
y
public float y
- The y coordinate of the rectangle.
width
public float width
- The width of the rectangle.
height
public float height
- The height of the rectangle.
arcwidth
public float arcwidth
- The width of the arc that rounds off the corners.
archeight
public float archeight
- The height of the arc that rounds off the corners.
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.
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
getX
public double getX()
- Returns the X coordinate of the rounded rectangle in double precision.
- Overrides:
- getX in class RectangularShape
getY
public double getY()
- Returns the Y coordinate of the rounded rectangle in double precision.
- Overrides:
- getY in class RectangularShape
getWidth
public double getWidth()
- Returns the width of the rounded rectangle in double precision.
- Overrides:
- getWidth in class RectangularShape
getHeight
public double getHeight()
- Returns the height of the rounded rectangle in double precision.
- Overrides:
- getHeight in class RectangularShape
getArcWidth
public double getArcWidth()
- Gets the width of the arc that rounds off the corners.
- Overrides:
- getArcWidth in class RoundRectangle2D
getArcHeight
public double getArcHeight()
- Gets the height of the arc that rounds off the corners.
- Overrides:
- getArcHeight in class RoundRectangle2D
isEmpty
public boolean isEmpty()
- Determines whether the rounded rectangle is empty.
- Overrides:
- isEmpty in class RectangularShape
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.
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
setRoundRect
public void setRoundRect(RoundRectangle2D rr)
- Sets this rounded rectangle to be the same as the specified
RoundRectangle.
- Overrides:
- setRoundRect in class RoundRectangle2D
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