public abstract class TextureProvider
extends java.lang.Object
A base class for providing textures to the MapView
Modifier and Type | Class and Description |
---|---|
class |
TextureProvider.OverlayType
Overlay type definitions
|
Modifier | Constructor and Description |
---|---|
protected |
TextureProvider()
Constructs a new TextureProvider with the given id.
|
Modifier and Type | Method and Description |
---|---|
abstract android.graphics.Bitmap |
getBitmap()
Gets a bitmap to be loaded as a texture.
|
long |
getId()
Gets the id of this provider.
|
android.graphics.Bitmap |
getNativeBitmap()
Gets the bitmap and updates size.
|
int |
getOverlayColor()
Get the overlay stroke color (ARGB): should be overridden by derived classes
|
int |
getOverlayColorInterface()
Get the overlay stroke color
|
int |
getOverlayFillColor()
Get the overlay fill color (ARGB): should be overridden by derived classes
|
int |
getOverlayFillColorInterface()
Get the overlay fill color
|
float[] |
getOverlayPoints()
Gets the 2D points associated with the area should be overridden by derived classes
|
float[] |
getOverlayPointsInterface()
Get the overlay points
|
int |
getOverlayType()
Get the overlay type: should be overridden by derived classes as needed
|
int |
getOverlayTypeInterface()
Get the overlaytype
|
float |
getOverlayWidth()
Get the overlay stroke width: should be overridden by derived classes
|
float |
getOverlayWidthInterface()
Get the overlay stroke width
|
int[] |
getSize()
Gets the size of this texture.
|
static boolean |
overlayClosed(int type) |
void |
setSize(int width,
int height)
Sets the size of this texture.
|
protected TextureProvider()
Constructs a new TextureProvider with the given id. The id does not need to be unique.
public abstract android.graphics.Bitmap getBitmap()
Gets a bitmap to be loaded as a texture.
public final android.graphics.Bitmap getNativeBitmap()
Gets the bitmap and updates size.
public final long getId()
Gets the id of this provider.
public void setSize(int width, int height)
Sets the size of this texture.
public int[] getSize()
Gets the size of this texture.
public float[] getOverlayPoints()
Gets the 2D points associated with the area should be overridden by derived classes
public float[] getOverlayPointsInterface()
Get the overlay points
public static boolean overlayClosed(int type)
public int getOverlayType()
Get the overlay type: should be overridden by derived classes as needed
public int getOverlayTypeInterface()
Get the overlaytype
public float getOverlayWidth()
Get the overlay stroke width: should be overridden by derived classes
public float getOverlayWidthInterface()
Get the overlay stroke width
public int getOverlayColor()
Get the overlay stroke color (ARGB): should be overridden by derived classes
public int getOverlayColorInterface()
Get the overlay stroke color
public int getOverlayFillColor()
Get the overlay fill color (ARGB): should be overridden by derived classes
public int getOverlayFillColorInterface()
Get the overlay fill color