|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.graphics.displayelements.AbstractDisplayElement org.deegree.graphics.displayelements.GeometryDisplayElement org.deegree.graphics.displayelements.LabelDisplayElement
public class LabelDisplayElement
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.
Field Summary |
---|
Fields inherited from class org.deegree.graphics.displayelements.GeometryDisplayElement |
---|
geometry, highlightSymbolizer, placement, selectedSymbolizer, symbolizer |
Fields inherited from class org.deegree.graphics.displayelements.AbstractDisplayElement |
---|
feature |
Constructor Summary | |
---|---|
LabelDisplayElement(Feature feature,
Geometry geometry,
TextSymbolizer symbolizer)
Creates a new LabelDisplayElement object. |
Method Summary | |
---|---|
void |
addLabel(Label label)
Adds a Label representation that is to be considered when the LabelDisplayElement is painted to the view. |
void |
addLabels(Label[] labels)
Adds Label representations that are to be considered when the LabelDisplayElement is painted to the view. |
void |
clearLabels()
Removes all Label representations for this LabelDisplayElement. |
boolean |
doesScaleConstraintApply(double scale)
Returns if the DisplayElement should be painted at the current scale or not. |
ParameterValueType |
getLabel()
Returns the caption of the label as ParameterValueType. |
void |
paint(java.awt.Graphics g,
GeoTransform projection,
double scale)
Renders the DisplayElement to the submitted graphic context. |
void |
setLabel(ParameterValueType label)
Sets the caption of the label. |
void |
setLabels(Label[] labels)
Sets the Label representations that are to be considered when the LabelDisplayElement is painted to the view. |
Methods inherited from class org.deegree.graphics.displayelements.GeometryDisplayElement |
---|
getGeometry, getHighlightSymbolizer, getSelectedSymbolizer, getSymbolizer, growEnvelope, setGeometry, setHighlightSymbolizer, setPlacement, setSelectedSymbolizer, setSymbolizer |
Methods inherited from class org.deegree.graphics.displayelements.AbstractDisplayElement |
---|
getAssociateFeatureId, getFeature, isHighlighted, isSelected, setFeature, setHighlighted, setSelected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LabelDisplayElement(Feature feature, Geometry geometry, TextSymbolizer symbolizer)
feature
- associated Featuregeometry
- associated GM_Objectsymbolizer
- associated TextSymbolizerMethod Detail |
---|
public void setLabel(ParameterValueType label)
label
- public ParameterValueType getLabel()
public void paint(java.awt.Graphics g, GeoTransform projection, double scale)
g
- Graphics context to be usedprojection
- GeoTransform to be usedpublic boolean doesScaleConstraintApply(double scale)
GeometryDisplayElement
doesScaleConstraintApply
in interface DisplayElement
doesScaleConstraintApply
in class GeometryDisplayElement
scale
- scale to check
DisplayElement
has to be painted, false otherwisepublic void clearLabels()
public void addLabel(Label label)
label
- public void addLabels(Label[] labels)
labels
- public void setLabels(Label[] labels)
labels
-
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org