Class MapObjectLayer
java.lang.Object
de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyProvider
de.gurkenlabs.litiengine.environment.tilemap.xml.Layer
de.gurkenlabs.litiengine.environment.tilemap.xml.MapObjectLayer
- All Implemented Interfaces:
ICustomPropertyProvider,ILayer,IMapObjectLayer
public class MapObjectLayer
extends Layer
implements IMapObjectLayerField Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_MAPOBJECTLAYER_NAMEConstructor Summary
Constructors Constructor Description MapObjectLayer()Instantiates a newMapObjectLayerinstance.MapObjectLayer(MapObjectLayer original)Instantiates a newMapObjectLayerinstance by copying from the specified original.Method Summary
Modifier and Type Method Description voidaddMapObject(IMapObject mapObject)protected voidafterUnmarshal(javax.xml.bind.Unmarshaller u, java.lang.Object parent)java.awt.ColorgetColor()java.lang.StringgetColorHexString()java.util.List<IMapObject>getMapObjects()Gets the shapes.java.util.Collection<IMapObject>getMapObjects(int... mapIDs)java.util.Collection<IMapObject>getMapObjects(java.lang.String... types)java.awt.DimensiongetSizeInTiles()Gets the size in tiles.voidremoveMapObject(IMapObject mapObject)voidsetColor(java.lang.String color)java.lang.StringtoString()Methods inherited from class de.gurkenlabs.litiengine.environment.tilemap.xml.Layer
getHeight, getId, getMap, getName, getOffset, getOffsetX, getOffsetY, getOpacity, getRenderType, getWidth, isVisible, setHeight, setMap, setName, setOpacity, setRenderType, setVisible, setWidthMethods 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, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, setValueMethods inherited from interface de.gurkenlabs.litiengine.environment.tilemap.ILayer
getHeight, getId, getMap, getName, getOffset, getOffsetX, getOffsetY, getOpacity, getRenderType, getWidth, isVisible, setHeight, setName, setOpacity, setRenderType, setVisible, setWidth
Field Details
DEFAULT_MAPOBJECTLAYER_NAME
public static final java.lang.String DEFAULT_MAPOBJECTLAYER_NAME- See Also:
- Constant Field Values
Constructor Details
MapObjectLayer
public MapObjectLayer()Instantiates a newMapObjectLayerinstance.MapObjectLayer
Instantiates a newMapObjectLayerinstance by copying from the specified original.- Parameters:
original- the layer we want to copy
Method Details
getMapObjects
Description copied from interface:IMapObjectLayerGets the shapes.- Specified by:
getMapObjectsin interfaceIMapObjectLayer- Returns:
- the shapes
removeMapObject
- Specified by:
removeMapObjectin interfaceIMapObjectLayer
getSizeInTiles
public java.awt.Dimension getSizeInTiles()Description copied from interface:ILayerGets the size in tiles.- Specified by:
getSizeInTilesin interfaceILayer- Overrides:
getSizeInTilesin classLayer- Returns:
- the size in tiles
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
addMapObject
- Specified by:
addMapObjectin interfaceIMapObjectLayer
getColor
public java.awt.Color getColor()- Specified by:
getColorin interfaceIMapObjectLayer
getColorHexString
public java.lang.String getColorHexString()- Specified by:
getColorHexStringin interfaceIMapObjectLayer
setColor
public void setColor(java.lang.String color)- Specified by:
setColorin interfaceIMapObjectLayer
getMapObjects
- Specified by:
getMapObjectsin interfaceIMapObjectLayer
getMapObjects
- Specified by:
getMapObjectsin interfaceIMapObjectLayer
afterUnmarshal
protected void afterUnmarshal(javax.xml.bind.Unmarshaller u, java.lang.Object parent)- Overrides:
afterUnmarshalin classLayer
