Class Label

Direct Known Subclasses:
Text

public class Label extends Billboard
An abstract billboard element with a dynamically drawn bitmap that can be displayed on the map.
  • Method Details

    • drawBitmap

      public Bitmap drawBitmap(float dpToPX)
      Draws a custom bitmap for this label that will be used for drawing the label on the map.
      The method is called each time the label gets reloaded internally.
      Parameters:
      dpToPX - The value used for converting display independent pixels (dp) to pixels (px).
      Returns:
      The custom label bitmap.
    • getStyle

      public LabelStyle getStyle()
      Returns the style of this label.
      Returns:
      The style that defines what this label looks like.
    • setStyle

      public void setStyle(LabelStyle style)
      Sets the style for this label.
      Parameters:
      style - The new style that defines what this marker looks like.