public final class CircleOptions extends Object
Constructor and Description |
---|
CircleOptions() |
Modifier and Type | Method and Description |
---|---|
CircleOptions |
center(GridPoint center)
Sets the center using a
GridPoint . |
CircleOptions |
fillColor(int color)
Sets the fill color.
|
GridPoint |
getCenter()
Returns the center as a
GridPoint |
double |
getRadius()
Returns the circle's radius, in meters.
|
float |
getZIndex()
Returns the zIndex.
|
boolean |
isVisible()
Checks whether the shape is visible.
|
CircleOptions |
radius(double radius)
Sets the radius in meters.
|
CircleOptions |
strokeColor(int color)
Sets the stroke color.
|
CircleOptions |
strokeWidth(float width)
Sets the stroke width.
|
CircleOptions |
visible(boolean visible)
Sets the visibility of the circle.
|
CircleOptions |
zIndex(float zIndex)
Sets the zIndex.
|
public CircleOptions zIndex(float zIndex)
zIndex
- public CircleOptions visible(boolean visible)
visible
- false to make this shape invisible.public CircleOptions strokeColor(int color)
The stroke color is the color of this circle's outline, in the integer format specified by android.graphics.Color. If TRANSPARENT is used then no outline is drawn.
color
- The stroke color in the android.graphics.Color format.public CircleOptions strokeWidth(float 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 value is 10.
Behaviour with a negative width is undefined.
width
- The stroke width, in screen pixels.public CircleOptions fillColor(int color)
The fill color is the color inside the circle, in the integer format specified by android.graphics.Color. If TRANSPARENT is used then no fill is drawn.
By default the fill color is transparent (0x00000000).
color
- color in the android.graphics.Color formatpublic CircleOptions center(GridPoint center)
GridPoint
.
The center must not be null.
This method is mandatory because there is no default center.
center
- The center of the circle.public CircleOptions radius(double radius)
The radius must be zero or greater. The default radius is zero.
radius
- radius in meterspublic GridPoint getCenter()
GridPoint
GridPoint
.public double getRadius()
public float getZIndex()
public boolean isVisible()
Copyright © 2012–2013 Ordnance Survey. All rights reserved.