Class MapImage
java.lang.Object
de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyProvider
de.gurkenlabs.litiengine.environment.tilemap.xml.MapImage
- All Implemented Interfaces:
ICustomPropertyProvider,IMapImage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests for equality between two map images.Gets the dimension.intGets the height.Gets the source.Gets the transparent color.intgetWidth()Gets the width.inthashCode()Computes a hash code for this map image.voidsetAbsoluteSourcePath(URL absolutePath) voidsetHeight(int height) voidvoidsetTransparentColor(Color color) voidsetWidth(int width) toString()Methods inherited from class de.gurkenlabs.litiengine.environment.tilemap.xml.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 java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.gurkenlabs.litiengine.environment.tilemap.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, setValue
-
Constructor Details
-
MapImage
public MapImage()Instantiates a newMapImageinstance. -
MapImage
Instantiates a newMapImageinstance by copying the specified original.- Parameters:
original- the original we want to copy
-
-
Method Details
-
getAbsoluteSourcePath
- Specified by:
getAbsoluteSourcePathin interfaceIMapImage
-
getDimension
Description copied from interface:IMapImageGets the dimension.- Specified by:
getDimensionin interfaceIMapImage- Returns:
- the dimension
-
getWidth
-
getHeight
-
getSource
-
getTransparentColor
Description copied from interface:IMapImageGets the transparent color.- Specified by:
getTransparentColorin interfaceIMapImage- Returns:
- the transparent color
-
setTransparentColor
- Specified by:
setTransparentColorin interfaceIMapImage
-
setSource
-
setAbsoluteSourcePath
- Specified by:
setAbsoluteSourcePathin interfaceIMapImage
-
setWidth
-
setHeight
-
equals
Description copied from interface:IMapImageTests for equality between two map images. Two map images are equal if they have the same absolute source path and the same transparent color. -
hashCode
-
toString
-