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 booleanequals(Object obj)doublegetHeight()Gets the height of the element.doublegetWidth()Gets the width of the element.doublegetX()Gets the x-axis value of the left side of the element.doublegetY()Gets the y-axis value of the top side of the element.inthashCode()
-
-
-
Constructor Detail
-
Bounds
public Bounds(double x, double y, double width, double height)Initializes a new instance of theBoundsclass.- 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.
-
-