ilog.views.sdm.renderer.maps
Class IlvImageTileLoader

java.lang.Object
  extended by ilog.views.IlvLayerVisibilityFilter
      extended by ilog.views.sdm.renderer.maps.IlvImageTileLoader
All Implemented Interfaces:
IlvPersistentObject, IlvTileLoader, Serializable

public class IlvImageTileLoader
extends IlvLayerVisibilityFilter
implements IlvTileLoader

This class implements a "load-on-demand" tile loader that can be used to define maps made of very large high-resolution images.

Since:
JViews 4.0
See Also:
Serialized Form

Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvImageTileLoader

public IlvImageTileLoader(String prefix,
                          String suffix,
                          double minZoom,
                          double maxZoom)
Creates a new image tile loader.

Parameters:
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.

IlvImageTileLoader

public IlvImageTileLoader(IlvInputStream stream)
                   throws IlvReadFileException,
                          IOException
Reads a new image tile loader from an IVL stream.

Parameters:
stream - The input stream.
Throws:
IlvReadFileException
IOException
Method Detail

setHighQualityRendering

public void setHighQualityRendering(boolean highQuality)
Sets the rendering quality of the IlvIcon objects created by this tile loader.

Parameters:
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.
See Also:
IlvIcon.setHighQualityRendering(boolean)

isHighQualityRendering

public boolean isHighQualityRendering()
Returns the rendering quality of the IlvIcon objects created by this tile loader.

See Also:
setHighQualityRendering(boolean)

load

public void load(IlvTile tile)
          throws Exception
Implementation of the IlvTileLoader interface.

Specified by:
load in interface IlvTileLoader
Parameters:
tile - The tile to load.
Throws:
Exception

release

public void release(IlvTile tile)
Implementation of the IlvTileLoader interface.

Specified by:
release in interface IlvTileLoader
Parameters:
tile - The tile to release.

isVisible

public 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.

Specified by:
isVisible in class IlvLayerVisibilityFilter
Parameters:
layer - The manager layer.
view - The manager view.

isPersistent

public boolean isPersistent()
Returns true.

Specified by:
isPersistent in interface IlvTileLoader
Specified by:
isPersistent in class IlvLayerVisibilityFilter

write

public void write(IlvOutputStream stream)
           throws IOException
Writes this image tile loader to an IVL stream.

Specified by:
write in interface IlvPersistentObject
Specified by:
write in interface IlvTileLoader
Overrides:
write in class IlvLayerVisibilityFilter
Parameters:
stream - The output stream.
Throws:
IOException - standard IO error.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.