public class IlvImageTileLoader extends IlvLayerVisibilityFilter implements IlvTileLoader
Constructor and Description |
---|
IlvImageTileLoader(IlvInputStream stream)
Reads a new image tile loader from an IVL stream.
|
IlvImageTileLoader(String prefix,
String suffix,
double minZoom,
double maxZoom)
Creates a new image tile loader.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isHighQualityRendering()
Returns the rendering quality of the
IlvIcon
objects created by this tile loader. |
boolean |
isPersistent()
Returns
true . |
boolean |
isVisible(IlvManagerLayer layer,
IlvManagerView view)
Returns
true when the zoom level of the view
is between the minimum and maximum zoom of this image tile loader. |
void |
load(IlvTile tile)
Implementation of the
IlvTileLoader interface. |
void |
release(IlvTile tile)
Implementation of the
IlvTileLoader interface. |
void |
setHighQualityRendering(boolean highQuality)
Sets the rendering quality of the
IlvIcon
objects created by this tile loader. |
void |
write(IlvOutputStream stream)
Writes this image tile loader to an IVL stream.
|
public IlvImageTileLoader(String prefix, String suffix, double minZoom, double maxZoom)
prefix
- The prefix of the image files.suffix
- The suffix of the image files.minZoom
- The minimum zoom level below which the tiles
will no longer be visible.maxZoom
- The maximum zoom level above which the tiles
will no longer be visible.public IlvImageTileLoader(IlvInputStream stream) throws IlvReadFileException, IOException
stream
- The input stream.IlvReadFileException
IOException
public void setHighQualityRendering(boolean highQuality)
IlvIcon
objects created by this tile loader.highQuality
- The new rendering quality.
The IlvIcon
objects created by this tile loader
will have their rendering quality set to the same value
as this parameter.IlvIcon.setHighQualityRendering(boolean)
public boolean isHighQualityRendering()
IlvIcon
objects created by this tile loader.setHighQualityRendering(boolean)
public void load(IlvTile tile) throws Exception
IlvTileLoader
interface.load
in interface IlvTileLoader
tile
- The tile to load.Exception
public void release(IlvTile tile)
IlvTileLoader
interface.release
in interface IlvTileLoader
tile
- The tile to release.public boolean isVisible(IlvManagerLayer layer, IlvManagerView view)
true
when the zoom level of the view
is between the minimum and maximum zoom of this image tile loader.isVisible
in class IlvLayerVisibilityFilter
layer
- The manager layer.view
- The manager view.public boolean isPersistent()
true
.isPersistent
in interface IlvTileLoader
isPersistent
in class IlvLayerVisibilityFilter
public void write(IlvOutputStream stream) throws IOException
write
in interface IlvPersistentObject
write
in interface IlvTileLoader
write
in class IlvLayerVisibilityFilter
stream
- The output stream.IOException
- standard IO error.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.