ilog.views.maps
Interface IlvFeatureRenderer

All Superinterfaces:
IlvPersistentObject
All Known Implementing Classes:
IlvDefaultAreaRenderer, IlvDefaultCurveRenderer, IlvDefaultFeatureRenderer, IlvDefaultImageRenderer, IlvDefaultMultiPointRenderer, IlvDefaultPointRenderer, IlvDefaultRasterRenderer, IlvDefaultTextRenderer, IlvDXFFeatureRenderer, IlvGraphicLayerDataSource, IlvIconPointRenderer, IlvLabeledAreaRenderer, IlvLabeledPointRenderer, IlvMapAreaRenderer, IlvMapCSSRenderer, IlvMapCurveRenderer, IlvMapPointRenderer, IlvMapTextRenderer, IlvMIFFeatureRenderer, IlvPolylineMergerDataSource, IlvPolylineSimplifierDataSource, IlvRasterImageRenderer

public interface IlvFeatureRenderer
extends IlvPersistentObject

This interface is used to translate an IlvMapFeature into a graphic object.

Since:
JViews 3.0

Method Summary
 boolean isPersistent()
          Returns true if the renderer must be saved.
 IlvGraphic makeGraphic(IlvMapFeature feature, IlvCoordinateTransformation t)
          Translates an IlvMapFeature into a graphic object, using the specified IlvCoordinateTransformation to transform the coordinates.
 void write(IlvOutputStream stream)
          Writes the renderer to an IlvOutputStream.
 

Method Detail

makeGraphic

IlvGraphic makeGraphic(IlvMapFeature feature,
                       IlvCoordinateTransformation t)
                       throws IlvMapRenderException,
                              IlvCoordinateTransformationException
Translates an IlvMapFeature into a graphic object, using the specified IlvCoordinateTransformation to transform the coordinates.
Note that this method has been changed since ILOG JViews 5.0. The old method was draw(IlvMapFeature, IlvProjection). In case you have overridden the old draw method, you have to rewrite your method in order to migrate to JViews 5.0.

Parameters:
feature - The map feature to translate.
t - The transformation used to convert coordinates of the map feature.
Throws:
IlvMapRenderException - if the renderer cannot process the map feature (most of the time, because the renderer does not support the feature geometry).
IlvCoordinateTransformationException - if an error occurs while transforming coordinates.
IlvMapRenderException
Since:
JViews 5.0

write

void write(IlvOutputStream stream)
           throws IOException
Writes the renderer to an IlvOutputStream.

Specified by:
write in interface IlvPersistentObject
Parameters:
stream - the output stream
Throws:
IOException - thrown when an exception occurs during the write operation for this object.

isPersistent

boolean isPersistent()
Returns true if the renderer must be saved.



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