Package com.massifmaps.vectorelements
Class Label
java.lang.Object
com.massifmaps.vectorelements.VectorElement
com.massifmaps.vectorelements.Billboard
com.massifmaps.vectorelements.Label
- Direct Known Subclasses:
Text
An abstract billboard element with a dynamically drawn bitmap that can be displayed on the map.
-
Method Summary
Modifier and TypeMethodDescriptiondrawBitmap(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.getStyle()Returns the style of this label.voidsetStyle(LabelStyle style) Sets the style for this label.Methods inherited from class com.massifmaps.vectorelements.Billboard
getBaseBillboard, getBounds, getGeometry, getRootGeometry, getRotation, setBaseBillboard, setGeometry, setPos, setRotationMethods inherited from class com.massifmaps.vectorelements.VectorElement
containsMetaDataKey, equals, getId, getMetaData, getMetaDataElement, hashCode, isVisible, notifyElementChanged, setId, setMetaData, setMetaDataElement, setVisible
-
Method Details
-
drawBitmap
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
Returns the style of this label.- Returns:
- The style that defines what this label looks like.
-
setStyle
Sets the style for this label.- Parameters:
style- The new style that defines what this marker looks like.
-