public class Polygon extends Primitive
Modifier and Type | Method and Description |
---|---|
int |
getBorderColor()
Gets the border color of this polygon.
|
float |
getBorderWidth()
Gets the border width of this polygon.
|
int |
getFillColor()
Gets the fill color of this polygon.
|
boolean |
isValid() |
void |
remove()
Removes the polygon from the map.
|
void |
render(com.tomtom.pnd.maplib.Renderer renderer)
Renders this
Renderable , using whatever state the OpenGL context is in. |
void |
setBorderColor(int color)
Sets the border color of this polygon.
|
void |
setBorderWidth(float width)
Sets the border width of this polygon.
|
void |
setFillColor(int color)
Sets the fill color of this polygon.
|
void |
update()
Prepare this
Renderable for rendering might be better. |
getZIndex, isVisible, registerDataChangeListener, release, setVisibility, setZIndex, unregisterDataChangeListener
public void setBorderColor(int color)
color
- The color in ARGB formatpublic int getBorderColor()
public void setFillColor(int color)
color
- The color in ARGB formatpublic int getFillColor()
public void setBorderWidth(float width)
width
- the width in screen pixelspublic float getBorderWidth()
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()