public class IlvDefaultCurveRenderer extends Object implements IlvFeatureRenderer
IlvMapCurve
into an IlvGeneralPath
,
an IlvPolyline
or into an
IlvGraphicSet
if the geometry is a subclass of
IlvMapCurve
.Constructor and Description |
---|
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 . |
Modifier and Type | Method and Description |
---|---|
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 . |
public IlvDefaultCurveRenderer()
IlvPolyline
.public IlvDefaultCurveRenderer(boolean useGeneralPath)
IlvGeneralPath
or IlvPolyline
.public IlvDefaultCurveRenderer(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.IlvReadFileException
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 Rogue Wave 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 IlvFeatureRenderer
feature
- 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 IlvPersistentObject
write
in interface IlvFeatureRenderer
stream
- the output streamIOException
- thrown when an exception occurs during
the write operation for this object.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.