Class BoundingRect


  • public class BoundingRect
    extends Object
    A bounding box for an area inside an image.
    • Constructor Detail

      • BoundingRect

        public BoundingRect()
    • Method Detail

      • x

        public int x()
        Get the x value.
        Returns:
        the x value
      • withX

        public BoundingRect withX​(int x)
        Set the x value.
        Parameters:
        x - the x value to set
        Returns:
        the BoundingRect object itself.
      • y

        public int y()
        Get the y value.
        Returns:
        the y value
      • withY

        public BoundingRect withY​(int y)
        Set the y value.
        Parameters:
        y - the y value to set
        Returns:
        the BoundingRect object itself.
      • w

        public int w()
        Get the w value.
        Returns:
        the w value
      • withW

        public BoundingRect withW​(int w)
        Set the w value.
        Parameters:
        w - the w value to set
        Returns:
        the BoundingRect object itself.
      • h

        public int h()
        Get the h value.
        Returns:
        the h value
      • withH

        public BoundingRect withH​(int h)
        Set the h value.
        Parameters:
        h - the h value to set
        Returns:
        the BoundingRect object itself.