Class PixelRange


  • public class PixelRange
    extends Object
    Pixel Range
    Author:
    osbornb
    • Constructor Detail

      • PixelRange

        public PixelRange​(Pixel topLeft,
                          Pixel bottomRight)
        Constructor
        Parameters:
        topLeft - top left pixel
        bottomRight - bottom right pixel
    • Method Detail

      • getTopLeft

        public Pixel getTopLeft()
        Get the top left pixel
        Returns:
        top left pixel
      • setTopLeft

        public void setTopLeft​(Pixel topLeft)
        Set the top left pixel
        Parameters:
        topLeft - top left pixel
      • getBottomRight

        public Pixel getBottomRight()
        Get the bottom right pixel
        Returns:
        bottom right pixel
      • setBottomRight

        public void setBottomRight​(Pixel bottomRight)
        Set the bottom right pixel
        Parameters:
        bottomRight - bottom right pixel
      • getMinX

        public float getMinX()
        Get the minimum x pixel
        Returns:
        minimum x pixel
      • getMinY

        public float getMinY()
        Get the minimum y pixel
        Returns:
        minimum y pixel
      • getMaxX

        public float getMaxX()
        Get the maximum x pixel
        Returns:
        maximum x pixel
      • getMaxY

        public float getMaxY()
        Get the maximum y pixel
        Returns:
        maximum y pixel
      • getLeft

        public float getLeft()
        Get the left pixel
        Returns:
        left pixel
      • getTop

        public float getTop()
        Get the top pixel
        Returns:
        top pixel
      • getRight

        public float getRight()
        Get the right pixel
        Returns:
        right pixel
      • getBottom

        public float getBottom()
        Get the bottom pixel
        Returns:
        bottom pixel
      • getWidth

        public float getWidth()
        Get the pixel width
        Returns:
        pixel width
      • getHeight

        public float getHeight()
        Get the pixel height
        Returns:
        pixel height