Package com.luciad.model
Class ALcdTileProvider
java.lang.Object
com.luciad.model.ALcdTileProvider
- All Implemented Interfaces:
ILcdTileProvider
- Direct Known Subclasses:
TLcdDefaultTileProvider
Deprecated.
This API is only here to support deprecated formats.
A skeleton implementation of
ILcdTileProvider
.
Extensions of this class should only implement the createTileSourceName(int, int)
method to complete
this tile provider.
A SoftReference
is kept to tiles that are already decoded.
- Since:
- V2.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
createTileSourceName
(int aRow, int aColumn) Deprecated.Returns the full tile source name for the specified row and column, ornull
if no tile exists for the specified (row, column) combination.Deprecated.Returns the directory to be used as base path for the source files that contain the data of the tiles.int
Deprecated.Returns the number of columns in this tile provider.int
Deprecated.Returns the number of rows in this tile provider.getTile
(int aRow, int aCol) Deprecated.Returns the tile at the specified row and column.boolean
Deprecated.This method has been deprecated.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.void
setTraceOn
(boolean aTraceOn) Deprecated.This method has been deprecated.
-
Field Details
-
NO_OF_TILE_ROWS
Deprecated.Name of the property holding the number of rows for thisALcdTileProvider
.- See Also:
-
NO_OF_TILE_COLUMNS
Deprecated.Name of the property holding the number of columns for thisALcdTileProvider
.- See Also:
-
-
Constructor Details
-
ALcdTileProvider
public ALcdTileProvider()Deprecated.
-
-
Method Details
-
isTraceOn
public boolean isTraceOn()Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrue
if tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
setTraceOn
public void setTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for this class instance. Calling this method with eithertrue
orfalse
as argument automatically turns off tracing for all other class instances for whichsetTraceOn
has not been called. If the argument isfalse
then only the informative, warning and error log messages are recorded.- Parameters:
aTraceOn
- if true then all log messages are recorded for this instance. If false, then only the informative, warning and error log messages are recorded.
-
setBasePath
Deprecated.Sets the directory to be used as base path for the source files that contain the data of the tiles. This base path is used to generate the full tile source names.- Specified by:
setBasePath
in interfaceILcdTileProvider
- Parameters:
aBasePath
- the directory that is the base path for the source files containing the data of the tiles.- See Also:
-
getBasePath
Deprecated.Returns the directory to be used as base path for the source files that contain the data of the tiles.- Returns:
- the directory to be used as base path for the source files that contain the data of the tiles.
- See Also:
-
setTileDecoder
Deprecated.Description copied from interface:ILcdTileProvider
Sets the tile decoder to use for decoding the tiles from the source files.- Specified by:
setTileDecoder
in interfaceILcdTileProvider
- Parameters:
aTileDecoder
- the decoder to use for decoding an individual tile.
-
getNoOfRows
public int getNoOfRows()Deprecated.Description copied from interface:ILcdTileProvider
Returns the number of rows in this tile provider.- Specified by:
getNoOfRows
in interfaceILcdTileProvider
- Returns:
- the number of rows in this tile provider.
-
getNoOfCols
public int getNoOfCols()Deprecated.Description copied from interface:ILcdTileProvider
Returns the number of columns in this tile provider.- Specified by:
getNoOfCols
in interfaceILcdTileProvider
- Returns:
- the number of columns in this tile provider.
-
getTile
Deprecated.Description copied from interface:ILcdTileProvider
Returns the tile at the specified row and column. If no tile is available for the specified row and column,null
is returned.- Specified by:
getTile
in interfaceILcdTileProvider
- Parameters:
aRow
- the row number of the tile to be returned.aCol
- the column number of the tile to be returned.- Returns:
- the tile at the specified row and column.
-
loadProperties
Deprecated.Initializes this tile provider with the specified properties. The exact contents of these properties are specified by the implementations of this interface.This abstract implementation only gets the properties that specify the number of rows and the number of columns. Overwrite this method to load properties that are specific to your
ILcdTileProvider
implementation. First callsuper.loadProperties
to get the number of rows and columns.- Specified by:
loadProperties
in interfaceILcdTileProvider
- Parameters:
aPrefix
- a prefix that is used for the properties of this tile provider.aProperties
- the properties to initialize this tile provider with.
-
createTileSourceName
Deprecated.Returns the full tile source name for the specified row and column, ornull
if no tile exists for the specified (row, column) combination.- Parameters:
aRow
- the row number of the tile.aColumn
- the column number of the tile.- Returns:
- the full tile source name for the specified row and column, or
null
if no tile exists for the specified (row, column) combination..
-