Package globus.glmap

Class GLMapLabel

    • Constructor Detail

      • 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 Detail

      • setText

        public void setText​(@NonNull
                            java.lang.String text,
                            @NonNull
                            GLMapVectorStyle style,
                            @Nullable
                            java.lang.Runnable onReadyToDraw)
        Sets new text to draw
        Parameters:
        text - new text to draw
        style - style of the text
        onReadyToDraw - optional runnable that called when text ready to draw
      • setText

        public void setText​(@NonNull
                            java.lang.String text,
                            @NonNull
                            GLMapVectorStyle style)
        Sets new text to draw
        Parameters:
        text - new text to draw
        style - style of the text