public class Polyline extends Primitive
Modifier and Type | Method and Description |
---|---|
int |
getColor()
Gets the color of this polyline.
|
float |
getWidth()
Gets the width of this polyline.
|
boolean |
isValid() |
void |
remove()
Removes the polyline from the map.
|
void |
render(com.tomtom.pnd.maplib.Renderer renderer)
Renders this
Renderable , using whatever state the OpenGL context is in. |
void |
setColor(int color)
Sets the color of this polyline.
|
void |
setWidth(float width)
Sets the width of this polyline.
|
void |
update()
Prepare this
Renderable for rendering might be better. |
getZIndex, isVisible, registerDataChangeListener, release, setVisibility, setZIndex, unregisterDataChangeListener
public void setColor(int color)
color
- The color in ARGB formatpublic int getColor()
public void setWidth(float width)
width
- the width in screen pixels.public float getWidth()
public void update()
Renderable
Renderable
for rendering might be better.public void render(com.tomtom.pnd.maplib.Renderer renderer)
Renderable
Renderable
, using whatever state the OpenGL context is in.renderer
- The Renderer
's instance that renders this Renderable
.public boolean isValid()
true
if Renderable
can be rendered by CustomOverlayRenderer
.public void remove()