Class Bounds


  • public final class Bounds
    extends Object
    Stores the position and size of an element.
    • Constructor Detail

      • Bounds

        public Bounds​(double x,
                      double y,
                      double width,
                      double height)
        Initializes a new instance of the Bounds 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

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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.