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
ConstructorsModifierConstructorDescriptionprotected
Constructs a new TextureProvider with the given id. -
Method Summary
Modifier and TypeMethodDescriptionabstract Bitmap
Gets a bitmap to be loaded as a texture.final long
getId()
Gets the id of this provider.final Bitmap
Gets the bitmap and updates size.int
Get the overlay stroke color (ARGB): should be overridden by derived classesint
Get the overlay stroke colorint
Get the overlay fill color (ARGB): should be overridden by derived classesint
Get the overlay fill colorfloat[]
Gets the 2D points associated with the area should be overridden by derived classesfloat[]
Get the overlay pointsint
Get the overlay type: should be overridden by derived classes as neededint
Get the overlaytypefloat
Get the overlay stroke width: should be overridden by derived classesfloat
Get the overlay stroke widthint[]
getSize()
Gets the size of this texture.static boolean
overlayClosed
(int type) void
setSize
(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
Gets a bitmap to be loaded as a texture. -
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
-