public class TextSymbolizerImpl extends AbstractSymbolizer implements TextSymbolizer2, Cloneable
TextSymbolizer.DisplacementMode, TextSymbolizer.PolygonAlignOptionsgeometry, name, options, unitOfMeasureALLOW_OVERRUNS_KEY, AUTO_WRAP_KEY, CHAR_SPACING_KEY, CONFLICT_RESOLUTION_KEY, DEFAULT_ALLOW_OVERRUNS, DEFAULT_AUTO_WRAP, DEFAULT_CHAR_SPACING, DEFAULT_CONFLICT_RESOLUTION, DEFAULT_FOLLOW_LINE, DEFAULT_FORCE_LEFT_TO_RIGHT, DEFAULT_GOODNESS_OF_FIT, DEFAULT_GROUP, DEFAULT_KERNING, DEFAULT_LABEL_ALL_GROUP, DEFAULT_LABEL_REPEAT, DEFAULT_MAX_ANGLE_DELTA, DEFAULT_MAX_DISPLACEMENT, DEFAULT_MIN_GROUP_DISTANCE, DEFAULT_PARTIALS, DEFAULT_POLYGONALIGN, DEFAULT_REMOVE_OVERLAPS, DEFAULT_SPACE_AROUND, DEFAULT_STRIKETHROUGH_TEXT, DEFAULT_UNDERLINE_TEXT, DEFAULT_WORD_SPACING, DISPLACEMENT_MODE_KEY, FOLLOW_LINE_KEY, FORCE_LEFT_TO_RIGHT_KEY, GOODNESS_OF_FIT_KEY, GRAPHIC_MARGIN_KEY, GRAPHIC_RESIZE_KEY, GROUP_KEY, KERNING_KEY, LABEL_ALL_GROUP_KEY, LABEL_REPEAT_KEY, MAX_ANGLE_DELTA_KEY, MAX_DISPLACEMENT_KEY, MIN_GROUP_DISTANCE_KEY, PARTIALS_KEY, POLYGONALIGN_KEY, REMOVE_OVERLAPS_KEY, SPACE_AROUND_KEY, STRIKETHROUGH_TEXT_KEY, UNDERLINE_TEXT_KEY, WORD_SPACING_KEY| Modifier | Constructor and Description |
|---|---|
protected |
TextSymbolizerImpl() |
protected |
TextSymbolizerImpl(FilterFactory factory)
Creates a new instance of DefaultTextSymbolizer
|
protected |
TextSymbolizerImpl(FilterFactory factory,
Description desc,
String name,
Unit<Length> uom) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(StyleVisitor visitor) |
Object |
accept(StyleVisitor visitor,
Object data)
Accept a StyleVisitor to perform an operation on this symbolizer.
|
void |
addFont(Font font)
Setter for property font.
|
void |
addToOptions(String key,
String value)
Adds a parameter value to the options map
|
Object |
clone()
Creates a deep copy clone.
|
boolean |
equals(Object obj) |
List<Font> |
fonts()
Direct access to device independent Fonts used to render the label.
|
Expression |
getFeatureDescription()
Description is used by text oriented renders such as KML and RSS to specify a feature's
description
|
FillImpl |
getFill()
Returns the fill to be used to fill the text when rendered.
|
Font |
getFont()
Initial Font to use when rendering this symbolizer.
|
Font[] |
getFonts()
Deprecated.
|
Graphic |
getGraphic()
The nonstandard-SLD graphic element supports putting little graphical-bits onto labels.
|
HaloImpl |
getHalo()
A halo fills an extended area outside the glyphs of a rendered text label to make the label
easier to read over a background.
|
Expression |
getLabel()
Returns the label expression.
|
LabelPlacement |
getLabelPlacement()
A pointPlacement specifies how a text element should be rendered relative to its geometric
point.
|
String |
getOption(String key)
Find the value of a key in the map (may return null)
|
OtherText |
getOtherText()
Other text can be used to allow open ended extensions on text oriented output formats
|
LabelPlacement |
getPlacement()
Deprecated.
|
Expression |
getPriority()
Priority -- null = use the default labeling priority Expression = an expression that
evaluates to a number (ie.
|
Expression |
getSnippet()
Abstract is used by text oriented renderers such as KML and RSS to specify an abstract (RSS)
or a snippet (KML)
|
int |
hashCode() |
void |
setFeatureDescription(Expression description) |
void |
setFill(Fill fill)
Setter for property fill.
|
void |
setFont(Font font)
Set initial font used to render label.
|
void |
setFonts(Font[] fonts)
Deprecated.
|
void |
setGraphic(Graphic graphic)
The nonstandard-SLD graphic element supports putting little graphical-bits onto labels.
|
void |
setHalo(Halo halo)
Setter for property halo.
|
void |
setLabel(Expression label)
Setter for property label.
|
void |
setLabelPlacement(LabelPlacement labelPlacement)
Setter for property labelPlacement.
|
void |
setOtherText(OtherText otherText) |
void |
setPlacement(LabelPlacement labelPlacement)
Deprecated.
Use setLabelPlacement
|
void |
setPriority(Expression priority)
Priority -- null = use the default labeling priority Expression = an expression that
evaluates to a number (ie.
|
void |
setSnippet(Expression abxtract) |
String |
toString() |
getDescription, getGeometry, getGeometryPropertyName, getName, getOptions, getUnitOfMeasure, hasOption, setDescription, setGeometry, setGeometryPropertyName, setName, setUnitOfMeasuregetOptionsgetDescription, getGeometry, getGeometryPropertyName, hasOption, setDescription, setGeometry, setGeometryPropertyName, setName, setUnitOfMeasuregetName, getUnitOfMeasureprotected TextSymbolizerImpl()
protected TextSymbolizerImpl(FilterFactory factory)
protected TextSymbolizerImpl(FilterFactory factory, Description desc, String name, Unit<Length> uom)
public FillImpl getFill()
getFill in interface TextSymbolizerpublic void setFill(Fill fill)
fill - New value of property fill.public List<Font> fonts()
TextSymbolizerpublic Font getFont()
TextSymbolizerTextSymbolizer.fonts().getFont in interface TextSymbolizerpublic void setFont(Font font)
TextSymbolizerTextSymbolizer.fonts() list.@Deprecated public Font[] getFonts()
public void addFont(Font font)
font - New value of property font.@Deprecated public void setFonts(Font[] fonts)
fonts - The array of fonts to use in the symbolizer.public HaloImpl getHalo()
getHalo in interface TextSymbolizerpublic void setHalo(Halo halo)
halo - New value of property halo.public Expression getLabel()
getLabel in interface TextSymbolizerpublic void setLabel(Expression label)
label - New value of property label.@Deprecated public LabelPlacement getPlacement()
public void setPlacement(LabelPlacement labelPlacement)
labelPlacement - New value of property labelPlacement.public LabelPlacement getLabelPlacement()
getLabelPlacement in interface TextSymbolizerpublic void setLabelPlacement(LabelPlacement labelPlacement)
labelPlacement - New value of property labelPlacement.public Object accept(StyleVisitor visitor, Object data)
accept in interface Symbolizeraccept in interface TextSymbolizervisitor - The StyleVisitor to accept.public void accept(StyleVisitor visitor)
public Object clone()
clone in class ObjectAssertionError - DOCUMENT ME!Object.clone()public void setPriority(Expression priority)
TextSymbolizerpublic Expression getPriority()
TextSymbolizerpublic void addToOptions(String key, String value)
TextSymbolizerpublic String getOption(String key)
TextSymbolizerpublic Graphic getGraphic()
TextSymbolizer2getGraphic in interface TextSymbolizer2public void setGraphic(Graphic graphic)
TextSymbolizer2setGraphic in interface TextSymbolizer2graphic - - the Graphic object which will be rendered under the label textpublic Expression getSnippet()
TextSymbolizer2getSnippet in interface TextSymbolizer2public void setSnippet(Expression abxtract)
setSnippet in interface TextSymbolizer2public Expression getFeatureDescription()
TextSymbolizer2getFeatureDescription in interface TextSymbolizer2public void setFeatureDescription(Expression description)
setFeatureDescription in interface TextSymbolizer2public OtherText getOtherText()
TextSymbolizer2getOtherText in interface TextSymbolizer2public void setOtherText(OtherText otherText)
setOtherText in interface TextSymbolizer2public int hashCode()
hashCode in class AbstractSymbolizerpublic boolean equals(Object obj)
equals in class AbstractSymbolizerCopyright © 1996–2019 Geotools. All rights reserved.