ilog.views.maps.format.dxf
Class IlvDXFFeatureRenderer

java.lang.Object
  extended by ilog.views.maps.format.dxf.IlvDXFFeatureRenderer
All Implemented Interfaces:
IlvPersistentObject, IlvFeatureRenderer

public class IlvDXFFeatureRenderer
extends Object
implements IlvFeatureRenderer

Graphic Feature Renderer: this renderer copies the IlvMapGraphic objects set in the id of the IlvMapFeature and reprojects them using the transformation.

Since:
JViews 8.0

Constructor Summary
IlvDXFFeatureRenderer()
          Creates a new IlvDXFFeatureRenderer.
IlvDXFFeatureRenderer(boolean usingGeodeticComputation)
          Creates a new IlvDXFFeatureRenderer instance.
IlvDXFFeatureRenderer(IlvInputStream stream)
          Creates a new IlvDXFFeatureRenderer from an IVL input stream.
 
Method Summary
 boolean isPersistent()
          Returns true if the renderer must be saved.
 IlvGraphic makeGraphic(IlvMapFeature arg0, IlvCoordinateTransformation transform)
          Translates an IlvMapFeature into a graphic object, using the specified IlvCoordinateTransformation to transform the coordinates.
 void write(IlvOutputStream stream)
          Writes the attributes of a persistent object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvDXFFeatureRenderer

public IlvDXFFeatureRenderer()
Creates a new IlvDXFFeatureRenderer.


IlvDXFFeatureRenderer

public IlvDXFFeatureRenderer(boolean usingGeodeticComputation)
Creates a new IlvDXFFeatureRenderer instance.

Parameters:
usingGeodeticComputation - Should this renderer take care of date line wrapping.
Since:
JViews 8.1

IlvDXFFeatureRenderer

public IlvDXFFeatureRenderer(IlvInputStream stream)
Creates a new IlvDXFFeatureRenderer from an IVL input stream.

Parameters:
stream - The stream to read from.
Method Detail

makeGraphic

public IlvGraphic makeGraphic(IlvMapFeature arg0,
                              IlvCoordinateTransformation transform)
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.

Specified by:
makeGraphic in interface IlvFeatureRenderer
Parameters:
arg0 - The map feature to translate.
transform - The transformation used to convert coordinates of the map feature.
See Also:
IlvFeatureRenderer.makeGraphic(ilog.views.maps.IlvMapFeature, ilog.views.maps.srs.coordtrans.IlvCoordinateTransformation)

write

public void write(IlvOutputStream stream)
Writes the attributes of a persistent object.

Specified by:
write in interface IlvPersistentObject
Specified by:
write in interface IlvFeatureRenderer
Parameters:
stream - the output stream
See Also:
IlvFeatureRenderer.write(ilog.views.io.IlvOutputStream)

isPersistent

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

Specified by:
isPersistent in interface IlvFeatureRenderer
See Also:
IlvFeatureRenderer.isPersistent()


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