public class IlvIconPointRenderer extends Object implements IlvFeatureRenderer
IlvMapPoint
into a fixed-size icon.IlvMapPoint
,
IlvIcon
,
IlvFixedSizeGraphic
Constructor and Description |
---|
IlvIconPointRenderer(IlvInputStream stream)
Reads a renderer from an
IlvInputStream . |
IlvIconPointRenderer(String iconFileName)
Creates an instance of the renderer from the specified
icon file name.
|
IlvIconPointRenderer(URL iconURL)
Creates an instance of the renderer using the icon at the location
specified by the URL.
|
Modifier and Type | Method and Description |
---|---|
String |
getIconFileName()
Returns the file name of the icon.
|
int |
getIconHeight()
Returns the height of the icon.
|
URL |
getIconURL()
Returns the URL of the icon.
|
int |
getIconWidth()
Returns the width of the icon.
|
IlvMapImageRenderingStyle |
getImageRenderingStyle()
Retrieves the rendering style of the renderer.
|
boolean |
isPersistent()
Returns
true . |
IlvGraphic |
makeGraphic(IlvMapFeature feature,
IlvCoordinateTransformation transformation)
Translates the map feature into a graphic object.
|
void |
setIconFileName(String fileName)
Sets the file name of the icon.
|
void |
setIconHeight(int height)
Sets the height of the icon.
|
void |
setIconURL(URL url)
Sets the URL of the icon.
|
void |
setIconWidth(int width)
Sets the width of the icon.
|
void |
setImageRenderingStyle(IlvMapImageRenderingStyle style)
Sets the rendering style of the renderer.
|
void |
write(IlvOutputStream stream)
Writes the renderer to an
IlvOutputStream . |
public IlvIconPointRenderer(URL iconURL)
iconURL
- The URL of the icon.public IlvIconPointRenderer(String iconFileName)
iconFileName
- The name of the file of the icon.public IlvIconPointRenderer(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.IlvReadFileException
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 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 boolean isPersistent()
true
.isPersistent
in interface IlvFeatureRenderer
public void setIconWidth(int width)
public int getIconWidth()
public void setIconHeight(int height)
public int getIconHeight()
public String getIconFileName()
public void setIconFileName(String fileName)
public URL getIconURL()
public void setIconURL(URL url)
public IlvMapImageRenderingStyle getImageRenderingStyle()
public void setImageRenderingStyle(IlvMapImageRenderingStyle style)
style
- The IlvMapImageRenderingStyle
.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.