public class

Label

extends Billboard
java.lang.Object
   ↳ com.carto.vectorelements.VectorElement
     ↳ com.carto.vectorelements.Billboard
       ↳ com.carto.vectorelements.Label
Known Direct Subclasses

Class Overview

An abstract billboard element with a dynamically drawn bitmap that can be displayed on the map.

Summary

Public Methods
synchronized void delete()
Bitmap drawBitmap(float dpToPX)
Draws a custom bitmap for this label that will be used for drawing the label on the map.
LabelStyle getStyle()
Returns the style of this label.
void setStyle(LabelStyle style)
Sets the style for this label.
[Expand]
Inherited Methods
From class com.carto.vectorelements.Billboard
From class com.carto.vectorelements.VectorElement
From class java.lang.Object

Public Methods

public synchronized void delete ()

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.

public LabelStyle getStyle ()

Returns the style of this label.

Returns
  • The style that defines what this label looks like.

public void setStyle (LabelStyle style)

Sets the style for this label.

Parameters
style The new style that defines what this marker looks like.