Class SolidLayer

java.lang.Object
com.massifmaps.layers.Layer
com.massifmaps.layers.SolidLayer

public class SolidLayer extends Layer
Deprecated.
A solid layer that displays predefined color or bitmap.
  • Constructor Details

    • SolidLayer

      public SolidLayer(Color color)
      Deprecated.
      Constructs a SolidLayer object from a color.
      Parameters:
      color - The color for the layer.
    • SolidLayer

      public SolidLayer(Bitmap bitmap)
      Deprecated.
      Constructs a SolidLayer object from a bitmap.
      Parameters:
      bitmap - The bitmap for the layer.
  • Method Details

    • getColor

      public Color getColor()
      Deprecated.
      Returns the color of this layer.
      Returns:
      The color of this layer..
    • setColor

      public void setColor(Color color)
      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

      public Bitmap getBitmap()
      Deprecated.
      Returns the bitmap of this layer.
      Returns:
      The bitmap of this layer. Can be null.
    • setBitmap

      public void setBitmap(Bitmap bitmap)
      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: Layer
      Tests whether this layer is being currently updated.
      Overrides:
      isUpdateInProgress in class Layer
      Returns:
      True when the layer is being updated or false when the layer is in steady state.