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
Represents a group layer in a tile map. This class extends the
Layer class and implements the IGroupLayer interface.-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty group for map editors and programmatic map construction.GroupLayer(GroupLayer original) Copy constructor for the GroupLayer class. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds anILayerto the Layer list at the given index.voidAdds anILayerto the Layer list.protected voidafterUnmarshal(jakarta.xml.bind.Unmarshaller u, Object parent) Gets theIGroupLayers contained in a Layer list.Gets theIImageLayers contained in a Layer list.Gets all MapObjectLayers in the Layer list.Gets all render layers in the Layer list.Gets theITileLayers contained in a Layer list.voidremoveLayer(int index) Removes a layer from the Layer list.voidremoveLayer(ILayer layer) Removes anILayerfrom the Layer list.protected voidMethods inherited from class Layer
getHeight, getHorizontalParallaxFactor, getId, getMap, getName, getOffset, getOffsetX, getOffsetY, getOpacity, getRenderType, getSizeInTiles, getTintColor, getVerticalParallaxFactor, getWidth, isVisible, setHeight, setName, setOpacity, setRenderType, setTintColor, setVisible, setWidthMethods inherited from class CustomPropertyProvider
getBoolValue, getBoolValue, getByteValue, getByteValue, getCharValue, getCharValue, getColorValue, getColorValue, getCommaSeparatedStringValues, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getMapObjectId, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, hasCustomProperty, removeProperty, setProperties, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ICustomPropertyProvider
getBoolValue, getBoolValue, getByteValue, getByteValue, getCharValue, getCharValue, getColorValue, getColorValue, getCommaSeparatedStringValues, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getMapObjectId, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, hasCustomProperty, removeProperty, setProperties, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueMethods inherited from interface ILayer
getHeight, getHorizontalParallaxFactor, getId, getMap, getName, getOffset, getOffsetX, getOffsetY, getOpacity, getRenderType, getSizeInTiles, getTintColor, getVerticalParallaxFactor, getWidth, isVisible, setHeight, setName, setOpacity, setRenderType, setTintColor, setVisible, setWidthMethods inherited from interface ILayerList
getMapObject, getMapObjectLayer, getMapObjectLayer, getMapObjectLayer, getMapObjects, getMapObjects, getMapObjects, removeMapObject
-
Constructor Details
-
GroupLayer
public GroupLayer()Creates an empty group for map editors and programmatic map construction. -
GroupLayer
Copy constructor for the GroupLayer class. Creates a new instance of the GroupLayer class by copying the properties from the provided GroupLayer object.- Parameters:
original- The original GroupLayer object to copy from.
-
-
Method Details
-
getRenderLayers
Description copied from interface:ILayerListGets all render layers in the Layer list.- Specified by:
getRenderLayersin interfaceILayerList- Returns:
- a List of ILayers
-
getMapObjectLayers
Description copied from interface:ILayerListGets all MapObjectLayers in the Layer list.- Specified by:
getMapObjectLayersin interfaceILayerList- Returns:
- a List of IMapObjectLayers
-
addLayer
Description copied from interface:ILayerListAdds anILayerto the Layer list.- Specified by:
addLayerin interfaceILayerList- Parameters:
layer- the layer to be added
-
addLayer
Description copied from interface:ILayerListAdds anILayerto the Layer list at the given index.- Specified by:
addLayerin interfaceILayerList- Parameters:
index- the indexlayer- the layer to be added
-
removeLayer
Description copied from interface:ILayerListRemoves anILayerfrom the Layer list.- Specified by:
removeLayerin interfaceILayerList- Parameters:
layer- the layer to be removed
-
removeLayer
public void removeLayer(int index) Description copied from interface:ILayerListRemoves a layer from the Layer list.- Specified by:
removeLayerin interfaceILayerList- Parameters:
index- the index of the layer to be removed
-
getTileLayers
Description copied from interface:ILayerListGets theITileLayers contained in a Layer list.- Specified by:
getTileLayersin interfaceILayerList- Returns:
- a
Listof allITileLayers
-
getImageLayers
Description copied from interface:ILayerListGets theIImageLayers contained in a Layer list.- Specified by:
getImageLayersin interfaceILayerList- Returns:
- a
Listof allIImageLayers
-
getGroupLayers
Description copied from interface:ILayerListGets theIGroupLayers contained in a Layer list.- Specified by:
getGroupLayersin interfaceILayerList- Returns:
- a
Listof allIGroupLayers
-
setMap
-
afterUnmarshal
- Overrides:
afterUnmarshalin classLayer
-