ilog.views.maps.rendering
Class IlvMapAreaRenderer

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

public class IlvMapAreaRenderer
extends IlvDefaultAreaRenderer

IlvMapAreaRenderer is an area renderer that renders stylable IlvGraphic objects, that is, objects that implement the IlvMapGraphic interface. .

Since:
JViews 7.5

Constructor Summary
IlvMapAreaRenderer(boolean useGeneralPath, boolean useGeodeticComputation)
          Creates an new IlvMapAreaRenderer instance.
IlvMapAreaRenderer(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.IlvDefaultAreaRenderer
getAreaRenderingStyle, isPersistent, isUsingGeneralPath, makeGraphic, setAreaRenderingStyle, setUsingGeneralPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvMapAreaRenderer

public IlvMapAreaRenderer(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 stream.

IlvMapAreaRenderer

public IlvMapAreaRenderer(boolean useGeneralPath,
                          boolean useGeodeticComputation)
Creates an new IlvMapAreaRenderer instance. Use this constructor to specify if a IlvMapGeneralPath should be generated or not.

Parameters:
useGeneralPath - Set to true if a general path should be generated instead of a graphic path.
useGeodeticComputation - Set to true if geodetic computation should be used.
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 IlvDefaultAreaRenderer
Parameters:
stream - the output stream
Throws:
IOException - thrown when an exception occurs during the write operation for this object.
See Also:
IlvDefaultAreaRenderer.write(ilog.views.io.IlvOutputStream)


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