public class Rectangle extends Object
Rectangle for changes
Constructor and Description |
---|
Rectangle() |
Rectangle(float x,
float y,
float width,
float height)
Creates a new instance of Rectangle
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
deepClone() |
boolean |
equals(Object o) |
float |
getHeight()
Gets or Sets Height of rectangle
|
float |
getWidth()
Gets or Sets Width of rectangle
|
float |
getX()
Gets or Sets X position of rectangle
|
float |
getY()
Gets or Sets Y position of rectangle
|
int |
hashCode() |
void |
setHeight(float value) |
void |
setWidth(float value) |
void |
setX(float value) |
void |
setY(float value) |
String |
toString() |
public Rectangle()
public Rectangle(float x, float y, float width, float height)
Creates a new instance of Rectangle
x
- X position of rectangley
- Y position of Rectanglewidth
- Width of Rectangleheight
- Height of Rectanglepublic Rectangle deepClone()
public float getHeight()
Gets or Sets Height of rectangle
public float getWidth()
Gets or Sets Width of rectangle
public float getX()
Gets or Sets X position of rectangle
public float getY()
Gets or Sets Y position of rectangle
public void setHeight(float value)
public void setWidth(float value)
public void setX(float value)
public void setY(float value)
Copyright © 2019. All rights reserved.