@ParametersAreNonnullByDefault 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 |
find(java.lang.String tag,
java.lang.String value)
Returns first object that have `tag` set to `value`
|
GLMapVectorObject |
get(long index)
Returns object at the index
|
GLMapBBox |
getBBox()
Calculates bbox of all objects in list
|
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
|
dispose@NonNull public GLMapBBox getBBox()
@NonNull public GLMapVectorObject[] toArray()
public long size()
@NonNull public GLMapVectorObject get(long index)
index - index of object to return@Nullable public GLMapVectorObject find(java.lang.String tag, java.lang.String value)
tag - tag to checkvalue - value to checkpublic 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,
@Nullable
java.lang.String value)
index - index of objecttag - tag to setvalue - value to setCopyright © 2019 GetYourMap. All Rights Reserved.