public final class Polyline extends Object
Modifier and Type | Method and Description |
---|---|
int |
getColor() |
int |
getFillColor()
Returns the fill color of this Shape.
|
List<GridPoint> |
getPoints() |
int |
getStrokeColor()
Returns the stroke color.
|
float |
getStrokeWidth()
Returns the stroke width.
|
float |
getWidth() |
float |
getZIndex()
Returns the zIndex.
|
boolean |
isVisible()
Checks whether the shape is visible.
|
void |
remove()
Removes this shape from the map.
|
void |
setColor(int color) |
void |
setFillColor(int fillColor)
Sets the fill color.
|
void |
setPoints(List<GridPoint> points) |
void |
setStrokeColor(int color)
Sets the stroke color.
|
void |
setStrokeWidth(float width)
Sets the stroke width.
|
void |
setVisible(boolean visible)
Sets the visibility of the shape.
|
void |
setWidth(float width) |
void |
setZIndex(float zIndex)
Sets the zIndex.
|
public void setColor(int color)
public void setWidth(float width)
public int getColor()
public float getWidth()
public void setZIndex(float zIndex)
zIndex
- public void setVisible(boolean visible)
visible
- false to make this shape invisible.public float getZIndex()
public boolean isVisible()
public void setStrokeColor(int color)
The stroke color is the color of this shape'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 void setStrokeWidth(float width)
The stroke width is the width (in screen pixels) of the shape'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 int getStrokeColor()
public float getStrokeWidth()
public int getFillColor()
public void setFillColor(int fillColor)
The fill color is the color inside the shape, in the integer format specified by android.graphics.Color. If TRANSPARENT is used then no fill is drawn.
fillColor
- The color in the android.graphics.Color format.public final void remove()
Copyright © 2012–2013 Ordnance Survey. All rights reserved.