Class ImageContent

java.lang.Object
com.trimblemaps.mapsdk.maps.ImageContent

public final class ImageContent extends Object
Describes the image content, e.g. where text can be fit into an image.

When sizing icons with icon-text-fit, the icon size will be adjusted so that the this content box fits exactly around the text.

  • Constructor Details

    • ImageContent

      public ImageContent(float left, float top, float right, float bottom)
  • Method Details

    • getContentArray

      public float[] getContentArray()
      Get the array for this content, sorted by left, top, right, bottom.
      Returns:
      the content array.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object