Package com.bayesserver
Class Bounds
- java.lang.Object
-
- com.bayesserver.Bounds
-
public final class Bounds extends Object
Stores the position and size of an element.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
Bounds
public Bounds(double x, double y, double width, double height)
Initializes a new instance of theBounds
class.- Parameters:
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.
-
-
Method Detail
-
getX
public double getX()
Gets the x-axis value of the left side of the element.
-
getY
public double getY()
Gets the y-axis value of the top side of the element.
-
getWidth
public double getWidth()
Gets the width of the element.
-
getHeight
public double getHeight()
Gets the height of the element.
-
-