Package org.opengis.style
Interface TextSymbolizer
-
- All Superinterfaces:
Symbolizer
- All Known Subinterfaces:
TextSymbolizer
,TextSymbolizer2
- All Known Implementing Classes:
TextSymbolizerImpl
@XmlElement("TextSymbolizer") public interface TextSymbolizer extends Symbolizer
Indicates how text will be drawn.- Since:
- GeoAPI 2.2
- Author:
- Open Geospatial Consortium, Johann Sorel (Geomatys), Chris Dillard (SYS Technologies)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
accept(StyleVisitor visitor, Object extraData)
calls the visit method of a StyleVisitorFill
getFill()
Returns the object that indicates how the text will be filled.Font
getFont()
Returns the Font to apply on the text.Halo
getHalo()
Returns the object that indicates if a Halo will be drawn around the text.Expression
getLabel()
Returns the expression that will be evaluated to determine what text is displayed.LabelPlacement
getLabelPlacement()
Returns the object that indicates how the text should be placed with respect to the feature geometry.-
Methods inherited from interface Symbolizer
getDescription, getGeometryPropertyName, getName, getUnitOfMeasure
-
-
-
-
Method Detail
-
getLabel
@XmlElement("Label") Expression getLabel()
Returns the expression that will be evaluated to determine what text is displayed. If a Label element is not provided in a TextSymbolizer, then no text shall be rendered.- Returns:
- Expression
-
getFont
@XmlElement("Font") Font getFont()
Returns the Font to apply on the text.- Returns:
- Font
-
getLabelPlacement
@XmlElement("LabelPlacement") LabelPlacement getLabelPlacement()
Returns the object that indicates how the text should be placed with respect to the feature geometry. This object will either be an instance ofLinePlacement
orPointPlacement
.- Returns:
LinePlacement
orPointPlacement
.
-
getHalo
@XmlElement("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.- Returns:
- Halo
-
getFill
@XmlElement("Fill") Fill getFill()
Returns the object that indicates how the text will be filled.- Returns:
- Fill
-
accept
@Extension Object accept(StyleVisitor visitor, Object extraData)
calls the visit method of a StyleVisitor- Specified by:
accept
in interfaceSymbolizer
- Parameters:
visitor
- the style visitor- Returns:
- value produced
-
-