public final class Bounds extends Object
| Constructor and Description |
|---|
Bounds(double x,
double y,
double width,
double height)
Initializes a new instance of the
Bounds class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getHeight()
Gets the height of the element.
|
double |
getWidth()
Gets the width of the element.
|
double |
getX()
Gets the x-axis value of the left side of the element.
|
double |
getY()
Gets the y-axis value of the top side of the element.
|
int |
hashCode() |
public Bounds(double x,
double y,
double width,
double height)
Bounds class.x - The x-axis value of the left side of the element.y - The y-axis value of the top side of the element.width - The width of the element.height - The height of the element.public double getX()
public double getY()
public double getWidth()
public double getHeight()
Copyright © 2021. All rights reserved.