public class IlvDefaultPointRenderer extends Object implements IlvFeatureRenderer
IlvMapPoint
into an IlvMarker
.IlvMapPoint
,
IlvMarker
,
Serialized FormConstructor and Description |
---|
IlvDefaultPointRenderer()
Creates an instance of the renderer.
|
IlvDefaultPointRenderer(IlvInputStream stream)
Reads a renderer from an
IlvInputStream . |
Modifier and Type | Method and Description |
---|---|
IlvMapPointRenderingStyle |
getPointRenderingStyle()
Retrieves the rendering style associated with the renderer.
|
boolean |
isPersistent()
Returns
true . |
boolean |
isUsingFontMarker()
Tells if the renderer is producing
IlvFontMarker or
IlvMarker . |
IlvGraphic |
makeGraphic(IlvMapFeature feature,
IlvCoordinateTransformation transformation)
Translates the map feature into a graphic object.
|
void |
setPointRenderingStyle(IlvMapPointRenderingStyle style)
Sets the rendering style for this renderer.
|
void |
setUsingFontMarker(boolean useFontMarker)
Tells if the renderer should produce an
IlvFontMarker
or an IlvMarker . |
void |
write(IlvOutputStream stream)
Writes the renderer to an
IlvOutputStream . |
public IlvDefaultPointRenderer()
public IlvDefaultPointRenderer(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.IlvReadFileException
public IlvMapPointRenderingStyle getPointRenderingStyle()
public void setPointRenderingStyle(IlvMapPointRenderingStyle style)
style
- The style.public void setUsingFontMarker(boolean useFontMarker)
IlvFontMarker
or an IlvMarker
.useFontMarker
- If true
the renderer will produce
an IlvFontMarker
. If false
, the rendered
graphic will be an IlvMarker
.IlvMapPointRenderingStyle.setFont(java.awt.Font)
,
IlvMapPointRenderingStyle.setChar(char)
public boolean isUsingFontMarker()
IlvFontMarker
or
IlvMarker
.true
if the renderer graphic is an IlvFontMarker
,
false
otherwise.IlvMapPointRenderingStyle.setFont(java.awt.Font)
,
IlvMapPointRenderingStyle.setChar(char)
public IlvGraphic makeGraphic(IlvMapFeature feature, IlvCoordinateTransformation transformation) throws IlvMapRenderException, IlvCoordinateTransformationException
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 cannot process
the map feature.IlvCoordinateTransformationException
- If a transformation
exception occurs.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.public boolean isPersistent()
true
.isPersistent
in interface IlvFeatureRenderer
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.