-
public class CircleOptions extends Options<Circle>
Builder class from which a circle is created.
-
-
Field Summary
Fields Modifier and Type Field Description private JsonElementdataprivate Pointgeometryprivate FloatcircleRadiusprivate StringcircleColorprivate FloatcircleBlurprivate FloatcircleOpacityprivate FloatcircleStrokeWidthprivate StringcircleStrokeColorprivate FloatcircleStrokeOpacity
-
Method Summary
Modifier and Type Method Description JsonElementgetData()Get the arbitrary json data of the annotation. PointgetGeometry()Get the geometry of the circle, which represents the location of the circle on the map FloatgetCircleRadius()Get the current configured circle-radius for the circleCircle radius. StringgetCircleColor()Get the current configured circle-color for the circleThe fill color of the circle. FloatgetCircleBlur()Get the current configured circle-blur for the circleAmount to blur the circle. FloatgetCircleOpacity()Get the current configured circle-opacity for the circleThe opacity at which the circle will be drawn. FloatgetCircleStrokeWidth()Get the current configured circle-stroke-width for the circleThe width of the circle's stroke. StringgetCircleStrokeColor()Get the current configured circle-stroke-color for the circleThe stroke color of the circle. FloatgetCircleStrokeOpacity()Get the current configured circle-stroke-opacity for the circleThe opacity of the circle's stroke. CircleOptionswithCircleRadius(Float circleRadius)Set circle-radius to initialise the circle with. CircleOptionswithCircleColor(String circleColor)Set circle-color to initialise the circle with. CircleOptionswithCircleBlur(Float circleBlur)Set circle-blur to initialise the circle with. CircleOptionswithCircleOpacity(Float circleOpacity)Set circle-opacity to initialise the circle with. CircleOptionswithCircleStrokeWidth(Float circleStrokeWidth)Set circle-stroke-width to initialise the circle with. CircleOptionswithCircleStrokeColor(String circleStrokeColor)Set circle-stroke-color to initialise the circle with. CircleOptionswithCircleStrokeOpacity(Float circleStrokeOpacity)Set circle-stroke-opacity to initialise the circle with. CircleOptionswithLatLng(LatLng latLng)Set the LatLng of the circle, which represents the location of the circle on the map LatLnggetLatLng()Get the LatLng of the circle, which represents the location of the circle on the map CircleOptionswithGeometry(Point geometry)Set the geometry of the circle, which represents the location of the circle on the map booleangetDraggable()Returns whether this circle is draggable, meaning it can be dragged across the screen when touched and moved. CircleOptionswithDraggable(boolean draggable)Set whether this circle should be draggable,meaning it can be dragged across the screen when touched and moved. CircleOptionswithData(@Nullable() JsonElement jsonElement)Set the arbitrary json data of the annotation. -
-
Method Detail
-
getGeometry
Point getGeometry()
Get the geometry of the circle, which represents the location of the circle on the map
-
getCircleRadius
Float getCircleRadius()
Get the current configured circle-radius for the circle
Circle radius.
-
getCircleColor
String getCircleColor()
Get the current configured circle-color for the circle
The fill color of the circle.
-
getCircleBlur
Float getCircleBlur()
Get the current configured circle-blur for the circle
Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.
-
getCircleOpacity
Float getCircleOpacity()
Get the current configured circle-opacity for the circle
The opacity at which the circle will be drawn.
-
getCircleStrokeWidth
Float getCircleStrokeWidth()
Get the current configured circle-stroke-width for the circle
The width of the circle's stroke. Strokes are placed outside of the circleRadius.
-
getCircleStrokeColor
String getCircleStrokeColor()
Get the current configured circle-stroke-color for the circle
The stroke color of the circle.
-
getCircleStrokeOpacity
Float getCircleStrokeOpacity()
Get the current configured circle-stroke-opacity for the circle
The opacity of the circle's stroke.
-
withCircleRadius
CircleOptions withCircleRadius(Float circleRadius)
Set circle-radius to initialise the circle with.
Circle radius.
- Parameters:
circleRadius- the circle-radius value
-
withCircleColor
CircleOptions withCircleColor(String circleColor)
Set circle-color to initialise the circle with.
The fill color of the circle.
- Parameters:
circleColor- the circle-color value
-
withCircleBlur
CircleOptions withCircleBlur(Float circleBlur)
Set circle-blur to initialise the circle with.
Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.
- Parameters:
circleBlur- the circle-blur value
-
withCircleOpacity
CircleOptions withCircleOpacity(Float circleOpacity)
Set circle-opacity to initialise the circle with.
The opacity at which the circle will be drawn.
- Parameters:
circleOpacity- the circle-opacity value
-
withCircleStrokeWidth
CircleOptions withCircleStrokeWidth(Float circleStrokeWidth)
Set circle-stroke-width to initialise the circle with.
The width of the circle's stroke. Strokes are placed outside of the circleRadius.
- Parameters:
circleStrokeWidth- the circle-stroke-width value
-
withCircleStrokeColor
CircleOptions withCircleStrokeColor(String circleStrokeColor)
Set circle-stroke-color to initialise the circle with.
The stroke color of the circle.
- Parameters:
circleStrokeColor- the circle-stroke-color value
-
withCircleStrokeOpacity
CircleOptions withCircleStrokeOpacity(Float circleStrokeOpacity)
Set circle-stroke-opacity to initialise the circle with.
The opacity of the circle's stroke.
- Parameters:
circleStrokeOpacity- the circle-stroke-opacity value
-
withLatLng
CircleOptions withLatLng(LatLng latLng)
Set the LatLng of the circle, which represents the location of the circle on the map
- Parameters:
latLng- the location of the circle in a longitude and latitude pair
-
getLatLng
LatLng getLatLng()
Get the LatLng of the circle, which represents the location of the circle on the map
-
withGeometry
CircleOptions withGeometry(Point geometry)
Set the geometry of the circle, which represents the location of the circle on the map
- Parameters:
geometry- the location of the circle
-
getDraggable
boolean getDraggable()
Returns whether this circle is draggable, meaning it can be dragged across the screen when touched and moved.
-
withDraggable
CircleOptions withDraggable(boolean draggable)
Set whether this circle should be draggable,meaning it can be dragged across the screen when touched and moved.
- Parameters:
draggable- should be draggable
-
withData
CircleOptions withData(@Nullable() JsonElement jsonElement)
Set the arbitrary json data of the annotation.
- Parameters:
jsonElement- the arbitrary json element data
-
-
-
-