public class Rectangle extends Object
| Constructor and Description |
|---|
Rectangle(float x,
float y,
float width,
float height) |
Rectangle(int x,
int y,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
float |
getBottom() |
float |
getHeight() |
float |
getLeft() |
float |
getRight() |
float |
getTop() |
float |
getWidth() |
float |
getX() |
float |
getY() |
void |
setBottom(float bottom) |
void |
setHeight(float height) |
void |
setLeft(float left) |
void |
setRight(float right) |
void |
setTop(float top) |
void |
setWidth(float width) |
void |
setX(float x) |
void |
setY(float y) |
String |
toString() |
public Rectangle(float x,
float y,
float width,
float height)
public Rectangle(int x,
int y,
int width,
int height)
public float getX()
public void setX(float x)
public float getY()
public void setY(float y)
public float getLeft()
public void setLeft(float left)
public float getTop()
public void setTop(float top)
public float getWidth()
public void setWidth(float width)
public float getHeight()
public void setHeight(float height)
public float getRight()
public void setRight(float right)
public float getBottom()
public void setBottom(float bottom)