public class IlvDefaultAreaRenderer extends Object implements IlvFeatureRenderer
IlvMapArea
into an IlvGeneralPath
,
an IlvGraphicPath
, or into an
IlvGraphicSet
of the above if the geometry is an
IlvMapArea
.Constructor and Description |
---|
IlvDefaultAreaRenderer()
Initializes an instance of the renderer.
|
IlvDefaultAreaRenderer(boolean useGeneralPath)
Initializes an instance of the renderer with the ability
to specify if the geometries have to be translated into
an
IlvGeneralPath or an IlvGraphicPath . |
IlvDefaultAreaRenderer(IlvInputStream stream)
Reads the renderer from an
IlvInputStream . |
Modifier and Type | Method and Description |
---|---|
IlvMapAreaRenderingStyle |
getAreaRenderingStyle()
Returns the area rendering style.
|
boolean |
isPersistent()
Returns
true if the renderer must be saved. |
boolean |
isUsingGeneralPath()
Tells if the renderer is configured to produce
IlvGeneralPath
or not. |
IlvGraphic |
makeGraphic(IlvMapFeature feature,
IlvCoordinateTransformation tr)
Translates an
IlvMapFeature into a graphic object. |
void |
setAreaRenderingStyle(IlvMapAreaRenderingStyle style)
Sets the rendering style for the areas.
|
void |
setUsingGeneralPath(boolean useGeneralPath)
Specifies if the renderer should produce a
IlvGeneralPath
or not. |
void |
write(IlvOutputStream stream)
Writes the renderer to an
IlvOutputStream . |
public IlvDefaultAreaRenderer()
IlvGraphicPath
.public IlvDefaultAreaRenderer(boolean useGeneralPath)
IlvGeneralPath
or an IlvGraphicPath
.useGeneralPath
- If set to true
, the geometries will be
translated into IlvGeneralPath
. Otherwise, they
will be translated into IlvGraphicPath
.public IlvDefaultAreaRenderer(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.IlvReadFileException
public void setAreaRenderingStyle(IlvMapAreaRenderingStyle style)
style
- The area rendering style.public IlvMapAreaRenderingStyle getAreaRenderingStyle()
public IlvGraphic makeGraphic(IlvMapFeature feature, IlvCoordinateTransformation tr) 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.tr
- 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 void setUsingGeneralPath(boolean useGeneralPath)
IlvGeneralPath
or not.public boolean isUsingGeneralPath()
IlvGeneralPath
or not.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.