java.lang.Object | |
↳ | com.amazon.geo.mapsv2.model.CircleOptions |
An object for defining the initial options for a Circle
object. Use
this to define all the properties of a Circle
before calling the
addCircle(CircleOptions)
method to add the Circle
to the map.
Modifying CircleOptions
after the Circle
has been added to the
map has no effect on the appearance of the Circle
.
Note that CircleOptions
methods do not need to be called on the main
thread.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
CircleOptions object with default values. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the geographic point to use for the center of the new
Circle . | |||||||||||
Sets the fill color in ARGB format.
| |||||||||||
Gets the fill color to use for the new
Circle . | |||||||||||
Gets the radius to use for the
Circle in meters. | |||||||||||
Gets the stroke color to use for the new
Circle . | |||||||||||
Gets the stroke width to use for the new
Circle . | |||||||||||
Gets the z-index to use for the new
Circle . | |||||||||||
Returns a boolean indicating whether the new
Circle is visible or
hidden. | |||||||||||
Sets the radius to use for the new
Circle in meters. | |||||||||||
Sets the stroke color to use for the new
Circle in ARGB format. | |||||||||||
Sets the stroke width to use for the new
Circle 's outline in
screen pixels. | |||||||||||
Sets the visibility to use for the new
Circle . | |||||||||||
Sets the z-index to use for the new the
Circle . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new CircleOptions
object with default values.
Sets the fill color in ARGB format. Fill color is the color drawn inside
the Circle
. To draw a circle with no fill, use
TRANSPARENT
. The default value is TRANSPARENT
.
color | The color in ARGB format. See Color for more
details. |
---|
CircleOptions
object.
Gets the radius to use for the Circle
in meters.
Circle
in meters.
Gets the stroke width to use for the new Circle
.
Circle
in screen pixels.
Gets the z-index to use for the new Circle
.
Circle
.
Returns a boolean indicating whether the new Circle
is visible or
hidden.
true
if the new Circle
is visible, or
false
if it is hidden.
Sets the radius to use for the new Circle
in meters. The radius
must be zero or greater. Setting a negative radius causes
addCircle(CircleOptions)
to throw an
IllegalArgumentException
. The default
value is zero.
radius | The radius of the new Circle in meters. |
---|
CircleOptions
object.
Sets the stroke color to use for the new Circle
in ARGB format.
Stroke color is the color of the circle's outline. To draw no outline,
use TRANSPARENT
. The default value is BLACK
.
color | The stroke color of the new Circle in ARGB format.
See Color for more details. |
---|
CircleOptions
object.
Sets the stroke width to use for the new Circle
's outline in
screen pixels. Must be zero or greater. Setting a negative stroke width
causes addCircle(CircleOptions)
to throw an
IllegalArgumentException
. No outline is drawn if the stroke width
is set to zero. The default value is 10.
width | The stroke width of the new Circle in screen pixels. |
---|
CircleOptions
object.
Sets the visibility to use for the new Circle
. The default
value is true
.
visible | true to make the circle visible, or false
to make it invisible. |
---|
CircleOptions
object.
Sets the z-index to use for the new the Circle
. Z-index
determines the order in which overlays are drawn. Overlays with higher
indices are drawn over overlays with lower indices. Overlays with the
same z-index are drawn in an arbitrary order.
Overlays that are affected by z-index include GroundOverlay
,
TileOverlay
, Circle
, Polyline
, and
Polygon
.
Marker
overlays are not affected by the z-index of other
overlays.
The default value is zero.
zIndex | The z-index for the new Circle . |
---|
CircleOptions
object.