public class Rectangle
extends java.lang.Object
| Constructor and Description |
|---|
Rectangle(double x,
double y,
double width,
double height) |
| Modifier and Type | Method and Description |
|---|---|
double |
getHeight()
Returns the height of this rectangle.
|
double |
getWidth()
Returns the width of this rectangle.
|
double |
getX()
Returns the x-coordinate of the upper-left corner of this rectangle.
|
double |
getY()
Returns the y-coordinate of the upper-left corner of this rectangle.
|
void |
setHeight(double value)
Sets the height of this rectangle.
|
void |
setWidth(double value)
Sets the width of this rectangle.
|
void |
setX(double value)
Sets the x-coordinate of the upper-left corner of this rectangle.
|
void |
setY(double value)
Sets the y-coordinate of the upper-left corner of this rectangle.
|
public final double getX()
public final void setX(double value)
public final double getY()
public final void setY(double value)
public final double getWidth()
public final void setWidth(double value)
public final double getHeight()
public final void setHeight(double value)