java.lang.Object | |
↳ | com.amazon.geo.mapsv2.model.Circle |
A circle overlay that can be displayed on the map. Obtain a Circle
by
creating a CircleOptions
object with the initial circle properties
and then passing it to addCircle(CircleOptions)
.
You can change the properties of the Circle
using the setter methods
after the Circle
is created. Note that all getter and setter methods
must be called on the main thread or an IllegalStateException
is
thrown.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the geographic location of the center of this
Circle
as a LatLng . | |||||||||||
Gets the fill color of this
Circle . | |||||||||||
Gets the unique ID for this
Circle . | |||||||||||
Gets the radius of the
Circle in meters. | |||||||||||
Gets the stroke color of this
Circle . | |||||||||||
Gets the stroke width of this
Circle in screen pixels. | |||||||||||
Gets the z-index of this
Circle . | |||||||||||
A boolean value indicating whether the
Circle is visible or hidden. | |||||||||||
Removes this
Circle from the map. | |||||||||||
Sets the geographic point at the center of this
Circle . | |||||||||||
Sets the fill color in ARGB format.
| |||||||||||
Sets the radius of this
Circle in meters. | |||||||||||
Sets the stroke color in ARGB format.
| |||||||||||
Sets the stroke width of this
Circle 's outline in screen pixels. | |||||||||||
Sets the visibility of the
Circle . | |||||||||||
Sets the z-index of the
Circle . | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public constructor. Instead of using this constructor, use
AmazonMap.addCircle(CircleOptions)
to create a Circle
.
Gets the fill color of this Circle
.
Circle
's fill color in ARGB format. See Color
for more details.
Gets the unique ID for this Circle
. The ID is unique for all
Circle
objects currently added to the map.
Circle
's ID as a String
.
Gets the radius of the Circle
in meters.
Circle
's radius in meters.
Gets the stroke color of this Circle
.
Circle
's stroke color in ARGB format. See
Color
for more details.
Gets the stroke width of this Circle
in screen pixels.
Circle
's stroke width in screen pixels.
Gets the z-index of this Circle
.
Circle
's z-index.
A boolean value indicating whether the Circle
is visible or hidden.
true
if this Circle
is visible, or false
if it is
hidden.
Removes this Circle
from the map. After calling this method, calling other
methods on the object has no effect on the appearance of the map.
Sets the geographic point at the center of this Circle
. This
cannot be null
.
center | A LatLng representing the latitude / longitude of
the geographic point at the center of the Circle. |
---|
NullPointerException | if center is null .
|
---|
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.
|
---|
Sets the radius of this Circle
in meters. The radius must be zero or
greater. The default value is zero.
radius | The radius of the Circle in meters.
|
---|
Sets the stroke color in ARGB format. Stroke color is the color of the
Circle
's outline. To draw a circle with no outline, use
TRANSPARENT
. The default value is BLACK
.
color | The color in ARGB format. See Color for more
details.
|
---|
Sets the stroke width of this Circle
's outline in screen pixels.
Must be zero or greater. No outline is drawn if stroke width is set to
zero. The default value is 10.
width | The stroke width in screen pixels. |
---|
IllegalArgumentException | if width is less than zero. |
---|
Sets the visibility of the Circle
. If false
, the
Circle
is hidden, but all state is preserved. The default value
is true
.
visible | true to make this Circle visible, or
false to make it hidden.
|
---|
Sets the z-index of 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. |
---|