public class IlvDefaultFeatureRenderer extends Object implements IlvFeatureRenderer
makeGraphic
calls to a specialized feature renderer depending on the geometry
of the map feature. Each specialized feature renderer is initialized
with a default value, but it can be changed.| Constructor and Description |
|---|
IlvDefaultFeatureRenderer()
Initializes an instance of the renderer.
|
IlvDefaultFeatureRenderer(IlvInputStream stream)
Reads the renderer from an
IlvInputStream. |
| Modifier and Type | Method and Description |
|---|---|
protected IlvGraphic |
dispatch(IlvMapFeature mapFeature,
IlvCoordinateTransformation tr)
Dispatches a map feature to the renderer specialized to render
the feature geometry.
|
IlvFeatureRenderer |
getAreaRenderer()
Returns the graphic renderer used to translate
polygons into graphic objects.
|
IlvFeatureRenderer |
getCurveRenderer()
Returns the graphic renderer used to translate curves into graphic objects.
|
IlvFeatureRenderer |
getImageRenderer()
Returns the graphic renderer used to translate images
into graphic objects.
|
IlvFeatureRenderer |
getMultiPointRenderer()
Returns the renderer used to translate multipoints into graphic objects.
|
IlvFeatureRenderer |
getPointRenderer()
Returns the renderer used to translate points into graphic objects.
|
IlvFeatureRenderer |
getRasterRenderer()
Returns the graphic renderer used to translate rasters into
graphic objects.
|
IlvFeatureRenderer |
getTextRenderer()
Returns the graphic renderer used to translate georeferenced text into
graphic objects.
|
boolean |
isPersistent()
Returns
true if the object must be saved. |
IlvGraphic |
makeGraphic(IlvMapFeature mapFeature,
IlvCoordinateTransformation tr)
Makes an
IlvGraphic from a map feature. |
protected IlvGraphic |
makeGraphicFromCollection(IlvMapFeature feature,
IlvCoordinateTransformation tr)
This method is called by
dispatch() for the map
features whose geometries are Collections of subgeometries. |
void |
setAreaRenderer(IlvFeatureRenderer areaRenderer)
Sets the graphic renderer used to translate polygons into graphic
objects.
|
void |
setCurveRenderer(IlvFeatureRenderer curveRenderer)
Sets the graphic renderer used to translate curves into graphic
objects.
|
void |
setImageRenderer(IlvFeatureRenderer imageRenderer)
Sets the graphic renderer used to translate images into graphic objects.
|
void |
setMultiPointRenderer(IlvFeatureRenderer multiPointRenderer)
Sets the graphic renderer used to translate multipoints into graphic
objects.
|
void |
setPointRenderer(IlvFeatureRenderer pointRenderer)
Sets the graphic renderer used to translate points into graphic objects.
|
void |
setRasterRenderer(IlvFeatureRenderer rasterRenderer)
Sets the graphic renderer used to translate rasters into graphic
objects.
|
void |
setTextRenderer(IlvFeatureRenderer textRenderer)
Sets the graphic renderer used to translate georeferenced text into
graphic objects.
|
void |
write(IlvOutputStream stream)
Writes the renderer to an
IlvOutputStream. |
public IlvDefaultFeatureRenderer()
public IlvDefaultFeatureRenderer(IlvInputStream stream) throws IlvReadFileException
IlvInputStream.IlvReadFileException - if the format is not correct.public IlvGraphic makeGraphic(IlvMapFeature mapFeature, IlvCoordinateTransformation tr) throws IlvCoordinateTransformationException, IlvMapRenderException
IlvGraphic from a map feature.
Note that this method has been changed since Rogue Wave JViews 5.0. The old
method was makeGraphic(IlvMapFeature, IlvProjection). In case you
have overridden the old makeGraphic method, you have to rewrite
your method in order to migrate to JViews 5.0.makeGraphic in interface IlvFeatureRenderermapFeature - The map feature to translate.tr - The destination Coordinate System of the map feature.IlvMapRenderException - if the renderer cannot process
the map feature.IlvCoordinateTransformationException - if an error occurs during the
coordinate transformation.protected IlvGraphic dispatch(IlvMapFeature mapFeature, IlvCoordinateTransformation tr) throws IlvCoordinateTransformationException, IlvMapRenderException
dispatch(IlvMapFeature, IlvProjection). In case you
have overridden the old dispatch method, you have to rewrite
your method in order to migrate to JViews 5.0.mapFeature - The map feature.tr - The destination Coordinate System of the map feature.IlvMapRenderException - If the renderer cannot process
the map feature.IlvCoordinateTransformationException - If an error occurs during the
coordinate transformation.setImageRenderer(ilog.views.maps.IlvFeatureRenderer),
setAreaRenderer(ilog.views.maps.IlvFeatureRenderer),
setCurveRenderer(ilog.views.maps.IlvFeatureRenderer),
setMultiPointRenderer(ilog.views.maps.IlvFeatureRenderer),
setPointRenderer(ilog.views.maps.IlvFeatureRenderer),
setRasterRenderer(ilog.views.maps.IlvFeatureRenderer),
setTextRenderer(ilog.views.maps.IlvFeatureRenderer)protected IlvGraphic makeGraphicFromCollection(IlvMapFeature feature, IlvCoordinateTransformation tr) throws IlvCoordinateTransformationException, IlvMapRenderException
dispatch() for the map
features whose geometries are Collections of subgeometries.
Note that this method has been changed since Rogue Wave JViews 5.0. The old
method was makeGraphicFromCollection(IlvMapFeature, IlvProjection). In case you
have overridden the previous form of this method, you have to rewrite
your method in order to migrate to JViews 5.0.feature - The map feature to be translated.tr - The destination Coordinate System of the map feature.IlvGraphic.IlvMapRenderException - If the renderer cannot process
the map feature.IlvCoordinateTransformationException - If an error occurs during the
coordinate transformation.public void setPointRenderer(IlvFeatureRenderer pointRenderer)
pointRenderer - The point renderer.IlvMapPoint,
IlvDefaultPointRendererpublic IlvFeatureRenderer getPointRenderer()
IlvMapPoint,
IlvDefaultPointRendererpublic void setMultiPointRenderer(IlvFeatureRenderer multiPointRenderer)
multiPointRenderer - The multipoint renderer.IlvMapMultiPoint,
IlvDefaultMultiPointRendererpublic IlvFeatureRenderer getMultiPointRenderer()
IlvMapMultiPoint,
IlvDefaultMultiPointRendererpublic void setRasterRenderer(IlvFeatureRenderer rasterRenderer)
rasterRenderer - The raster renderer.IlvMapRaster,
IlvDefaultRasterRendererpublic IlvFeatureRenderer getRasterRenderer()
IlvMapRaster,
IlvDefaultRasterRendererpublic void setTextRenderer(IlvFeatureRenderer textRenderer)
textRenderer - The text renderer.IlvMapText,
IlvDefaultTextRendererpublic IlvFeatureRenderer getTextRenderer()
IlvMapText,
IlvDefaultTextRendererpublic void setCurveRenderer(IlvFeatureRenderer curveRenderer)
curveRenderer - The curve renderer.IlvMapCurve,
IlvDefaultCurveRendererpublic IlvFeatureRenderer getCurveRenderer()
IlvMapCurve,
IlvDefaultCurveRendererpublic void setAreaRenderer(IlvFeatureRenderer areaRenderer)
areaRenderer - The polygon renderer.IlvMapPolygon,
IlvDefaultAreaRendererpublic IlvFeatureRenderer getAreaRenderer()
IlvMapPolygon,
IlvDefaultAreaRendererpublic void setImageRenderer(IlvFeatureRenderer imageRenderer)
imageRenderer - The image renderer.IlvMapImage,
IlvDefaultImageRendererpublic IlvFeatureRenderer getImageRenderer()
IlvMapImage,
IlvDefaultImageRendererpublic void write(IlvOutputStream stream) throws IOException
IlvOutputStream.write in interface IlvPersistentObjectwrite in interface IlvFeatureRendererstream - the output streamIOException - thrown when an exception occurs during
the write operation for this object.public boolean isPersistent()
true if the object must be saved.isPersistent in interface IlvFeatureRenderer© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.