Package globus.glmap
Class GLMapLabel
java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.GLMapDrawObject
globus.glmap.GLMapDrawable
globus.glmap.GLMapLabel
Drawable that displays a text label.
-
Nested Class Summary
Nested classes/interfaces inherited from class globus.glmap.GLMapDrawable
GLMapDrawable.TransformMode -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new label that will be injected into the map tile data.GLMapLabel(int drawOrder) Creates a new label with the given draw order. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetText(String text, GLMapVectorStyle style) Sets new text to drawvoidsetText(String text, GLMapVectorStyle style, Runnable onReadyToDraw) Sets new text to drawMethods inherited from class globus.glmap.GLMapDrawable
getAngle, getHeight, getOffset, getPosition, getScale, getWidth, hitTest, isRotatesWithMap, setAngle, setOffset, setPosition, setRotatesWithMap, setScale, setTransformModeMethods inherited from class globus.glmap.GLMapDrawObject
getDrawOrder, isHidden, setHiddenMethods inherited from class globus.glmap.GLNativeObject
dispose
-
Constructor Details
-
GLMapLabel
public GLMapLabel(int drawOrder) Creates a new label with the given draw order.- Parameters:
drawOrder- Draw order used to sort objects on map
-
GLMapLabel
public GLMapLabel()Creates a new label that will be injected into the map tile data.
-
-
Method Details
-
setText
public void setText(@NonNull String text, @NonNull GLMapVectorStyle style, @Nullable Runnable onReadyToDraw) Sets new text to draw- Parameters:
text- new text to drawstyle- style of the textonReadyToDraw- optional runnable that called when text ready to draw
-
setText
Sets new text to draw- Parameters:
text- new text to drawstyle- style of the text
-