| Package | Description |
|---|---|
| noawt.java.awt |
| Modifier and Type | Method and Description |
|---|---|
Point |
Rectangle.getLocation()
Returns the location of this
Rectangle.
|
Point |
Point.getLocation()
Returns the location of this point.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Rectangle.add(Point
Adds the specified
Point to the bounds of this
Rectangle.
|
boolean |
Rectangle.contains(Point
Checks whether or not this
Rectangle contains the specified
Point.
|
void |
Rectangle.setLocation(Point
Moves this
Rectangle to the specified location.
|
void |
Point.setLocation(Point
Sets the location of the point to the specified location.
|
| Constructor and Description | |
|---|---|
Point(Point
Constructs and initializes a point with the same location as the specified
Point object.
|
|
Rectangle(Point
Constructs a new
Rectangle whose upper-left corner is the specified
Point, and whose width and height are both zero.
|
|
Rectangle(Point
|