|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.event.AbstractGTComponent org.geotools.styling.TextSymbolizerImpl
Provides a Java representation of an SLD TextSymbolizer that defines how text symbols should be rendered.
Field Summary |
Fields inherited from class org.geotools.event.AbstractGTComponent |
notification |
Constructor Summary | |
protected |
TextSymbolizerImpl()
Creates a new instance of DefaultTextSymbolizer |
Method Summary | |
void |
accept(StyleVisitor visitor)
Accept a StyleVisitor to perform an operation on this symbolizer. |
void |
addFont(Font font)
Setter for property font. |
void |
addToOptions(java.lang.String key,
java.lang.String value)
adds a parameter value to the options map |
java.lang.Object |
clone()
Creates a deep copy clone. |
boolean |
equals(java.lang.Object oth)
|
java.lang.String |
geometryPropertyName()
This property defines the geometry to be used for styling. |
Fill |
getFill()
Returns the fill to be used to fill the text when rendered. |
Font[] |
getFonts()
Returns a device independent Font object that is to be used to render the label. |
java.lang.String |
getGeometryPropertyName()
Getter for property geometryPropertyName. |
Graphic |
getGraphic()
|
Halo |
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()
Deprecated. use getPlacement() |
java.lang.String |
getOption(java.lang.String key)
Find the value of a key in the map (may return null) |
java.util.Map |
getOptions()
return the map of option |
LabelPlacement |
getPlacement()
A pointPlacement specifies how a text element should be rendered relative to its geometric point. |
Expression |
getPriority()
Priority -- null = use the default labeling priority Expression = an expression that evaluates to a number (ie. |
int |
hashCode()
|
void |
setFill(Fill fill)
Setter for property fill. |
void |
setFonts(Font[] fonts)
Sets the list of fonts in the TextSymbolizer to the provided array of Fonts. |
void |
setGeometryPropertyName(java.lang.String geometryPropertyName)
Setter for property geometryPropertyName. |
void |
setGraphic(Graphic graphic)
|
void |
setHalo(Halo halo)
Setter for property halo. |
void |
setLabel(Expression label)
Setter for property label. |
void |
setLabelPlacement(LabelPlacement labelPlacement)
Deprecated. use setPlacement(LabelPlacement) |
void |
setPlacement(LabelPlacement labelPlacement)
Setter for property labelPlacement. |
void |
setPriority(Expression priority)
Priority -- null = use the default labeling priority Expression = an expression that evaluates to a number (ie. |
Methods inherited from class org.geotools.event.AbstractGTComponent |
changed, fireChanged, fireChildChanged, getNote, getParent, removed, setNote |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.geotools.event.GTComponent |
changed, getNote, getParent, removed, setNote |
Constructor Detail |
protected TextSymbolizerImpl()
Method Detail |
public java.lang.String geometryPropertyName()
public Fill getFill()
getFill
in interface TextSymbolizer
public void setFill(Fill fill)
setFill
in interface TextSymbolizer
fill
- New value of property fill.public Font[] getFonts()
getFonts
in interface TextSymbolizer
public void addFont(Font font)
font
- New value of property font.public void setFonts(Font[] fonts)
setFonts
in interface TextSymbolizer
fonts
- The array of fonts to use in the symbolizer.public Halo getHalo()
getHalo
in interface TextSymbolizer
public void setHalo(Halo halo)
setHalo
in interface TextSymbolizer
halo
- New value of property halo.public Expression getLabel()
getLabel
in interface TextSymbolizer
public void setLabel(Expression label)
setLabel
in interface TextSymbolizer
label
- New value of property label.public LabelPlacement getPlacement()
getPlacement
in interface TextSymbolizer
public void setPlacement(LabelPlacement labelPlacement)
setPlacement
in interface TextSymbolizer
labelPlacement
- New value of property labelPlacement.public LabelPlacement getLabelPlacement()
getLabelPlacement
in interface TextSymbolizer
public void setLabelPlacement(LabelPlacement labelPlacement)
setLabelPlacement
in interface TextSymbolizer
labelPlacement
- New value of property labelPlacement.public java.lang.String getGeometryPropertyName()
getGeometryPropertyName
in interface TextSymbolizer
public void setGeometryPropertyName(java.lang.String geometryPropertyName)
setGeometryPropertyName
in interface TextSymbolizer
geometryPropertyName
- New value of property geometryPropertyName.public void accept(StyleVisitor visitor)
accept
in interface Symbolizer
visitor
- The StyleVisitor to accept.public java.lang.Object clone()
clone
in interface org.opengis.util.Cloneable
clone
in class AbstractGTComponent
java.lang.AssertionError
- DOCUMENT ME!public int hashCode()
public boolean equals(java.lang.Object oth)
public void setPriority(Expression priority)
TextSymbolizer
setPriority
in interface TextSymbolizer
priority
- public Expression getPriority()
TextSymbolizer
getPriority
in interface TextSymbolizer
public void addToOptions(java.lang.String key, java.lang.String value)
TextSymbolizer
addToOptions
in interface TextSymbolizer
key
- value
- public java.lang.String getOption(java.lang.String key)
TextSymbolizer
getOption
in interface TextSymbolizer
key
-
public java.util.Map getOptions()
TextSymbolizer
getOptions
in interface TextSymbolizer
public Graphic getGraphic()
getGraphic
in interface TextSymbolizer2
public void setGraphic(Graphic graphic)
setGraphic
in interface TextSymbolizer2
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |