| Constructor and Description |
|---|
MapLayers() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(MapLayer layer) |
MapLayer |
get(int index) |
MapLayer |
get(java.lang.String name) |
<T extends MapLayer> |
getByType(java.lang.Class<T> type) |
<T extends MapLayer> |
getByType(java.lang.Class<T> type,
Array<T> fill) |
int |
getCount() |
int |
getIndex(MapLayer layer)
Get the index of the layer in the collection, or -1 if no such layer exists.
|
int |
getIndex(java.lang.String name)
Get the index of the layer having the specified name, or -1 if no such layer exists.
|
java.util.Iterator<MapLayer> |
iterator() |
void |
remove(int index) |
void |
remove(MapLayer layer) |
public MapLayer get(int index)
index - public MapLayer get(java.lang.String name)
name - public int getIndex(java.lang.String name)
public int getIndex(MapLayer layer)
public int getCount()
public void add(MapLayer layer)
layer - layer to be added to the setpublic void remove(int index)
index - removes layer at indexpublic void remove(MapLayer layer)
layer - layer to be removedpublic <T extends MapLayer> Array<T> getByType(java.lang.Class<T> type)
type - public <T extends MapLayer> Array<T> getByType(java.lang.Class<T> type, Array<T> fill)
type - fill - array to be filled with the matching layers