@Deprecated public interface ILcdTileProvider
ILcd2DBoundsInteractable
interface.
Additional methods are provided to configure a tile provider, but these do not necessarily need to be supported by each tile provider.
Modifier and Type | Method and Description |
---|---|
int |
getNoOfCols()
Deprecated.
Returns the number of columns in this tile provider.
|
int |
getNoOfRows()
Deprecated.
Returns the number of rows in this tile provider.
|
ILcd2DBoundsInteractable |
getTile(int aRow,
int aColumn)
Deprecated.
Returns the tile at the specified row and column.
|
void |
loadProperties(String aPrefix,
Properties aProperties)
Deprecated.
Initializes this tile provider with the specified properties.
|
void |
setBasePath(String aBasePath)
Deprecated.
Sets the directory to be used as base path for the source files that contain the data of the tiles.
|
void |
setTileDecoder(ILcdTileDecoder aTileDecoder)
Deprecated.
Sets the tile decoder to use for decoding the tiles from the source files.
|
int getNoOfRows()
int getNoOfCols()
ILcd2DBoundsInteractable getTile(int aRow, int aColumn)
null
is returned.aRow
- the row number of the tile to be returned.aColumn
- the column number of the tile to be returned.IndexOutOfBoundsException
- if aRow < 0 || aRow >= getNoOfRows() || aColumn < 0 ||
aColumn >= getNoOfCols()
void loadProperties(String aPrefix, Properties aProperties)
aPrefix
- a prefix that is used for the properties of this tile provider.aProperties
- the properties to initialize this tile provider with.NullPointerException
- if aProperties == null
.void setBasePath(String aBasePath)
aBasePath
- the directory that is the base path for the source files containing the data of the tiles.void setTileDecoder(ILcdTileDecoder aTileDecoder)
aTileDecoder
- the decoder to use for decoding an individual tile.