Defines options for a Circle.
For more information, read the Shapes developer guide.
|
CircleOptions()
Creates circle options.
|
| CircleOptions | |
| CircleOptions |
clickable(boolean clickable)
Specifies whether this circle is clickable.
|
| CircleOptions |
fillColor(int color)
Sets the fill color.
|
| LatLng | |
| int |
getFillColor()
Returns the fill color.
|
| double |
getRadius()
Returns the circle's radius, in meters.
|
| int |
getStrokeColor()
Returns the stroke color.
|
| List<PatternItem> |
getStrokePattern()
Returns the stroke pattern set in this
CircleOptions
object for the circle's outline.
|
| float |
getStrokeWidth()
Returns the stroke width.
|
| float |
getZIndex()
Returns the zIndex.
|
| boolean |
isClickable()
Gets the clickability setting for the circle.
|
| boolean |
isVisible()
Checks whether the circle is visible.
|
| CircleOptions |
radius(double radius)
Sets the radius in meters.
|
| CircleOptions |
strokeColor(int color)
Sets the stroke color.
|
| CircleOptions | |
| CircleOptions |
strokeWidth(float width)
Sets the stroke width.
|
| CircleOptions |
visible(boolean visible)
Sets the visibility.
|
| CircleOptions |
zIndex(float zIndex)
Sets the zIndex.
|
Creates circle options.
Sets the center using a LatLng.
The center must not be null.
This method is mandatory because there is no default center.
| center | The geographic center as a LatLng. |
|---|
CircleOptions
objectSpecifies whether this circle is clickable. The default setting is
false.
CircleOptions
object with a new clickability setting.Sets the fill color.
The fill color is the color inside the circle, in the integer format specified by
Color. If
TRANSPARENT is used then no fill is drawn.
By default the fill color is transparent (0x00000000).
| color | color in the Color
format |
|---|
CircleOptions
objectReturns the fill color.
Color
format.Returns the circle's radius, in meters.
Returns the stroke color.
Color
format.Returns the stroke pattern set in this CircleOptions
object for the circle's outline.
Returns the stroke width.
Returns the zIndex.
Gets the clickability setting for the circle.
true if the circle is clickable; false if it is
not.Checks whether the circle is visible.
true if the circle is visible; false if it is
invisible.Sets the radius in meters.
The radius must be zero or greater. The default radius is zero.
| radius | radius in meters |
|---|
CircleOptions
objectSets the stroke color.
The stroke color is the color of this circle's outline, in the integer format
specified by Color. If
TRANSPARENT is used then no outline is drawn.
By default the stroke color is black (0xff000000).
| color | color in the Color
format |
|---|
CircleOptions
objectSets a stroke pattern for the circle's outline. The default stroke pattern is solid,
represented by null.
CircleOptions
object with a new stroke pattern set.Sets the stroke width.
The stroke width is the width (in screen pixels) of the circle's outline. It must be zero or greater. If it is zero then no outline is drawn.
The default width is 10 pixels.
| width | width in screen pixels |
|---|
CircleOptions
objectSets the visibility.
If this circle is not visible then it is not drawn, but all other state is preserved.
| visible | false to make this circle invisible |
|---|
CircleOptions
objectSets the zIndex.
Overlays (such as circles) with higher zIndices are drawn above those with lower indices.
By default the zIndex is 0.0.
| zIndex | zIndex value |
|---|
CircleOptions
object