Class Circle
- java.lang.Object
-
- com.mapbox.mapboxsdk.plugins.annotation.Annotation<com.mapbox.geojson.Point>
-
- com.mapbox.mapboxsdk.plugins.annotation.Circle
-
@UiThread public class Circle extends Annotation<com.mapbox.geojson.Point>
-
-
Field Summary
-
Fields inherited from class com.mapbox.mapboxsdk.plugins.annotation.Annotation
geometry, jsonObject
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.FloatgetCircleBlur()Get the CircleBlur propertyjava.lang.StringgetCircleColor()Get the CircleColor propertyintgetCircleColorAsInt()Get the CircleColor propertyjava.lang.FloatgetCircleOpacity()Get the CircleOpacity propertyjava.lang.FloatgetCircleRadius()Get the CircleRadius propertyjava.lang.StringgetCircleStrokeColor()Get the CircleStrokeColor propertyintgetCircleStrokeColorAsInt()Get the CircleStrokeColor propertyjava.lang.FloatgetCircleStrokeOpacity()Get the CircleStrokeOpacity propertyjava.lang.FloatgetCircleStrokeWidth()Get the CircleStrokeWidth propertycom.mapbox.mapboxsdk.geometry.LatLnggetLatLng()Get the LatLng of the circle, which represents the location of the circle on the mapvoidsetCircleBlur(java.lang.Float value)Set the CircleBlur propertyvoidsetCircleColor(int color)Set the CircleColor propertyvoidsetCircleColor(java.lang.String color)Set the CircleColor propertyvoidsetCircleOpacity(java.lang.Float value)Set the CircleOpacity propertyvoidsetCircleRadius(java.lang.Float value)Set the CircleRadius propertyvoidsetCircleStrokeColor(int color)Set the CircleStrokeColor propertyvoidsetCircleStrokeColor(java.lang.String color)Set the CircleStrokeColor propertyvoidsetCircleStrokeOpacity(java.lang.Float value)Set the CircleStrokeOpacity propertyvoidsetCircleStrokeWidth(java.lang.Float value)Set the CircleStrokeWidth propertyvoidsetLatLng(com.mapbox.mapboxsdk.geometry.LatLng latLng)Set the LatLng of the circle, which represents the location of the circle on the map-
Methods inherited from class com.mapbox.mapboxsdk.plugins.annotation.Annotation
equals, getData, getGeometry, getId, hashCode, isDraggable, setData, setDraggable, setGeometry, toString
-
-
-
-
Method Detail
-
setLatLng
public void setLatLng(com.mapbox.mapboxsdk.geometry.LatLng latLng)
Set the LatLng of the circle, which represents the location of the circle on the mapTo update the circle on the map use
AnnotationManager.update(Annotation).- Parameters:
latLng- the location of the circle in a latitude and longitude pair
-
getLatLng
@NonNull public com.mapbox.mapboxsdk.geometry.LatLng getLatLng()
Get the LatLng of the circle, which represents the location of the circle on the map- Returns:
- the location of the circle
-
getCircleRadius
public java.lang.Float getCircleRadius()
Get the CircleRadius propertyCircle radius.
- Returns:
- property wrapper value around Float
-
setCircleRadius
public void setCircleRadius(java.lang.Float value)
Set the CircleRadius propertyCircle radius.
To update the circle on the map use
AnnotationManager.update(Annotation).- Parameters:
value- constant property value for Float
-
getCircleColorAsInt
@ColorInt public int getCircleColorAsInt()
Get the CircleColor propertyThe fill color of the circle.
- Returns:
- color value for String
-
getCircleColor
public java.lang.String getCircleColor()
Get the CircleColor propertyThe fill color of the circle.
- Returns:
- color value for String
-
setCircleColor
public void setCircleColor(@ColorInt int color)Set the CircleColor propertyThe fill color of the circle.
To update the circle on the map use
AnnotationManager.update(Annotation).- Parameters:
color- value for String
-
setCircleColor
public void setCircleColor(@NonNull java.lang.String color)Set the CircleColor propertyThe fill color of the circle.
To update the circle on the map use
AnnotationManager.update(Annotation).- Parameters:
color- value for String
-
getCircleBlur
public java.lang.Float getCircleBlur()
Get the CircleBlur propertyAmount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.
- Returns:
- property wrapper value around Float
-
setCircleBlur
public void setCircleBlur(java.lang.Float value)
Set the CircleBlur propertyAmount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.
To update the circle on the map use
AnnotationManager.update(Annotation).- Parameters:
value- constant property value for Float
-
getCircleOpacity
public java.lang.Float getCircleOpacity()
Get the CircleOpacity propertyThe opacity at which the circle will be drawn.
- Returns:
- property wrapper value around Float
-
setCircleOpacity
public void setCircleOpacity(java.lang.Float value)
Set the CircleOpacity propertyThe opacity at which the circle will be drawn.
To update the circle on the map use
AnnotationManager.update(Annotation).- Parameters:
value- constant property value for Float
-
getCircleStrokeWidth
public java.lang.Float getCircleStrokeWidth()
Get the CircleStrokeWidth propertyThe width of the circle's stroke. Strokes are placed outside of the
PropertyFactory.circleRadius(java.lang.Float).- Returns:
- property wrapper value around Float
-
setCircleStrokeWidth
public void setCircleStrokeWidth(java.lang.Float value)
Set the CircleStrokeWidth propertyThe width of the circle's stroke. Strokes are placed outside of the
PropertyFactory.circleRadius(java.lang.Float).To update the circle on the map use
AnnotationManager.update(Annotation).- Parameters:
value- constant property value for Float
-
getCircleStrokeColorAsInt
@ColorInt public int getCircleStrokeColorAsInt()
Get the CircleStrokeColor propertyThe stroke color of the circle.
- Returns:
- color value for String
-
getCircleStrokeColor
public java.lang.String getCircleStrokeColor()
Get the CircleStrokeColor propertyThe stroke color of the circle.
- Returns:
- color value for String
-
setCircleStrokeColor
public void setCircleStrokeColor(@ColorInt int color)Set the CircleStrokeColor propertyThe stroke color of the circle.
To update the circle on the map use
AnnotationManager.update(Annotation).- Parameters:
color- value for String
-
setCircleStrokeColor
public void setCircleStrokeColor(@NonNull java.lang.String color)Set the CircleStrokeColor propertyThe stroke color of the circle.
To update the circle on the map use
AnnotationManager.update(Annotation).- Parameters:
color- value for String
-
getCircleStrokeOpacity
public java.lang.Float getCircleStrokeOpacity()
Get the CircleStrokeOpacity propertyThe opacity of the circle's stroke.
- Returns:
- property wrapper value around Float
-
setCircleStrokeOpacity
public void setCircleStrokeOpacity(java.lang.Float value)
Set the CircleStrokeOpacity propertyThe opacity of the circle's stroke.
To update the circle on the map use
AnnotationManager.update(Annotation).- Parameters:
value- constant property value for Float
-
-