Class TileBoundingBoxAndroidUtils

java.lang.Object
mil.nga.geopackage.tiles.TileBoundingBoxAndroidUtils

public class TileBoundingBoxAndroidUtils extends Object
Tile Bounding Box utility methods relying on Android libraries
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static android.graphics.RectF
    getFloatRectangle(long width, long height, BoundingBox boundingBox, BoundingBox boundingBoxSection)
    Get a rectangle with floating point boundaries using the tile width, height, bounding box, and the bounding box section within the outer box to build the rectangle from
    static android.graphics.Rect
    getRectangle(long width, long height, BoundingBox boundingBox, BoundingBox boundingBoxSection)
    Get a rectangle using the tile width, height, bounding box, and the bounding box section within the outer box to build the rectangle from
    static android.graphics.RectF
    getRoundedFloatRectangle(long width, long height, BoundingBox boundingBox, BoundingBox boundingBoxSection)
    Get a rectangle with rounded floating point boundaries using the tile width, height, bounding box, and the bounding box section within the outer box to build the rectangle from
    static boolean
    isValid(android.graphics.Rect rect)
    Check if the rectangle is valid
    static boolean
    isValid(android.graphics.RectF rectF)
    Check if the rectangle is valid
    static boolean
    isValidAllowEmpty(android.graphics.Rect rect)
    Check if the rectangle is valid allowing empty ranges
    static boolean
    isValidAllowEmpty(android.graphics.RectF rectF)
    Check if the rectangle is valid allowing empty ranges

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TileBoundingBoxAndroidUtils

      public TileBoundingBoxAndroidUtils()
  • Method Details

    • getRectangle

      public static android.graphics.Rect getRectangle(long width, long height, BoundingBox boundingBox, BoundingBox boundingBoxSection)
      Get a rectangle using the tile width, height, bounding box, and the bounding box section within the outer box to build the rectangle from
      Parameters:
      width - width
      height - height
      boundingBox - full bounding box
      boundingBoxSection - rectangle bounding box section
      Returns:
      rectangle
    • getRoundedFloatRectangle

      public static android.graphics.RectF getRoundedFloatRectangle(long width, long height, BoundingBox boundingBox, BoundingBox boundingBoxSection)
      Get a rectangle with rounded floating point boundaries using the tile width, height, bounding box, and the bounding box section within the outer box to build the rectangle from
      Parameters:
      width - width
      height - height
      boundingBox - full bounding box
      boundingBoxSection - rectangle bounding box section
      Returns:
      floating point rectangle
      Since:
      1.3.0
    • getFloatRectangle

      public static android.graphics.RectF getFloatRectangle(long width, long height, BoundingBox boundingBox, BoundingBox boundingBoxSection)
      Get a rectangle with floating point boundaries using the tile width, height, bounding box, and the bounding box section within the outer box to build the rectangle from
      Parameters:
      width - width
      height - height
      boundingBox - full bounding box
      boundingBoxSection - rectangle bounding box section
      Returns:
      floating point rectangle
    • isValid

      public static boolean isValid(android.graphics.Rect rect)
      Check if the rectangle is valid
      Parameters:
      rect - rectangle
      Returns:
      true if valid
      Since:
      1.3.1
    • isValidAllowEmpty

      public static boolean isValidAllowEmpty(android.graphics.Rect rect)
      Check if the rectangle is valid allowing empty ranges
      Parameters:
      rect - rectangle
      Returns:
      true if valid
      Since:
      1.3.1
    • isValid

      public static boolean isValid(android.graphics.RectF rectF)
      Check if the rectangle is valid
      Parameters:
      rectF - rectangle
      Returns:
      true if valid
      Since:
      1.3.1
    • isValidAllowEmpty

      public static boolean isValidAllowEmpty(android.graphics.RectF rectF)
      Check if the rectangle is valid allowing empty ranges
      Parameters:
      rectF - rectangle
      Returns:
      true if valid
      Since:
      1.3.1