|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.label.IlvMapDefaultLabeler
public class IlvMapDefaultLabeler
IlvMapDefaultLabeler is the default implementation of
IlvMapLabeler.
This labeler adds labels to the layers with the
LABEL_ATTRIBUTE attribute set to a non null value.
This attribute name tells the labeler which
IlvAttributeProperty to take into account for
labeling.
| Nested Class Summary | |
|---|---|
static class |
IlvMapDefaultLabeler.LabelLayer
This class is public for implementation purposes only. |
| Constructor Summary | |
|---|---|
IlvMapDefaultLabeler()
Construct an IlvMapDefaultLabeler. |
|
IlvMapDefaultLabeler(IlvInputStream stream)
Reads an IlvMapDefaultLabeler from an IlvInputStream. |
|
| Method Summary | |
|---|---|
void |
addLayer(IlvMapLayer layer)
Add a layer to be labeled by this labeler. |
IlvMapLabelingLabel[] |
createLabels(IlvGraphic graphic,
String message)
Creates and sets up map label components. |
boolean |
equals(Object obj)
Indicates whether some other labeler is "equal to" this one. |
IlvMapLabelFactory |
getLabelFactory()
Returns the LabelFactory used by all label layers. |
IlvMapLayer |
getLabelLayer()
Deprecated. |
IlvMapLayer |
getLabelLayer(IlvMapLayer mapLayer)
Retrieves the IlvMapLayer on which labels are drawn for this specific map layer. |
Iterator |
getLabelLayers()
Returns an iterator to iterate through the label layers. |
IlvManagerView |
getView()
Retreives the view associated to this labeler. |
boolean |
isGeneratingImage()
Tests if this label manager is prepared for to generate images. |
void |
labelize()
Deprecated. Use #performLabeling() instead. |
void |
performLabeling()
Performs the labeling process. |
void |
removeLayer(IlvMapLayer layer)
Removes a layer from this labeler. |
void |
setGeneratingImage(boolean generatingImage)
Tells this label manager instance to be prepared to generate images. |
void |
setLabelFactory(IlvMapLabelFactory factory)
Sets the LabelFactory used by all label layers. |
void |
setLabelLayer(IlvMapLayer layer)
Sets the label layer. |
void |
setView(IlvManagerView view)
Sets the view associated to this labeler. |
void |
write(IlvOutputStream stream)
Writes the labeler into an IlvOutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvMapDefaultLabeler()
IlvMapDefaultLabeler.
public IlvMapDefaultLabeler(IlvInputStream stream)
throws IlvReadFileException
IlvMapDefaultLabeler from an IlvInputStream.
stream - The stream to read from.
IlvReadFileException| Method Detail |
|---|
public IlvManagerView getView()
getView in interface IlvMapLabelerIlvMapLabeler.getView()public void setView(IlvManagerView view)
setView in interface IlvMapLabelerview - The view to be associated to this labeler.IlvMapLabeler.setView(ilog.views.IlvManagerView)
public void write(IlvOutputStream stream)
throws IOException
IlvOutputStream.
write in interface IlvPersistentObjectstream - The stream to write to.
IOException
public IlvMapLabelingLabel[] createLabels(IlvGraphic graphic,
String message)
IlvGraphicSet can have more than
one label component.
This utility method is typically used in
IlvMapLabelFactory.getGisLabel(IlvGraphic).
graphic - The graphic object for which one or more labels should
be created.message - A String containing the label message.
public void setLabelFactory(IlvMapLabelFactory factory)
LabelFactory used by all label layers.
factory - The LabelFactory to use.public IlvMapLabelFactory getLabelFactory()
LabelFactory used by all label layers.
Creates a default label factory (that returns the selected metadata in the layer style) if none has been set.
LabelFactory used by all label layers.public void setLabelLayer(IlvMapLayer layer)
setLabelLayer in interface IlvMapLabelerlayer - The new label layer.IlvMapLabeler.setLabelLayer(ilog.views.maps.beans.IlvMapLayer)public IlvMapLayer getLabelLayer()
getLabelLayer(IlvMapLayer) instead.
getLabelLayer in interface IlvMapLabelerIlvMapLayer.public IlvMapLayer getLabelLayer(IlvMapLayer mapLayer)
IlvMapLayer on which labels are drawn for this specific map layer.
getLabelLayer in interface IlvMapLabelermapLayer - the layer to retrieve label layer for.
IlvMapLayerpublic void addLayer(IlvMapLayer layer)
addLayer in interface IlvMapLabelerlayer - A new layer to be labeled.IlvMapLabeler.addLayer(ilog.views.maps.beans.IlvMapLayer)public void removeLayer(IlvMapLayer layer)
removeLayer in interface IlvMapLabelerlayer - The layer to remove.IlvMapLabeler.removeLayer(ilog.views.maps.beans.IlvMapLayer)public void labelize()
IlvMapLayer.
The name of the attribute to be labeled if the one returned by
IlvMapStyle.getLabelAttribute()
labelize in interface IlvMapLabelerpublic void performLabeling()
performLabeling in interface IlvMapLabelerlabelize()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public Iterator getLabelLayers()
getLabelLayers in interface IlvMapLabelerpublic boolean isGeneratingImage()
true is returned.public void setGeneratingImage(boolean generatingImage)
generatingImage - Set to true to generate images.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||