Uses of Class java.awt.geom.RoundRectangle2D (Java Platform SE 8 )
Date: 2026-04-17

## Uses of Class
java.awt.geom.RoundRectangle2D

- Packages that use RoundRectangle2D
  Package | Description
  --- | ---
  java.awt.geom | Provides the Java 2D classes for defining and performing operations on objects related to two-dimensional geometry.

- - ### Uses of RoundRectangle2D in java.awt.geom

    Subclasses of RoundRectangle2D in java.awt.geom
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `RoundRectangle2D.Double` The `Double` class defines a rectangle with rounded corners all specified in `double` coordinates.
    `static class` | `RoundRectangle2D.Float` The `Float` class defines a rectangle with rounded corners all specified in `float` coordinates.

    Methods in java.awt.geom with parameters of type RoundRectangle2D
    Modifier and Type | Method and Description
    --- | ---
    `void` | RoundRectangle2D.`setRoundRect(RoundRectangle2D rr)` Sets this `RoundRectangle2D` to be the same as the specified `RoundRectangle2D`.
    `void` | RoundRectangle2D.Float.`setRoundRect(RoundRectangle2D rr)` Sets this `RoundRectangle2D` to be the same as the specified `RoundRectangle2D`.
    `void` | RoundRectangle2D.Double.`setRoundRect(RoundRectangle2D rr)` Sets this `RoundRectangle2D` to be the same as the specified `RoundRectangle2D`.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.