Class TextureProvider
java.lang.Object
com.arubanetworks.meridian.maprender.TextureProvider
- Direct Known Subclasses:
Marker,TextureProviderFile
A base class for providing textures to the MapView
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs a new TextureProvider with the given id. -
Method Summary
Modifier and TypeMethodDescriptionabstract android.graphics.BitmapGets a bitmap to be loaded as a texture.final longgetId()Gets the id of this provider.final android.graphics.BitmapGets the bitmap and updates size.intGet the overlay stroke color (ARGB): should be overridden by derived classesintGet the overlay stroke colorintGet the overlay fill color (ARGB): should be overridden by derived classesintGet the overlay fill colorfloat[]Gets the 2D points associated with the area should be overridden by derived classesfloat[]Get the overlay pointsintGet the overlay type: should be overridden by derived classes as neededintGet the overlaytypefloatGet the overlay stroke width: should be overridden by derived classesfloatGet the overlay stroke widthint[]getSize()Gets the size of this texture.static booleanoverlayClosed(int type) voidsetSize(int width, int height) Sets the size of this texture.
-
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 android.graphics.Bitmap getBitmap()Gets a bitmap to be loaded as a texture. -
getNativeBitmap
public final android.graphics.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
-