ilog.views.maps.datasource
Class IlvMapDelegateFeatureIterator

java.lang.Object
  extended by ilog.views.maps.datasource.IlvMapDelegateFeatureIterator
All Implemented Interfaces:
IlvMapFeatureIterator, IlvMapReusableFeatureIterator
Direct Known Subclasses:
IlvRasterReusableFeatureIterator, IlvSDODataSource.OracleIterator

public abstract class IlvMapDelegateFeatureIterator
extends Object
implements IlvMapReusableFeatureIterator

An IlvMapReusableFeatureIterator that uses a IlvMapfeatureIterator as delegate. These class of IlvMapFeatureIterator is used in IlvMapDataSources in order to allow the data source to be restarted.

Since:
JViews 7.5

Constructor Summary
IlvMapDelegateFeatureIterator()
          Creates a new IlvMapDelegateFeatureIterator.
 
Method Summary
 void dispose()
          Releases the resources allocated by the feature iterator (files, connections, and so on).
 IlvCoordinateSystem getCoordinateSystem()
          Returns the spatial reference system that describes the coordinate system of geometric coordinates of the map features.
 IlvFeatureRenderer getDefaultFeatureRenderer()
          Returns a renderer that can be used to translate the map features returned by this iterator into graphic objects.
 IlvMapFeatureIterator getDelegate()
          Returns the delegate.
 IlvCoordinate getLowerRightCorner()
          Returns the lower right corner of the rectangle containing all the map feature of the list, or null if the iterator cannot provide this information.
 IlvMapFeature getNextFeature()
          Returns the next map feature of the iterator or null if the iteration is finished.
 IlvCoordinate getUpperLeftCorner()
          Returns the upper left corner of the rectangle containing all the map features of the list, or null if the iterator cannot provide this information.
 boolean isGeoreferenced()
          Returns true if the map reader can provide the source projection of its map features.
abstract  void restart()
          Rewinds the iterator for a new use.
 void setDelegate(IlvMapFeatureIterator delegate)
          Sets the delegate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvMapDelegateFeatureIterator

public IlvMapDelegateFeatureIterator()
Creates a new IlvMapDelegateFeatureIterator.

Method Detail

getDelegate

public IlvMapFeatureIterator getDelegate()
Returns the delegate.

Returns:
Returns the delegate.

setDelegate

public void setDelegate(IlvMapFeatureIterator delegate)
Sets the delegate.

Parameters:
delegate - The delegate to set.

dispose

public void dispose()
Releases the resources allocated by the feature iterator (files, connections, and so on).

Specified by:
dispose in interface IlvMapFeatureIterator
See Also:
IlvMapFeatureIterator.dispose()

getCoordinateSystem

public IlvCoordinateSystem getCoordinateSystem()
Returns the spatial reference system that describes the coordinate system of geometric coordinates of the map features.

Specified by:
getCoordinateSystem in interface IlvMapFeatureIterator
Returns:
The coordinate system, or null if the coordinate system is unknown.
See Also:
IlvMapFeatureIterator.getCoordinateSystem()

getDefaultFeatureRenderer

public IlvFeatureRenderer getDefaultFeatureRenderer()
Returns a renderer that can be used to translate the map features returned by this iterator into graphic objects. Feature iterators that store some rendering information in the attributes of the map features, such as color, text font, line thickness and so on, can return a specific renderer which is able to take these attributes into account during the rendering process.

Specified by:
getDefaultFeatureRenderer in interface IlvMapFeatureIterator
See Also:
IlvMapFeatureIterator.getDefaultFeatureRenderer()

getLowerRightCorner

public IlvCoordinate getLowerRightCorner()
Returns the lower right corner of the rectangle containing all the map feature of the list, or null if the iterator cannot provide this information.

Specified by:
getLowerRightCorner in interface IlvMapFeatureIterator
See Also:
IlvMapFeatureIterator.getLowerRightCorner()

getUpperLeftCorner

public IlvCoordinate getUpperLeftCorner()
Returns the upper left corner of the rectangle containing all the map features of the list, or null if the iterator cannot provide this information.

Specified by:
getUpperLeftCorner in interface IlvMapFeatureIterator
See Also:
IlvMapFeatureIterator.getUpperLeftCorner()

getNextFeature

public IlvMapFeature getNextFeature()
                             throws IOException
Returns the next map feature of the iterator or null if the iteration is finished. The returned map feature must be considered as volatile and can be modified by the reader during the next call to its getNextFeature function.

Specified by:
getNextFeature in interface IlvMapFeatureIterator
Throws:
IOException
See Also:
IlvMapFeatureIterator.getNextFeature()

isGeoreferenced

public boolean isGeoreferenced()
Returns true if the map reader can provide the source projection of its map features.

Specified by:
isGeoreferenced in interface IlvMapFeatureIterator
See Also:
IlvMapFeatureIterator.isGeoreferenced()

restart

public abstract void restart()
Rewinds the iterator for a new use.

Specified by:
restart in interface IlvMapReusableFeatureIterator
See Also:
IlvMapReusableFeatureIterator.restart()


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