public class IlvMapTextRenderer extends IlvDefaultTextRenderer
IlvMapTextRenderer
is a text renderer that renders stylable
IlvGraphic
objects, that is, objects that implement the
IlvMapGraphic
interface.Constructor and Description |
---|
IlvMapTextRenderer()
Creates a new text renderer.
|
IlvMapTextRenderer(IlvInputStream stream)
Reads this renderer from an
IlvInputStream . |
Modifier and Type | Method and Description |
---|---|
IlvGraphic |
createText(Class<?> klass,
Object anchor,
String string,
IlvMapTextRenderingStyle style)
Creates a text of a non predefined class.
|
boolean |
isZoomable()
Tests if the text objects being rendered are zoomable.
|
void |
setZoomable(boolean zoomable)
Sets the zoomability of text objects being rendered by this
IlvMapTextRenderer . |
getLabelClass, getTextRenderingStyle, isPersistent, makeGraphic, setLabelClass, setTextRenderingStyle, write
public IlvMapTextRenderer()
public IlvMapTextRenderer(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.stream
- The stream to read from.IlvReadFileException
- if there is a problem reading
stream
.public IlvGraphic createText(Class<?> klass, Object anchor, String string, IlvMapTextRenderingStyle style) throws IlvMapRenderException
setLabelClass
method.
The default implementation of the method throws an IlvMapRenderException
createText
in class IlvDefaultTextRenderer
klass
- The class of the label.anchor
- The anchor of the label. Can be an IlvPoint
or an IlvRect
string
- The string to display on the label.style
- The IlvMapTextRenderingStyle
specifying rendering parameters to be applied to
the resulting IlvGraphic
IlvGraphic
representing the test object.IlvMapRenderException
IlvDefaultTextRenderer.createText(java.lang.Class, java.lang.Object, java.lang.String, ilog.views.maps.rendering.IlvMapTextRenderingStyle)
public boolean isZoomable()
true
is returned.public void setZoomable(boolean zoomable)
IlvMapTextRenderer
.zoomable
- Set to true
if the text objects being rendered
should be zoomable.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.