public class TextSymbolizerImpl extends AbstractSymbolizer implements TextSymbolizer2, Cloneable
TextSymbolizer.DisplacementMode, TextSymbolizer.PolygonAlignOptions
geometry, name, options, unitOfMeasure
ALLOW_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, setUnitOfMeasure
getOptions
getDescription, getGeometry, getGeometryPropertyName, hasOption, setDescription, setGeometry, setGeometryPropertyName, setName, setUnitOfMeasure
getName, getUnitOfMeasure
protected TextSymbolizerImpl()
protected TextSymbolizerImpl(FilterFactory factory)
protected TextSymbolizerImpl(FilterFactory factory, Description desc, String name, Unit<Length> uom)
public FillImpl getFill()
getFill
in interface TextSymbolizer
public void setFill(Fill fill)
fill
- New value of property fill.public List<Font> fonts()
TextSymbolizer
public Font getFont()
TextSymbolizer
TextSymbolizer.fonts()
.getFont
in interface TextSymbolizer
public void setFont(Font font)
TextSymbolizer
TextSymbolizer.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 TextSymbolizer
public void setHalo(Halo halo)
halo
- New value of property halo.public Expression getLabel()
getLabel
in interface TextSymbolizer
public 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 TextSymbolizer
public void setLabelPlacement(LabelPlacement labelPlacement)
labelPlacement
- New value of property labelPlacement.public Object accept(StyleVisitor visitor, Object data)
accept
in interface Symbolizer
accept
in interface TextSymbolizer
visitor
- The StyleVisitor to accept.public void accept(StyleVisitor visitor)
public Object clone()
clone
in class Object
AssertionError
- DOCUMENT ME!Object.clone()
public void setPriority(Expression priority)
TextSymbolizer
public Expression getPriority()
TextSymbolizer
public void addToOptions(String key, String value)
TextSymbolizer
public String getOption(String key)
TextSymbolizer
public Graphic getGraphic()
TextSymbolizer2
getGraphic
in interface TextSymbolizer2
public void setGraphic(Graphic graphic)
TextSymbolizer2
setGraphic
in interface TextSymbolizer2
graphic
- - the Graphic object which will be rendered under the label textpublic Expression getSnippet()
TextSymbolizer2
getSnippet
in interface TextSymbolizer2
public void setSnippet(Expression abxtract)
setSnippet
in interface TextSymbolizer2
public Expression getFeatureDescription()
TextSymbolizer2
getFeatureDescription
in interface TextSymbolizer2
public void setFeatureDescription(Expression description)
setFeatureDescription
in interface TextSymbolizer2
public OtherText getOtherText()
TextSymbolizer2
getOtherText
in interface TextSymbolizer2
public void setOtherText(OtherText otherText)
setOtherText
in interface TextSymbolizer2
public int hashCode()
hashCode
in class AbstractSymbolizer
public boolean equals(Object obj)
equals
in class AbstractSymbolizer
Copyright © 1996–2019 Geotools. All rights reserved.