|
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.sld.AbstractSymbolizer org.deegree.graphics.sld.TextSymbolizer
public class TextSymbolizer
Used to render a text label, according to the parameters. A missing Geometry, Label, Font, or LabelPlacement element selects the default value or behavior for the element. The default Label, Font, and LabelPlacement are system- dependent. Multiple Font elements may be used to specify alternate fonts in order of preference in case a map server does not support the first preference. A missing Halo or Fill element means that no halo or fill will be plotted, respectively. The Fill is rendered over top of the Halo, and the Halo includes the interiors of the font glyphs.
Field Summary |
---|
Fields inherited from class org.deegree.graphics.sld.AbstractSymbolizer |
---|
geometry, maxDenominator, minDenominator, responsibleClass |
Constructor Summary | |
---|---|
TextSymbolizer(Geometry geometry,
ParameterValueType text,
Font font,
Halo halo,
ParameterValueType minx,
ParameterValueType miny,
ParameterValueType maxx,
ParameterValueType maxy)
Initializing with bounding box. |
|
TextSymbolizer(Geometry geometry,
ParameterValueType label,
Font font,
LabelPlacement labelPlacement,
Halo halo,
Fill fill,
double min,
double max)
constructor initializing the class with the TextSymbolizer |
|
TextSymbolizer(Geometry geometry,
java.lang.String responsibleClass,
ParameterValueType label,
Font font,
LabelPlacement labelPlacement,
Halo halo,
Fill fill,
double min,
double max)
constructor initializing the class with the TextSymbolizer |
Method Summary | |
---|---|
java.lang.String |
exportAsXML()
exports the content of the TextSymbolizer as XML formated String |
ParameterValueType[] |
getBoundingBox()
|
Fill |
getFill()
A Fill allows area geometries to be filled. |
Font |
getFont()
Identifies a Font of a certain family, style, and size. |
Halo |
getHalo()
A Halo is an extension (sub-type) of a Fill and is applied to the backgrounds of font glyphs. |
ParameterValueType |
getLabel()
returns the Label as a ParameterValueType to be renderd |
java.lang.String |
getLabelAsString()
returns the label as a String to be renderd |
LabelPlacement |
getLabelPlacement()
Used to position a label relative to a point or a line string. |
void |
setFill(Fill fill)
sets the |
void |
setFont(Font font)
Sets a Font of a certain family, style, and size. |
void |
setHalo(Halo halo)
sets |
void |
setLabel(ParameterValueType label)
sets the |
void |
setLabelPlacement(LabelPlacement labelPlacement)
sets the |
Methods inherited from class org.deegree.graphics.sld.AbstractSymbolizer |
---|
getGeometry, getMaxScaleDenominator, getMinScaleDenominator, getResponsibleClass, setGeometry, setMaxScaleDenominator, setMinScaleDenominator, setResponsibleClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
TextSymbolizer(Geometry geometry, ParameterValueType label, Font font, LabelPlacement labelPlacement, Halo halo, Fill fill, double min, double max)
TextSymbolizer
geometry
- label
- font
- labelPlacement
- halo
- fill
- min
- max
- TextSymbolizer(Geometry geometry, java.lang.String responsibleClass, ParameterValueType label, Font font, LabelPlacement labelPlacement, Halo halo, Fill fill, double min, double max)
TextSymbolizer
geometry
- responsibleClass
- label
- font
- labelPlacement
- halo
- fill
- min
- max
- public TextSymbolizer(Geometry geometry, ParameterValueType text, Font font, Halo halo, ParameterValueType minx, ParameterValueType miny, ParameterValueType maxx, ParameterValueType maxy)
geometry
- text
- font
- halo
- minx
- miny
- maxx
- maxy
- Method Detail |
---|
public ParameterValueType[] getBoundingBox()
public ParameterValueType getLabel()
public java.lang.String getLabelAsString()
public void setLabel(ParameterValueType label)
public Font getFont()
public void setFont(Font font)
font
- the fontpublic LabelPlacement getLabelPlacement()
MORE PARAMETERS ARE PROBABLY NEEDED HERE.
public void setLabelPlacement(LabelPlacement labelPlacement)
labelPlacement
- the labelPlacementpublic Halo getHalo()
public void setHalo(Halo halo)
halo
- the halopublic Fill getFill()
public void setFill(Fill fill)
fill
- the fillpublic java.lang.String exportAsXML()
exportAsXML
in interface Marshallable
|
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