org.opengis.sld
Interface TextSymbol
-
- All Superinterfaces:
- Symbol
@XmlElement(value="TextSymbolizer") public interface TextSymbol extends Symbol
Indicates how text will be drawn.- Since:
- GeoAPI 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description FillgetFill()Returns the object that indicates how the text will be filled.java.util.List<Font>getFonts()Returns a list of Fonts to choose from when rendering this symbol.HalogetHalo()Returns the object that indicates if a Halo will be drawn around the text.ExpressiongetLabel()Returns the expression that will be evaluated to determine what text is displayed.TextPlacementgetPlacement()Returns the object that indicates how the text should be placed with respect to the feature geometry.voidsetFill(Fill fill)Sets the object that indicates how the text will be filled.voidsetHalo(Halo halo)Sets the object that indicates if a Halo will be drawn around the text.voidsetLabel(Expression label)Sets the expression that will be evaluated to determine what text is displayed.voidsetPlacement(TextPlacement placement)Sets the object that indicates how the text should be placed with respect to the feature geometry.-
Methods inherited from interface org.opengis.sld.Symbol
accept, getAbstract, getGeometryAttribute, getName, getTitle, setAbstract, setGeometryAttribute, setName, setTitle
-
-
-
-
Method Detail
-
getLabel
@XmlElement(value="Label") Expression getLabel()
Returns the expression that will be evaluated to determine what text is displayed.
-
setLabel
@XmlElement(value="Label") void setLabel(Expression label)
Sets the expression that will be evaluated to determine what text is displayed. SeegetLabel()for details.
-
getFonts
@XmlElement(value="Font") java.util.List<Font> getFonts()
Returns a list of Fonts to choose from when rendering this symbol. The renderer must choose the first one in the list that it is capable of rendering. The returned list is "live" and can be modified by the caller. (This is why there is nosetFontsmethod.)
-
getPlacement
@XmlElement(value="LabelPlacement") TextPlacement getPlacement()
Returns the object that indicates how the text should be placed with respect to the feature geometry. This object will either be an instance ofLinePlacementorPointPlacement.
-
setPlacement
@XmlElement(value="LabelPlacement") void setPlacement(TextPlacement placement)
Sets the object that indicates how the text should be placed with respect to the feature geometry. SeegetPlacement()for details.
-
getHalo
@XmlElement(value="Halo") Halo getHalo()
Returns the object that indicates if a Halo will be drawn around the text. If null, a halo will not be drawn.
-
setHalo
@XmlElement(value="Halo") void setHalo(Halo halo)
Sets the object that indicates if a Halo will be drawn around the text. If null, a halo will not be drawn. SeegetHalo()for details.
-
getFill
@XmlElement(value="Fill") Fill getFill()
Returns the object that indicates how the text will be filled.
-
setFill
@XmlElement(value="Fill") void setFill(Fill fill)
Sets the object that indicates how the text will be filled. SeegetFill()for details.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG