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.MapElement
A text that can be drawn on aMapView
-
-
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)
-
-
-
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:
setBaseProjection
in classorg.neshan.mapsdk.internal.elements.MapElement
-
getRealElement
public com.carto.vectorelements.VectorElement getRealElement() throws NullProjectionException
- Specified by:
getRealElement
in 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)
-
-