Class Circle


  • public class Circle
    extends org.neshan.mapsdk.internal.elements.MapElement
    A circle 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
      Circle​(LatLng center, double radius, com.carto.graphics.Color color, com.carto.styles.LineStyle lineStyle)  
      Circle​(LatLng center, double radius, com.carto.styles.LineStyle lineStyle)
      create a circle with transparent solid fill body
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.carto.vectorelements.VectorElement getRealElement()  
      java.util.UUID getUuid()
      unique auto generated identifier of this map element
      org.neshan.mapsdk.internal.elements.MapElement setBaseProjection​(com.carto.projections.Projection baseProjection)  
      • Methods inherited from class java.lang.Object

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

      • Circle

        public Circle​(LatLng center,
                      double radius,
                      com.carto.graphics.Color color,
                      com.carto.styles.LineStyle lineStyle)
        Parameters:
        center - where to draw the circle
        radius - size of the circle
        color - solid fill color of the circle
        lineStyle - style of the outline stroke of the circle
      • Circle

        public Circle​(LatLng center,
                      double radius,
                      com.carto.styles.LineStyle lineStyle)
        create a circle with transparent solid fill body
        Parameters:
        center - where to draw the circle
        radius - size of the circle
        lineStyle - style of the outline stroke of the circle
    • Method Detail

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

        public java.util.UUID getUuid()
        unique auto generated identifier of this map element
        Overrides:
        getUuid in class org.neshan.mapsdk.internal.elements.MapElement
        Returns: