|
||||
This class encapsulates the location and dimensions of a rectangle.
| Constructor Summary | |
|---|---|
GRectangle(x, y, width, height)
GRectangle with the specified coordinates
and size. |
|
| Method Summary | |
|---|---|
getHeight()
GRectangle. |
|
getWidth()
GRectangle. |
|
getX()
GRectangle. |
|
getY()
GRectangle. |
|
| Constructor Detail |
|---|
GRectangle(x, y, width, height)GRectangle with the specified coordinates
and size.
Usage: | rect = GRectangle(x, y, width, height) | ||||||||
Parameters: |
|
| Method Detail |
|---|
getHeight()GRectangle.
Usage: | height = rect.getHeight() |
Returns: | The height of this GRectangle
|
getWidth()GRectangle.
Usage: | width = rect.getWidth() |
Returns: | The width of this GRectangle
|
getX()GRectangle.
Usage: | x = rect.getX() |
Returns: | The x coordinate of this GRectangle
|
getY()GRectangle.
Usage: | y = rect.getY() |
Returns: | The y coordinate of this GRectangle
|
|
||||