Package com.massifmaps.layers
Class SolidLayer
java.lang.Object
com.massifmaps.layers.Layer
com.massifmaps.layers.SolidLayer
Deprecated.
A solid layer that displays predefined color or bitmap.
-
Constructor Summary
ConstructorsConstructorDescriptionSolidLayer(Bitmap bitmap) Deprecated.Constructs a SolidLayer object from a bitmap.SolidLayer(Color color) Deprecated.Constructs a SolidLayer object from a color. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the bitmap of this layer.floatDeprecated.Returns the bitmap scaling factor.getColor()Deprecated.Returns the color of this layer.booleanDeprecated.Tests whether this layer is being currently updated.voidDeprecated.Sets the bitmap of this layer.voidsetBitmapScale(float scale) Deprecated.Sets the bitmap scaling factor.voidDeprecated.Sets the color of this layer.Methods inherited from class com.massifmaps.layers.Layer
containsMetaDataKey, equals, getMetaData, getMetaDataElement, getOpacity, getUpdatePriority, getVisibleZoomRange, hashCode, isPostProcessed, isVisible, refresh, setCullDelay, setMetaData, setMetaDataElement, setOpacity, setPostProcessed, setUpdatePriority, setVisible, setVisibleZoomRange, simulateClick, update
-
Constructor Details
-
SolidLayer
Deprecated.Constructs a SolidLayer object from a color.- Parameters:
color- The color for the layer.
-
SolidLayer
Deprecated.Constructs a SolidLayer object from a bitmap.- Parameters:
bitmap- The bitmap for the layer.
-
-
Method Details
-
getColor
Deprecated.Returns the color of this layer.- Returns:
- The color of this layer..
-
setColor
Deprecated.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.
-
getBitmap
Deprecated.Returns the bitmap of this layer.- Returns:
- The bitmap of this layer. Can be null.
-
setBitmap
Deprecated.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.
-
getBitmapScale
public float getBitmapScale()Deprecated.Returns the bitmap scaling factor.- Returns:
- The bitmap scaling factor.
-
setBitmapScale
public void setBitmapScale(float scale) Deprecated.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.
-
isUpdateInProgress
public boolean isUpdateInProgress()Deprecated.Description copied from class:LayerTests whether this layer is being currently updated.- Overrides:
isUpdateInProgressin classLayer- Returns:
- True when the layer is being updated or false when the layer is in steady state.
-