public class GLMapVectorObjectList extends GLNativeObject
GLMapVectorObject is a bridge class, to work with GLMap internal representation of array of vector object.| Constructor and Description |
|---|
GLMapVectorObjectList()
Constructor of empty list
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addPoint(long index,
double lat,
double lon)
Adds point to list
|
GLMapVectorObject |
get(long index)
Returns object at the index
|
GLMapBBox |
getBBox()
Calculates bbox of all objects in list
|
long |
getDisposeFunction() |
void |
remove(long index)
Removes object at the index
|
void |
setObjectTag(long index,
java.lang.String tag,
java.lang.String value)
Sets tag for given object
|
long |
size()
Returns size of list
|
GLMapVectorObject[] |
toArray()
Creates an array of GLMapVectorObject
|
boolean |
updatePoint(long index,
double lat,
double lon)
Sets new location of point
|
disposepublic long getDisposeFunction()
public GLMapBBox getBBox()
public GLMapVectorObject[] toArray()
public long size()
public GLMapVectorObject get(long index)
index - index of object to returnpublic boolean addPoint(long index,
double lat,
double lon)
index - index where new object will be insertedlat - latitude of pointlon - longitude of pointpublic boolean updatePoint(long index,
double lat,
double lon)
index - index of point to modifylat - latitude of pointlon - longitude of pointpublic void remove(long index)
index - index of object to removepublic void setObjectTag(long index,
java.lang.String tag,
java.lang.String value)
index - index of objecttag - tag to setvalue - value to setCopyright © 2018 GetYourMap. All Rights Reserved.