Class Label


  • public class Label
    extends org.neshan.mapsdk.internal.elements.MapElement
    A text that can be drawn on a MapView
    • Field Summary

      • Fields inherited from class org.neshan.mapsdk.internal.elements.MapElement

        META_DATA_ID_KEY, META_DATA_MARKER_ID_KEY, META_DATA_TYPE_KEY, uuid
    • Constructor Summary

      Constructors 
      Constructor Description
      Label​(LatLng latLng, com.carto.styles.TextStyle style, java.lang.String text)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LatLng getLatLng()  
      com.carto.vectorelements.VectorElement getRealElement()  
      java.lang.String getText()  
      org.neshan.mapsdk.internal.elements.MapElement setBaseProjection​(com.carto.projections.Projection baseProjection)  
      Label setLatLng​(LatLng latLng)  
      Label setStyle​(com.carto.styles.TextStyle style)  
      Label setText​(java.lang.String text)  
      • Methods inherited from class org.neshan.mapsdk.internal.elements.MapElement

        getUuid
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Label

        public Label​(LatLng latLng,
                     com.carto.styles.TextStyle style,
                     java.lang.String text)
        Parameters:
        latLng - position of the label
        style - color,size,font,... of the text
        text -
    • Method Detail

      • setLatLng

        public Label setLatLng​(LatLng latLng)
      • getLatLng

        public LatLng getLatLng()
      • setBaseProjection

        public org.neshan.mapsdk.internal.elements.MapElement setBaseProjection​(com.carto.projections.Projection baseProjection)
        Specified by:
        setBaseProjection in class org.neshan.mapsdk.internal.elements.MapElement
      • getRealElement

        public com.carto.vectorelements.VectorElement getRealElement()
                                                              throws NullProjectionException
        Specified by:
        getRealElement in class org.neshan.mapsdk.internal.elements.MapElement
        Throws:
        NullProjectionException
      • setStyle

        public Label setStyle​(com.carto.styles.TextStyle style)
      • getText

        public java.lang.String getText()
      • setText

        public Label setText​(java.lang.String text)