|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.rendering.IlvDefaultCurveRenderer
public class IlvDefaultCurveRenderer
This renderer translates a map feature whose geometry is a predefined
subclass of IlvMapCurve into an IlvGeneralPath,
an IlvPolyline or into an
IlvGraphicSet if the geometry is a subclass of
IlvMapCurve.
| Constructor Summary | |
|---|---|
IlvDefaultCurveRenderer()
Initializes an instance of the renderer. |
|
IlvDefaultCurveRenderer(boolean useGeneralPath)
Initializes an instance of the renderer by specifying if the renderer should translate geometries into IlvGeneralPath
or IlvPolyline. |
|
IlvDefaultCurveRenderer(IlvInputStream stream)
Reads the renderer from an IlvInputStream. |
|
| Method Summary | |
|---|---|
IlvMapLineRenderingStyle |
getLineRenderingStyle()
Returns the line rendering style. |
boolean |
isPersistent()
Returns true if the renderer must be saved. |
boolean |
isUsingGeneralPath()
Tells if the renderer translates geometries into IlvGeneralPath or IlvPolyline. |
IlvGraphic |
makeGraphic(IlvMapFeature feature,
IlvCoordinateTransformation transformation)
Translates an IlvMapFeature into a graphic object. |
void |
setLineRenderingStyle(IlvMapLineRenderingStyle style)
Sets the rendering style for the lines. |
void |
setUsingGeneralPath(boolean useGeneralPath)
Specifies if the renderer should translate geometries into IlvGeneralPath or IlvPolyline. |
void |
write(IlvOutputStream stream)
Writes the renderer to an IlvOutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvDefaultCurveRenderer()
IlvPolyline.
public IlvDefaultCurveRenderer(boolean useGeneralPath)
IlvGeneralPath
or IlvPolyline.
public IlvDefaultCurveRenderer(IlvInputStream stream)
throws IlvReadFileException
IlvInputStream.
IlvReadFileException| Method Detail |
|---|
public void setUsingGeneralPath(boolean useGeneralPath)
IlvGeneralPath or IlvPolyline.
public boolean isUsingGeneralPath()
IlvGeneralPath or IlvPolyline.
public IlvGraphic makeGraphic(IlvMapFeature feature,
IlvCoordinateTransformation transformation)
throws IlvMapRenderException,
IlvCoordinateTransformationException
IlvMapFeature into a graphic object.
The map feature is transformed using the specified transformation to
create the graphic object.
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.
makeGraphic in interface IlvFeatureRendererfeature - The map feature to translate.transformation - The transformation. This parameter should never
be null.
IlvMapRenderException - If the renderer can
not process the map feature.
IlvCoordinateTransformationException - If a transformation
exception occurs.public IlvMapLineRenderingStyle getLineRenderingStyle()
public void setLineRenderingStyle(IlvMapLineRenderingStyle style)
style - The style for rendering lines.public boolean isPersistent()
true if the renderer must be saved.
isPersistent in interface IlvFeatureRenderer
public void write(IlvOutputStream stream)
throws IOException
IlvOutputStream.
write in interface IlvPersistentObjectwrite in interface IlvFeatureRendererstream - the output stream
IOException - thrown when an exception occurs during
the write operation for this object.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||