public class

SolidLayer

extends Layer
java.lang.Object
   ↳ com.carto.layers.Layer
     ↳ com.carto.layers.SolidLayer

This class is deprecated.
No replacement.

Class Overview

A solid layer that displays predefined color or bitmap.

Summary

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
From class com.carto.layers.Layer
From class java.lang.Object

Public Constructors

public SolidLayer (Color color)

Constructs a SolidLayer object from a color.

Parameters
color The color for the layer.

public SolidLayer (Bitmap bitmap)

Constructs a SolidLayer object from a bitmap.

Parameters
bitmap The bitmap for the layer.

Public Methods

public synchronized void delete ()

public Bitmap getBitmap ()

Returns the bitmap of this layer.

Returns
  • The bitmap of this layer. Can be null.

public float getBitmapScale ()

Returns the bitmap scaling factor.

Returns
  • The bitmap scaling factor.

public Color getColor ()

Returns the color of this layer.

Returns
  • The color of this layer..

public boolean isUpdateInProgress ()

Tests whether this layer is being currently updated.

Returns
  • True when the layer is being updated or false when the layer is in steady state.

public void setBitmap (Bitmap bitmap)

Sets the bitmap of this layer.

Parameters
bitmap The new bitmap for the layer. Can be null, in that case the layer color is used.

public void setBitmapScale (float scale)

Sets the bitmap scaling factor.

Parameters
scale The new bitmap scaling factor. Default is 1, which corresponds to 1:1 mapping between bitmap pixels and screen pixels.

public void setColor (Color color)

Sets the color of this layer.

Parameters
color The new color for the layer. Note: if bitmap is defined, the color is multiplied with the bitmap.