Interface ILayer
- All Superinterfaces:
ICustomPropertyProvider
- All Known Subinterfaces:
IGroupLayer
,IImageLayer
,IMapObjectLayer
,ITileLayer
- All Known Implementing Classes:
GroupLayer
,ImageLayer
,Layer
,MapObjectLayer
,TileLayer
public interface ILayer
extends ICustomPropertyProvider
Method Summary
Modifier and Type Method Description int
getHeight()
int
getId()
IMap
getMap()
java.lang.String
getName()
Gets the name.java.awt.Point
getOffset()
Gets both the X and the Y offset of the layer.int
getOffsetX()
Gets the horizontal offset of the layer.int
getOffsetY()
Gets the vertical offset of the layer.float
getOpacity()
Gets the opacity.RenderType
getRenderType()
java.awt.Dimension
getSizeInTiles()
Gets the size in tiles.int
getWidth()
boolean
isVisible()
Checks if is visible.void
setHeight(int newWidth)
void
setName(java.lang.String name)
void
setOpacity(float opacity)
void
setRenderType(RenderType renderType)
void
setVisible(boolean visible)
void
setWidth(int newWidth)
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
Method Details
getId
int getId()getName
java.lang.String getName()Gets the name.- Returns:
- the name
getOpacity
float getOpacity()Gets the opacity.- Returns:
- the opacity
getOffset
java.awt.Point getOffset()Gets both the X and the Y offset of the layer.- Returns:
- a
Point
representing the offset
getOffsetX
int getOffsetX()Gets the horizontal offset of the layer.- Returns:
- the x offset
getOffsetY
int getOffsetY()Gets the vertical offset of the layer.- Returns:
- the y offset
getSizeInTiles
java.awt.Dimension getSizeInTiles()Gets the size in tiles.- Returns:
- the size in tiles
getMap
IMap getMap()isVisible
boolean isVisible()Checks if is visible.- Returns:
- true, if is visible
setVisible
void setVisible(boolean visible)setName
void setName(java.lang.String name)getRenderType
RenderType getRenderType()getWidth
int getWidth()getHeight
int getHeight()setWidth
void setWidth(int newWidth)setHeight
void setHeight(int newWidth)setOpacity
void setOpacity(float opacity)setRenderType