Package globus.glmap
Class GLMapLabel
java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.GLMapDrawObject
globus.glmap.GLMapDrawable
globus.glmap.GLMapLabel
Drawable with text
-
Nested Class Summary
Nested classes/interfaces inherited from class globus.glmap.GLMapDrawable
GLMapDrawable.TransformMode
-
Constructor Summary
ConstructorDescriptionCreates new empty image that will be injected to mapGLMapLabel
(int drawOrder) Creates new empty image with given draw order -
Method Summary
Modifier and TypeMethodDescriptionvoid
setText
(String text, GLMapVectorStyle style) Sets new text to drawvoid
setText
(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, setTransformMode
Methods inherited from class globus.glmap.GLMapDrawObject
getDrawOrder, isHidden, setHidden
Methods inherited from class globus.glmap.GLNativeObject
dispose
-
Constructor Details
-
GLMapLabel
public GLMapLabel(int drawOrder) Creates new empty image with given draw order- Parameters:
drawOrder
- Draw order used to sort objects on map
-
GLMapLabel
public GLMapLabel()Creates new empty image that will be injected to map
-
-
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
-