Package org.neshan.mapsdk.model
Class Label
- java.lang.Object
-
- org.neshan.mapsdk.internal.elements.MapElement
-
- org.neshan.mapsdk.model.Label
-
public class Label extends org.neshan.mapsdk.internal.elements.MapElementA text that can be drawn on aMapView
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LatLnggetLatLng()com.carto.vectorelements.VectorElementgetRealElement()java.lang.StringgetText()org.neshan.mapsdk.internal.elements.MapElementsetBaseProjection(com.carto.projections.Projection baseProjection)LabelsetLatLng(LatLng latLng)LabelsetStyle(com.carto.styles.TextStyle style)LabelsetText(java.lang.String text)
-
-
-
Constructor Detail
-
Label
public Label(LatLng latLng, com.carto.styles.TextStyle style, java.lang.String text)
- Parameters:
latLng- position of the labelstyle- color,size,font,... of the texttext-
-
-
Method Detail
-
getLatLng
public LatLng getLatLng()
-
setBaseProjection
public org.neshan.mapsdk.internal.elements.MapElement setBaseProjection(com.carto.projections.Projection baseProjection)
- Specified by:
setBaseProjectionin classorg.neshan.mapsdk.internal.elements.MapElement
-
getRealElement
public com.carto.vectorelements.VectorElement getRealElement() throws NullProjectionException- Specified by:
getRealElementin classorg.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)
-
-