|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.format.IlvMapTileLoader
ilog.views.maps.format.image.IlvImageTileLoader
public class IlvImageTileLoader
This class is a IlvTileLoader specialized
for loading a set of images, each image representing a tile
in a tiled data set.
Additionally, this tile loader uses the following policy to find
files whose names are used to create this tile loader:
IlvMapDataPathManager.
IlvInputStream,
the path names are considered relative to the document base of
the input stream.
IlvMapDataPathManager,
IlvInputStream.getDocumentBase()| Constructor Summary | |
|---|---|
IlvImageTileLoader(IlvInputStream stream)
Constructs an IlvImageTileLoader by reading
an IlvInputStream. |
|
IlvImageTileLoader(String pattern,
String colFormatString,
String rowFormatString)
Creates an IlvImageTileLoader by specifying
a pattern and two formats used to construct a URL string for
a given IlvTile. |
|
| Method Summary | |
|---|---|
IlvFeatureRenderer |
getDefaultFeatureRenderer()
Returns an IlvFeatureRenderer used to render
an image. |
IlvMapFeatureIterator |
getFeatureIterator(IlvTile tile)
Returns an IlvMapFeatureIterator used to load
the tile tile. |
protected String |
getFileName(IlvTile tile)
Returns the file name corresponding to the tile tile. |
boolean |
isPersistent()
Returns true since this reader is persistent. |
void |
write(IlvOutputStream stream)
Writes this tile loader in an IlvOutputStream. |
| Methods inherited from class ilog.views.maps.format.IlvMapTileLoader |
|---|
getFeatureRenderer, isAttachingAttributes, load, release, setAttachingAttributes, setFeatureRenderer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvImageTileLoader(String pattern,
String colFormatString,
String rowFormatString)
IlvImageTileLoader by specifying
a pattern and two formats used to construct a URL string for
a given IlvTile.
DecimalFormat which are used to format the tile row and column.
ADirectory/file_%c_%r_image.jpg" and the
colFormatString is "000" and the colFormatString
is "0000", the resulting file name for the tile at (12, 34) will be
"ADirectory/file_0034_012_image.jpg".
pattern - The file name pattern, containing one %c and one %r.colFormatString - A string used to construct a
DecimalFormat for the column specifier.rowFormatString - A string used to construct a
DecimalFormat for the row specifier.
public IlvImageTileLoader(IlvInputStream stream)
throws IlvReadFileException
IlvImageTileLoader by reading
an IlvInputStream.
stream - The IlvInputStream to read from.
IlvReadFileException| Method Detail |
|---|
public IlvFeatureRenderer getDefaultFeatureRenderer()
IlvFeatureRenderer used to render
an image.
getDefaultFeatureRenderer in class IlvMapTileLoaderIlvFeatureRenderer.
public IlvMapFeatureIterator getFeatureIterator(IlvTile tile)
throws Exception
IlvMapFeatureIterator used to load
the tile tile.
IlvImageReader
based on the result of getFileName(IlvTile tile).
getFileName() can be
interpreted as a URL, an IlvImageReader reading
the image from the URL is returned.
getFileName() cannot be
interpreted as a URL, an IlvImageReader reading
the image from the file name returned by getFileName()
is returned.
getFeatureIterator in class IlvMapTileLoadertile - The IlvTile to be loaded.
IlvMapFeatureIterator.
ExceptiongetFileName(ilog.views.tiling.IlvTile)public boolean isPersistent()
true since this reader is persistent.
isPersistent in interface IlvTileLoaderisPersistent in class IlvMapTileLoader
protected String getFileName(IlvTile tile)
throws ParseException
tile - The tile to be loaded.
ParseException
public void write(IlvOutputStream stream)
throws IOException
IlvOutputStream.
write in interface IlvPersistentObjectwrite in interface IlvTileLoaderwrite in class IlvMapTileLoaderstream - The IlvOutputStream.
IOException - thrown when an exception occurs during
the write operation for this object.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||