Class ImageLayer
java.lang.Object
de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyProvider
de.gurkenlabs.litiengine.environment.tilemap.xml.Layer
de.gurkenlabs.litiengine.environment.tilemap.xml.ImageLayer
- All Implemented Interfaces:
ICustomPropertyProvider
,IImageLayer
,ILayer
public class ImageLayer
extends Layer
implements IImageLayer
Constructor Summary
Constructors Constructor Description ImageLayer()
Method Summary
Modifier and Type Method Description IMapImage
getImage()
Gets the image.int
getOffsetX()
Gets the horizontal offset of the layer.int
getOffsetY()
Gets the vertical offset of the layer.java.awt.Color
getTransparentColor()
Gets the transparent color.Methods inherited from class de.gurkenlabs.litiengine.environment.tilemap.xml.Layer
afterUnmarshal, getHeight, getId, getMap, getName, getOffset, 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, getOpacity, getRenderType, getSizeInTiles, getWidth, isVisible, setHeight, setName, setOpacity, setRenderType, setVisible, setWidth
Constructor Details
ImageLayer
public ImageLayer()
Method Details
getImage
Description copied from interface:IImageLayer
Gets the image.- Specified by:
getImage
in interfaceIImageLayer
- Returns:
- the image
getTransparentColor
public java.awt.Color getTransparentColor()Description copied from interface:IImageLayer
Gets the transparent color.- Specified by:
getTransparentColor
in interfaceIImageLayer
- Returns:
- the transparent color
getOffsetX
public int getOffsetX()Description copied from interface:ILayer
Gets the horizontal offset of the layer.- Specified by:
getOffsetX
in interfaceILayer
- Overrides:
getOffsetX
in classLayer
- Returns:
- the x offset
getOffsetY
public int getOffsetY()Description copied from interface:ILayer
Gets the vertical offset of the layer.- Specified by:
getOffsetY
in interfaceILayer
- Overrides:
getOffsetY
in classLayer
- Returns:
- the y offset