public class Polyline extends Primitive
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getColor()
Gets the color of this polyline.
|
Renderable |
getRenderableAt(double[] touchPoint,
double radius)
Returns the renderable at the point provided.
|
float |
getWidth()
Gets the width of this polyline.
|
int |
hashCode() |
boolean |
isValid() |
void |
remove()
Removes the polyline from the map.
|
void |
setColor(int color)
Sets the color of this polyline.
|
void |
setWidth(float width)
Sets the line width of this polyline.
|
void |
update()
Prepare this
Renderable for rendering might be better. |
registerDataChangeListener, release, setZIndex, unregisterDataChangeListener
getTag, getZIndex, isSelectable, isVisible, selectable, setTag, setVisibility
public void setColor(int color)
color
- The color in ARGB formatpublic int getColor()
public void setWidth(float width)
width
- the line width in screen pixels.public float getWidth()
public void update()
Renderable
Renderable
for rendering might be better.public boolean isValid()
true
if Renderable
can be rendered by CustomOverlayRenderer
.public void remove()
public Renderable getRenderableAt(double[] touchPoint, double radius)
Renderable
touchPoint
- the point to check whether a renderable exists, values in world coordinates.radius
- the touchPoint, where the renderables are checked for, in world coordinates.