public interface ILayerList extends ICustomPropertyProvider
| Modifier and Type | Method and Description |
|---|---|
void |
addLayer(ILayer layer)
Adds an
ILayer to the Layer list. |
void |
addLayer(int index,
ILayer layer)
Adds an
ILayer to the Layer list at the given index. |
java.util.List<IGroupLayer> |
getGroupLayers()
Gets the
IGroupLayers contained in a Layer list. |
java.util.List<IImageLayer> |
getImageLayers()
Gets the
IImageLayers contained in a Layer list. |
default IMapObject |
getMapObject(int mapId)
Gets the first
IMapObject with the given ID from a layer list. |
default IMapObjectLayer |
getMapObjectLayer(IMapObject mapObject)
Gets the
IMapObjectLayer containing a given IMapObject. |
default IMapObjectLayer |
getMapObjectLayer(int layerId) |
default IMapObjectLayer |
getMapObjectLayer(java.lang.String layerName) |
java.util.List<IMapObjectLayer> |
getMapObjectLayers()
Gets all MapObjectLayers in the Layer list.
|
default java.util.Collection<IMapObject> |
getMapObjects()
Gets all map objects in the layer list.
|
default java.util.Collection<IMapObject> |
getMapObjects(int... mapIDs)
Gets all map objects in the layer list using the map IDs passed as a parameter.
|
default java.util.Collection<IMapObject> |
getMapObjects(java.lang.String... types)
Gets all map objects in the layer list that belong to the types passed as a parameter.
|
java.util.List<ILayer> |
getRenderLayers()
Gets all render layers in the Layer list.
|
java.util.List<ITileLayer> |
getTileLayers()
Gets the
ITileLayers contained in a Layer list. |
void |
removeLayer(ILayer layer)
Removes an
ILayer from the Layer list. |
void |
removeLayer(int index)
Removes a layer from the Layer list.
|
default void |
removeMapObject(int mapId)
Removes the first
IMapObject with the given ID. |
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, getTypeOfProperty, hasCustomProperty, removeProperty, setProperties, setTypeOfProperty, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValuejava.util.List<ILayer> getRenderLayers()
java.util.List<IMapObjectLayer> getMapObjectLayers()
void addLayer(ILayer layer)
ILayer to the Layer list.layer - the layer to be addedvoid addLayer(int index,
ILayer layer)
ILayer to the Layer list at the given index.index - the indexlayer - the layer to be addedvoid removeLayer(ILayer layer)
ILayer from the Layer list.layer - the layer to be removeddefault IMapObjectLayer getMapObjectLayer(IMapObject mapObject)
IMapObjectLayer containing a given IMapObject.mapObject - the map object being searcheddefault IMapObjectLayer getMapObjectLayer(java.lang.String layerName)
default IMapObjectLayer getMapObjectLayer(int layerId)
void removeLayer(int index)
index - the index of the layer to be removeddefault java.util.Collection<IMapObject> getMapObjects()
default java.util.Collection<IMapObject> getMapObjects(java.lang.String... types)
types - an array of types for which the layer list is searcheddefault java.util.Collection<IMapObject> getMapObjects(int... mapIDs)
IMapObjects (and their corresponding Entity). This method is just a way of checking for non-unique IDs and
re-assigning
them before adding entities.mapIDs - an array of mapIDs for which the layer list is searchedEnvironment.add(final IEntity entity)default IMapObject getMapObject(int mapId)
IMapObject with the given ID from a layer list.mapId - the map id of the desired IMapObjectIMapObject with the given IDdefault void removeMapObject(int mapId)
IMapObject with the given ID.mapId - the map id of the IMapObject we want to removejava.util.List<ITileLayer> getTileLayers()
ITileLayers contained in a Layer list.List of all ITileLayersjava.util.List<IImageLayer> getImageLayers()
IImageLayers contained in a Layer list.List of all IImageLayersjava.util.List<IGroupLayer> getGroupLayers()
IGroupLayers contained in a Layer list.List of all IGroupLayers