| Package | Description |
|---|---|
| noawt.java.awt |
| Modifier and Type | Method and Description |
|---|---|
Dimension |
Dimension.getSize()
Gets the size of this
Dimension object.
|
Dimension |
Rectangle.getSize()
Gets the size of this
Rectangle, represented by the returned
Dimension.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Dimension.setSize(Dimension
Sets the size of this
Dimension object to the specified size.
|
void |
Rectangle.setSize(Dimension
Sets the size of this
Rectangle to match the specified
Dimension.
|
| Constructor and Description | |
|---|---|
Dimension(Dimension
Creates an instance of
Dimension whose width and height are the same as for the specified dimension.
|
|
Rectangle(Dimension
Constructs a new
Rectangle whose top left corner is (0, 0) and whose width and height are specified by the
Dimension argument.
|
|
Rectangle(Point
|