Class TextureProvider

java.lang.Object
com.arubanetworks.meridian.maprender.TextureProvider
Direct Known Subclasses:
Marker, TextureProviderFile

public abstract class TextureProvider extends Object
A base class for providing textures to the MapView
  • Constructor Details

    • TextureProvider

      protected TextureProvider()
      Constructs a new TextureProvider with the given id.

      The id does not need to be unique.

  • Method Details

    • getBitmap

      public abstract Bitmap getBitmap()
      Gets a bitmap to be loaded as a texture.
    • getNativeBitmap

      public final Bitmap getNativeBitmap()
      Gets the bitmap and updates size.
    • getId

      public final long getId()
      Gets the id of this provider.
    • setSize

      public void setSize(int width, int height)
      Sets the size of this texture.
    • getSize

      public int[] getSize()
      Gets the size of this texture.
      Returns:
      An array of two integers, the width and height.
    • getOverlayPoints

      public float[] getOverlayPoints()
      Gets the 2D points associated with the area should be overridden by derived classes
    • getOverlayPointsInterface

      public float[] getOverlayPointsInterface()
      Get the overlay points
    • overlayClosed

      public static boolean overlayClosed(int type)
    • getOverlayType

      public int getOverlayType()
      Get the overlay type: should be overridden by derived classes as needed
    • getOverlayTypeInterface

      public int getOverlayTypeInterface()
      Get the overlaytype
    • getOverlayWidth

      public float getOverlayWidth()
      Get the overlay stroke width: should be overridden by derived classes
    • getOverlayWidthInterface

      public float getOverlayWidthInterface()
      Get the overlay stroke width
    • getOverlayColor

      public int getOverlayColor()
      Get the overlay stroke color (ARGB): should be overridden by derived classes
    • getOverlayColorInterface

      public int getOverlayColorInterface()
      Get the overlay stroke color
    • getOverlayFillColor

      public int getOverlayFillColor()
      Get the overlay fill color (ARGB): should be overridden by derived classes
    • getOverlayFillColorInterface

      public int getOverlayFillColorInterface()
      Get the overlay fill color