public class IlvDefaultImageRenderer extends Object implements IlvFeatureRenderer
IlvIcon
. If a projection is required, it is handled in
a simplistic way (only the corners of the image are projected).IlvMapImage
,
IlvIcon
Constructor and Description |
---|
IlvDefaultImageRenderer()
Creates an instance of the renderer.
|
IlvDefaultImageRenderer(IlvInputStream stream)
Reads the renderer from an
IlvInputStream . |
Modifier and Type | Method and Description |
---|---|
IlvMapImageRenderingStyle |
getImageRenderingStyle()
Retrieves the rendering style of the renderer.
|
boolean |
isPersistent()
Returns
true . |
boolean |
isSynchronousImageLoading()
Returns
true if the image loading mode is synchronous
and false otherwise. |
IlvGraphic |
makeGraphic(IlvMapFeature feature,
IlvCoordinateTransformation transformation)
Translates a feature with an image geometry into an
IlvIcon . |
void |
setImageRenderingStyle(IlvMapImageRenderingStyle style)
Sets the rendering style of the renderer.
|
void |
setSynchronousImageLoading(boolean synchronous)
Sets the image loading mode to synchronous or asynchronous
accordingly to the value of the
synchronous
parameter. |
void |
write(IlvOutputStream stream)
Writes the renderer to an
IlvOutputStream . |
public IlvDefaultImageRenderer()
public IlvDefaultImageRenderer(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.IlvReadFileException
public IlvGraphic makeGraphic(IlvMapFeature feature, IlvCoordinateTransformation transformation) throws IlvMapRenderException, IlvCoordinateTransformationException
IlvIcon
.
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 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 void setSynchronousImageLoading(boolean synchronous)
synchronous
parameter.
In synchronous mode, a MediaTracker
waits for the image to be fully loaded before
creating the IlvIcon
in the makeGraphic
method.public boolean isSynchronousImageLoading()
true
if the image loading mode is synchronous
and false
otherwise.setSynchronousImageLoading(boolean)
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
public IlvMapImageRenderingStyle getImageRenderingStyle()
public void setImageRenderingStyle(IlvMapImageRenderingStyle style)
style
- The IlvMapImageRenderingStyle
.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.