|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.rendering.IlvDefaultImageRenderer
public class IlvDefaultImageRenderer
This renderer translates a feature whose geometry is an image
into an IlvIcon. If a projection is required, it is handled in
a simplistic way (only the corners of the image are projected).
IlvMapImage,
IlvIcon| Constructor Summary | |
|---|---|
IlvDefaultImageRenderer()
Creates an instance of the renderer. |
|
IlvDefaultImageRenderer(IlvInputStream stream)
Reads the renderer from an IlvInputStream. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvDefaultImageRenderer()
public IlvDefaultImageRenderer(IlvInputStream stream)
throws IlvReadFileException
IlvInputStream.
IlvReadFileException| Method Detail |
|---|
public IlvGraphic makeGraphic(IlvMapFeature feature,
IlvCoordinateTransformation transformation)
throws IlvMapRenderException,
IlvCoordinateTransformationException
IlvIcon.
Note that this method has been changed since ILOG 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 IlvFeatureRendererfeature - 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 IlvPersistentObjectwrite in interface IlvFeatureRendererstream - the output stream
IOException - thrown when an exception occurs during
the write operation for this object.public boolean isPersistent()
true.
isPersistent in interface IlvFeatureRendererpublic IlvMapImageRenderingStyle getImageRenderingStyle()
public void setImageRenderingStyle(IlvMapImageRenderingStyle style)
style - The IlvMapImageRenderingStyle.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||