| Package | Description |
|---|---|
| java.awt |
Contains all of the classes for creating user interfaces and for painting graphics and images.
|
| java.awt.geom |
Provides the Java 2D classes for defining and performing operations on objects related to two-dimensional geometry.
|
| javax.swing.plaf |
Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Dimension
The
Dimension class encapsulates the width and height of a component (in integer precision) in a single object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Arc2D.setArc(Point2D
Sets the location, size, angular extents, and closure type of this arc to the specified values.
|
void |
RectangularShape.setFrame(Point2D
Sets the location and size of the framing rectangle of this
Shape to the specified
Point2D and
Dimension2D, respectively.
|
void |
Dimension2D.setSize(Dimension2D
Sets the size of this
Dimension2D object to match the specified size.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DimensionUIResource
|