ilog.views.maps.rendering
Class IlvMapCurveRenderer

java.lang.Object
  extended by ilog.views.maps.rendering.IlvDefaultCurveRenderer
      extended by ilog.views.maps.rendering.IlvMapCurveRenderer
All Implemented Interfaces:
IlvPersistentObject, IlvFeatureRenderer

public class IlvMapCurveRenderer
extends IlvDefaultCurveRenderer

IlvMapCurveRenderer is a curve renderer that renders stylable IlvGraphic objects, that is, objects that implement the IlvMapGraphic interface.

This renderer is able to perform geodetic computation using the IlvGeodeticPathComputation class.

Since:
JViews 7.5

Constructor Summary
IlvMapCurveRenderer(boolean useGeodeticComputation)
          Creates a new IlvMapCurveRenderer instance.
IlvMapCurveRenderer(IlvInputStream stream)
          Reads this renderer from an IlvInputStream.
 
Method Summary
static void setGeodeticInterpolationRendering(boolean geodeticInterpolationRendering)
          Activates geodetic interpolation.
 void write(IlvOutputStream stream)
          Writes the renderer to an IlvOutputStream.
 
Methods inherited from class ilog.views.maps.rendering.IlvDefaultCurveRenderer
getLineRenderingStyle, isPersistent, isUsingGeneralPath, makeGraphic, setLineRenderingStyle, setUsingGeneralPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvMapCurveRenderer

public IlvMapCurveRenderer(IlvInputStream stream)
                    throws IlvReadFileException
Reads this renderer from an IlvInputStream.

Parameters:
stream - The stream to read from.
Throws:
IlvReadFileException - if there is a problem reading from stream

IlvMapCurveRenderer

public IlvMapCurveRenderer(boolean useGeodeticComputation)
Creates a new IlvMapCurveRenderer instance.

Parameters:
useGeodeticComputation - Set to true to use geodetic computation.
Method Detail

setGeodeticInterpolationRendering

public static void setGeodeticInterpolationRendering(boolean geodeticInterpolationRendering)
Activates geodetic interpolation.

When geodetic interpolation is activated, each segment of a curve is interpolated in many segments along an orthodromy between two points.

Note: geodetic interpolation can be activated only after geodetic computation was activated when the constructor was called.

Parameters:
geodeticInterpolationRendering - Set to true to activate interpolation.
Since:
JViews 7.5

write

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

Specified by:
write in interface IlvPersistentObject
Specified by:
write in interface IlvFeatureRenderer
Overrides:
write in class IlvDefaultCurveRenderer
Parameters:
stream - the output stream
Throws:
IOException - thrown when an exception occurs during the write operation for this object.
See Also:
IlvDefaultCurveRenderer.write(ilog.views.io.IlvOutputStream)


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