Class GroupLayer
java.lang.Object
de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyProvider
de.gurkenlabs.litiengine.environment.tilemap.xml.Layer
de.gurkenlabs.litiengine.environment.tilemap.xml.GroupLayer
- All Implemented Interfaces:
ICustomPropertyProvider
,IGroupLayer
,ILayer
,ILayerList
public class GroupLayer
extends Layer
implements IGroupLayer
Constructor Summary
Constructors Constructor Description GroupLayer()
Method Summary
Modifier and Type Method Description void
addLayer(int index, ILayer layer)
Adds anILayer
to the Layer list at the given index.void
addLayer(ILayer layer)
Adds anILayer
to the Layer list.protected void
afterUnmarshal(javax.xml.bind.Unmarshaller u, java.lang.Object parent)
java.util.List<IGroupLayer>
getGroupLayers()
Gets theIGroupLayer
s contained in a Layer list.java.util.List<IImageLayer>
getImageLayers()
Gets theIImageLayer
s contained in a Layer list.java.util.List<IMapObjectLayer>
getMapObjectLayers()
Gets all MapObjectLayers in the Layer list.java.util.List<ILayer>
getRenderLayers()
Gets all render layers in the Layer list.java.util.List<ITileLayer>
getTileLayers()
Gets theITileLayer
s contained in a Layer list.void
removeLayer(int index)
Removes a layer from the Layer list.void
removeLayer(ILayer layer)
Removes anILayer
from the Layer list.Methods inherited from class de.gurkenlabs.litiengine.environment.tilemap.xml.Layer
getHeight, getId, getMap, getName, getOffset, getOffsetX, getOffsetY, getOpacity, getRenderType, getSizeInTiles, getWidth, isVisible, setHeight, setMap, setName, setOpacity, setRenderType, setVisible, setWidth
Methods inherited from class de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyProvider
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getCommaSeparatedStringValues, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, getTypeOfProperty, hasCustomProperty, removeProperty, setProperties, setTypeOfProperty, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.gurkenlabs.litiengine.environment.tilemap.ICustomPropertyProvider
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getCommaSeparatedStringValues, 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, setValue
Methods inherited from interface de.gurkenlabs.litiengine.environment.tilemap.ILayer
getHeight, getId, getMap, getName, getOffset, getOffsetX, getOffsetY, getOpacity, getRenderType, getSizeInTiles, getWidth, isVisible, setHeight, setName, setOpacity, setRenderType, setVisible, setWidth
Methods inherited from interface de.gurkenlabs.litiengine.environment.tilemap.ILayerList
getMapObject, getMapObjectLayer, getMapObjectLayer, getMapObjectLayer, getMapObjects, getMapObjects, getMapObjects, removeMapObject
Constructor Details
GroupLayer
public GroupLayer()
Method Details
getRenderLayers
Description copied from interface:ILayerList
Gets all render layers in the Layer list.- Specified by:
getRenderLayers
in interfaceILayerList
- Returns:
- a List of ILayers
getMapObjectLayers
Description copied from interface:ILayerList
Gets all MapObjectLayers in the Layer list.- Specified by:
getMapObjectLayers
in interfaceILayerList
- Returns:
- a List of IMapObjectLayers
addLayer
Description copied from interface:ILayerList
Adds anILayer
to the Layer list.- Specified by:
addLayer
in interfaceILayerList
- Parameters:
layer
- the layer to be added
addLayer
Description copied from interface:ILayerList
Adds anILayer
to the Layer list at the given index.- Specified by:
addLayer
in interfaceILayerList
- Parameters:
index
- the indexlayer
- the layer to be added
removeLayer
Description copied from interface:ILayerList
Removes anILayer
from the Layer list.- Specified by:
removeLayer
in interfaceILayerList
- Parameters:
layer
- the layer to be removed
removeLayer
public void removeLayer(int index)Description copied from interface:ILayerList
Removes a layer from the Layer list.- Specified by:
removeLayer
in interfaceILayerList
- Parameters:
index
- the index of the layer to be removed
getTileLayers
Description copied from interface:ILayerList
Gets theITileLayer
s contained in a Layer list.- Specified by:
getTileLayers
in interfaceILayerList
- Returns:
- a
List
of allITileLayer
s
getImageLayers
Description copied from interface:ILayerList
Gets theIImageLayer
s contained in a Layer list.- Specified by:
getImageLayers
in interfaceILayerList
- Returns:
- a
List
of allIImageLayer
s
getGroupLayers
Description copied from interface:ILayerList
Gets theIGroupLayer
s contained in a Layer list.- Specified by:
getGroupLayers
in interfaceILayerList
- Returns:
- a
List
of allIGroupLayer
s
afterUnmarshal
protected void afterUnmarshal(javax.xml.bind.Unmarshaller u, java.lang.Object parent)- Overrides:
afterUnmarshal
in classLayer