| java.lang.Object org.deegree.graphics.displayelements.AbstractDisplayElement org.deegree.graphics.displayelements.GeometryDisplayElement org.deegree.graphics.displayelements.LabelDisplayElement
LabelDisplayElement | public class LabelDisplayElement extends GeometryDisplayElement implements DisplayElement,Serializable(Code) | | DisplayElement that encapsulates a GM_Object (geometry), a
ParameterValueType (caption) and a TextSymbolizer (style).
The graphical (say: screen) representations of this DisplayElement are Label-instances.
These are generated either when the paint-method is called or assigned externally
using the setLabels- or addLabels-methods.
author: Andreas Poth author: Markus Schneider version: $Revision: 10593 $ $Date: 2008-03-17 06:35:32 -0700 (Mon, 17 Mar 2008) $ |
Method Summary | |
public void | addLabel(Label label) Adds a Label representation that is to be considered when the
LabelDisplayElement is painted to the view. | public void | addLabels(Label[] labels) Adds Label representations that are to be considered when the
LabelDisplayElement is painted to the view. | public void | clearLabels() Removes all Label representations for this
LabelDisplayElement. | public boolean | doesScaleConstraintApply(double scale) | public ParameterValueType | getLabel() Returns the caption of the label as ParameterValueType. | public void | paint(Graphics g, GeoTransform projection, double scale) Renders the DisplayElement to the submitted graphic context. | public void | setLabel(ParameterValueType label) Sets the caption of the label. | public void | setLabels(Label[] labels) Sets the Label representations that are to be considered when the
LabelDisplayElement is painted to the view. |
LabelDisplayElement | public LabelDisplayElement(Feature feature, Geometry geometry, TextSymbolizer symbolizer)(Code) | | Creates a new LabelDisplayElement object.
Parameters: feature - associated Feature Parameters: geometry - associated GM_Object Parameters: symbolizer - associated TextSymbolizer |
addLabel | public void addLabel(Label label)(Code) | | Adds a Label representation that is to be considered when the
LabelDisplayElement is painted to the view.
Parameters: label - |
addLabels | public void addLabels(Label[] labels)(Code) | | Adds Label representations that are to be considered when the
LabelDisplayElement is painted to the view.
Parameters: labels - |
clearLabels | public void clearLabels()(Code) | | Removes all Label representations for this
LabelDisplayElement.
|
doesScaleConstraintApply | public boolean doesScaleConstraintApply(double scale)(Code) | | |
paint | public void paint(Graphics g, GeoTransform projection, double scale)(Code) | | Renders the DisplayElement to the submitted graphic context. If the Label-represenations
have been assigned externally, these labels are used, else Label-instances are
created automatically using the LabelFactory.
Parameters: g - Graphics context to be used Parameters: projection - GeoTransform to be used |
setLabels | public void setLabels(Label[] labels)(Code) | | Sets the Label representations that are to be considered when the
LabelDisplayElement is painted to the view.
Parameters: labels - |
Fields inherited from org.deegree.graphics.displayelements.AbstractDisplayElement | protected Feature feature(Code)(Java Doc)
|
|
|