MapObject.Type| Constructor and Description |
|---|
MapCircle(double radius,
GeoCoordinate center)
Constructs a
MapCircle, which is a MapObject in the shape of a circle. |
| Modifier and Type | Method and Description |
|---|---|
GeoCoordinate |
getCenter()
Returns the
GeoCoordinate representing the
current center of the MapCircle. |
int |
getFillColor()
Returns the current fill color for this
MapCircle, returning an ARGB
(Alpha/Red/Green/Blue) integer color value. |
int |
getLineColor()
Returns the current border line color for this
MapCircle, as an ARGB
(Alpha/Red/Green/Blue) integer color value. |
int |
getLineWidth()
Returns the current border line width for this
MapCircle, in pixels. |
double |
getRadius()
Returns the current radius of the
MapCircle, in meters. |
MapObject.Type |
getType()
Returns the type of object that this
MapObject represents. |
MapCircle |
setCenter(GeoCoordinate center)
Sets the center for this
MapCircle to a specified
GeoCoordinate. |
MapCircle |
setFillColor(int argbColor)
Sets a fill color for this
MapCircle using an ARGB (Alpha/Red/Green/Blue) integer
color value. |
MapCircle |
setLineColor(int argbColor)
Sets a border line color for this
MapCircle, using an ARGB (Alpha/Red/Green/Blue)
integer color value. |
MapCircle |
setLineWidth(int width)
Sets a border line width, in pixels, for this
MapCircle, an int value within
the [0..100] range. |
MapCircle |
setRadius(double radius)
Sets a radius for this
MapCircle, in meters. |
MapObject |
setVisible(boolean isVisible)
Sets whether this
MapObject is visible. |
equals, getBaseType, getParent, getVisibleMask, getZIndex, hashCode, isVisible, resetVisibleMask, setVisible, setVisible, setVisibleMask, setVisibleMask, setZIndex, unsetVisibleMask, unsetVisibleMaskpublic MapCircle(double radius,
GeoCoordinate center)
MapCircle, which is a MapObject in the shape of a circle.radius - Desired radius of the MapCircle, in meterscenter - A GeoCoordinate representing the
center of the MapCircle.java.lang.IllegalArgumentException - If center is invalid.public MapCircle setCenter(GeoCoordinate center)
MapCircle to a specified
GeoCoordinate.center - Desired GeoCoordinate for this MapCircle center.MapCircle itself.java.lang.IllegalArgumentException - If center is invalid.public GeoCoordinate getCenter()
GeoCoordinate representing the
current center of the MapCircle.MapCircle centerpublic MapCircle setRadius(double radius)
MapCircle, in meters.radius - Desired radius of the MapCircle.MapCircle itself.java.lang.IllegalArgumentException - If the supplied radius is less than or equal to zero.public double getRadius()
MapCircle, in meters. The default radius of a
MapCircle instance is 1.MapCircle.public MapCircle setFillColor(int argbColor)
MapCircle using an ARGB (Alpha/Red/Green/Blue) integer
color value.argbColor - Desired ARGB integer color value. The packed integer is made up of 4 bytes: alpha,
red, green, blue. Each color component has a value range from [0..255] with 0
meaning no contribution for that component, and 255 meaning 100% contributionMapCircle itself.public int getFillColor()
MapCircle, returning an ARGB
(Alpha/Red/Green/Blue) integer color value. Default fill color is solid blue or in ARGB
color, 0xFF0000FF.public MapCircle setLineColor(int argbColor)
MapCircle, using an ARGB (Alpha/Red/Green/Blue)
integer color value.argbColor - Desired ARGB integer color value. The packed integer is made up of 4 bytes: alpha,
red, green, blue. Each color component has a value range from [0..255] with 0
meaning no contribution for that component, and 255 meaning 100% contributionMapCircle itself.public int getLineColor()
MapCircle, as an ARGB
(Alpha/Red/Green/Blue) integer color value. Default line color is solid blue, or in ARGB
color, 0xFF0000FF.public MapCircle setLineWidth(int width)
MapCircle, an int value within
the [0..100] range.width - Desired width of the line defining the border of the MapCircleMapCircle itself.public int getLineWidth()
MapCircle, in pixels. The default
width is 0 pixels.MapCircle.public MapObject setVisible(boolean isVisible)
MapObject is visible.setVisible in class MapObjectisVisible - A boolean variable specifying whether this MapObject is visibleMapObject itself.setVisible(boolean)public MapObject.Type getType()
MapObjectMapObject represents.getType in class MapObjectMapObject.Type values