java.lang.Object | ||
↳ | com.carto.layers.Layer | |
↳ | com.carto.layers.SolidLayer |
This class is deprecated.
No replacement.
A solid layer that displays predefined color or bitmap.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SolidLayer(Color color)
Constructs a SolidLayer object from a color.
| |||||||||||
SolidLayer(Bitmap bitmap)
Constructs a SolidLayer object from a bitmap.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
Bitmap |
getBitmap()
Returns the bitmap of this layer.
| ||||||||||
float |
getBitmapScale()
Returns the bitmap scaling factor.
| ||||||||||
Color |
getColor()
Returns the color of this layer.
| ||||||||||
boolean |
isUpdateInProgress()
Tests whether this layer is being currently updated.
| ||||||||||
void |
setBitmap(Bitmap bitmap)
Sets the bitmap of this layer.
| ||||||||||
void |
setBitmapScale(float scale)
Sets the bitmap scaling factor.
| ||||||||||
void |
setColor(Color color)
Sets the color of this layer.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a SolidLayer object from a color.
color | The color for the layer. |
---|
Constructs a SolidLayer object from a bitmap.
bitmap | The bitmap for the layer. |
---|
Returns the bitmap of this layer.
Returns the bitmap scaling factor.
Tests whether this layer is being currently updated.
Sets the bitmap of this layer.
bitmap | The new bitmap for the layer. Can be null, in that case the layer color is used. |
---|
Sets the bitmap scaling factor.
scale | The new bitmap scaling factor. Default is 1, which corresponds to 1:1 mapping between bitmap pixels and screen pixels. |
---|
Sets the color of this layer.
color | The new color for the layer. Note: if bitmap is defined, the color is multiplied with the bitmap. |
---|