|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.rendering.IlvDefaultPointRenderer
ilog.views.maps.labelling.IlvLabeledPointRenderer
public class IlvLabeledPointRenderer
A point renderer which produces an IlvAnchoredLabel.
An IlvAnchoredLabel is a subclass of IlvGraphic
containing an IlvMapLabel and a reference IlvGraphic.
The renderer makes a label if an attribute corresponding
to the specified name is found.
| Constructor Summary | |
|---|---|
IlvLabeledPointRenderer()
Constructs an empty IlvLabeledPointRenderer. |
|
IlvLabeledPointRenderer(IlvInputStream stream)
Reads an IlvLabeledPointRenderer from the stream stream. |
|
IlvLabeledPointRenderer(String[] attributeNames,
String[] rejectedValues)
Constructs an IlvLabeledPointRenderer with the name
of the attribute and a value. |
|
| Method Summary | |
|---|---|
String[] |
getAttributeNames()
Retrieves the array of attribute names. |
String |
getName(IlvMapFeature feature)
Retrieves a name in the attributes of the feature that matches the criteria defined in the constructor. |
String[] |
getRejectedValues()
Retrieves the arrays of values to be rejected from attribute values. |
IlvMapTextRenderingStyle |
getTextRenderingStyle()
Retrieves the test rendering style for the IlvAnchoredLabels label. |
boolean |
isAlwaysProducingGraphic()
Tells if the renderer is always producing graphic even if there is no matching name or value in the attributes. |
IlvGraphic |
makeGraphic(IlvMapFeature feature,
IlvCoordinateTransformation tr)
Makes the graphic accordingly to the rule described in the constructor documentation. |
void |
setAlwaysProducingGraphic(boolean produce)
Tells the renderer if it should produce an IlvGraphic
even if there is no matching name or value in the attributes. |
void |
setAttributeNames(String[] attributeNames)
Sets the attributes whose names are candidate to be displayed by the label. |
void |
setRejectedValues(String[] rejectedValues)
Sets the arrays of values to be rejected from attribute values. |
void |
setTextRenderingStyle(IlvMapTextRenderingStyle style)
Sets the text style for the IlvAnchoredLabels label. |
void |
write(IlvOutputStream stream)
Writes the renderer to the IlvOutputStream stream. |
| Methods inherited from class ilog.views.maps.rendering.IlvDefaultPointRenderer |
|---|
getPointRenderingStyle, isPersistent, isUsingFontMarker, setPointRenderingStyle, setUsingFontMarker |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvLabeledPointRenderer(String[] attributeNames,
String[] rejectedValues)
IlvLabeledPointRenderer with the name
of the attribute and a value.
If an attribute whose name is contained in the attributeNames
array is found, and if the value of this attribute is different from a
value found in the rejectedValues array, an IlvAnchoredLabel
with a label will be made.
Otherwise, depending on the AlwaysProducingGraphic flag, a null graphic
or a IlvAnchoredLabel with only a reference graphic will be produced.
attributeNames - The list of attribute names to be taken in account.rejectedValues - The list of attribute values that are to be ignored.public IlvLabeledPointRenderer()
IlvLabeledPointRenderer. Attribute names
and rejected values must be set through the setAttibuteNames
and setRejectedValues methods.
IlvLabeledPointRenderer(java.lang.String[], java.lang.String[])
public IlvLabeledPointRenderer(IlvInputStream stream)
throws IlvReadFileException
IlvLabeledPointRenderer from the stream stream.
IlvReadFileException| Method Detail |
|---|
public void setAttributeNames(String[] attributeNames)
attributeNames - Array of attribute names whose values are candidate
to be displayed.public String[] getAttributeNames()
public void setRejectedValues(String[] rejectedValues)
public String[] getRejectedValues()
public void setAlwaysProducingGraphic(boolean produce)
IlvGraphic
even if there is no matching name or value in the attributes.
public boolean isAlwaysProducingGraphic()
public void setTextRenderingStyle(IlvMapTextRenderingStyle style)
IlvAnchoredLabels label.
style - The text rendering style.public IlvMapTextRenderingStyle getTextRenderingStyle()
IlvAnchoredLabels label.
public void write(IlvOutputStream stream)
throws IOException
IlvOutputStream stream.
write in interface IlvPersistentObjectwrite in interface IlvFeatureRendererwrite in class IlvDefaultPointRendererstream - the output stream
IOException - thrown when an exception occurs during
the write operation for this object.public String getName(IlvMapFeature feature)
makeGraphic method to create
an IlvAnchoredLabel.
public IlvGraphic makeGraphic(IlvMapFeature feature,
IlvCoordinateTransformation tr)
throws IlvMapRenderException,
IlvProjectionException,
IlvCoordinateTransformationException
makeGraphic in interface IlvFeatureRenderermakeGraphic in class IlvDefaultPointRendererfeature - The map feature to be rendered.tr - The coordinate transformation.
IlvMapRenderException - If the renderer cannot process
the map feature.
IlvCoordinateTransformationException - If a transformation
exception occurs.
IlvProjectionException
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||