public class MapElement extends GeometryBuffer
GeometryBuffer.GeometryType| Modifier and Type | Field and Description |
|---|---|
PointF |
labelPosition |
int |
layer
layer of the element (0-10) overrides the theme drawing order
|
TagSet |
tags |
index, indexCurrentPos, pointNextPos, points, type| Constructor and Description |
|---|
MapElement() |
MapElement(float[] points,
int[] index) |
MapElement(int numPoints,
int numIndices) |
MapElement(MapElement element) |
| Modifier and Type | Method and Description |
|---|---|
MapElement |
clear()
Reset buffer.
|
void |
setLabelPosition(float x,
float y) |
void |
setLayer(int layer) |
java.lang.String |
toString() |
addPoint, addPoint, addPoint, area, ensureIndexSize, ensurePointSize, getNumPoints, getPoint, getPoint, getPointX, getPointY, isLine, isPoint, isPoly, isTris, makeCircle, makeCircle, scale, setPoint, simplify, startHole, startLine, startPoints, startPolygon, translatepublic PointF labelPosition
public int layer
public final TagSet tags
public MapElement()
public MapElement(int numPoints,
int numIndices)
public MapElement(float[] points,
int[] index)
public MapElement(MapElement element)
element - the map element to copypublic void setLabelPosition(float x,
float y)
public void setLayer(int layer)
public MapElement clear()
GeometryBufferclear in class GeometryBufferpublic java.lang.String toString()
toString in class GeometryBuffer