public class TLcdSLDTextSymbolizer extends ALcdSLDSymbolizer
Modifier and Type | Class and Description |
---|---|
static class |
TLcdSLDTextSymbolizer.Builder<T>
A builder for SLD text symbolizers.
|
Constructor and Description |
---|
TLcdSLDTextSymbolizer()
Empty constructor.
|
TLcdSLDTextSymbolizer(TLcdDataType aDataType)
Empty constructor.
|
TLcdSLDTextSymbolizer(TLcdSLDGeometry aGeometry,
TLcdSLDParameterValue aLabel,
TLcdSLDFont aFont,
TLcdSLDLabelPlacement aLabelPlacement,
TLcdSLDHalo aHalo,
TLcdSLDFill aFill)
Constructor for given parameters.
|
Modifier and Type | Method and Description |
---|---|
TLcdSLDFill |
getFill()
Returns the value of the property that maps to the
Fill element. |
TLcdSLDFont |
getFont()
Returns the value of the property that maps to the
Font element. |
TLcdSLDGeometry |
getGeometry()
Returns the value of the property that maps to the
Geometry element. |
TLcdSLDGraphic |
getGraphic()
Returns the value of the property that maps to the
Graphic element. |
TLcdSLDHalo |
getHalo()
Returns the value of the property that maps to the
Halo element. |
TLcdSLDParameterValue |
getLabel()
Returns the value of the property that maps to the
Label element. |
TLcdSLDLabelPlacement |
getLabelPlacement()
Returns the value of the property that maps to the
LabelPlacement element. |
List<TLcdSLDVendorOption> |
getVendorOptions()
Returns the value of the property that maps to the
VendorOption element. |
static TLcdSLDTextSymbolizer.Builder<TLcdSLDTextSymbolizer> |
newBuilder()
Creates a new builder with the default values.
|
void |
setFill(TLcdSLDFill aValue)
Sets the value of the property that maps to the
Fill element. |
void |
setFont(TLcdSLDFont aValue)
Sets the value of the property that maps to the
Font element. |
void |
setGeometry(TLcdSLDGeometry aValue)
Sets the value of the property that maps to the
Geometry element. |
void |
setGraphic(TLcdSLDGraphic aValue)
Sets the value of the property that maps to the
Graphic element. |
void |
setHalo(TLcdSLDHalo aValue)
Sets the value of the property that maps to the
Halo element. |
void |
setLabel(TLcdSLDParameterValue aValue)
Sets the value of the property that maps to the
Label element. |
void |
setLabelPlacement(TLcdSLDLabelPlacement aValue)
Sets the value of the property that maps to the
LabelPlacement element. |
getDescription, getName, getUom, getVersion, setDescription, setName, setUom, setVersion, toString
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
public TLcdSLDTextSymbolizer()
public TLcdSLDTextSymbolizer(TLcdSLDGeometry aGeometry, TLcdSLDParameterValue aLabel, TLcdSLDFont aFont, TLcdSLDLabelPlacement aLabelPlacement, TLcdSLDHalo aHalo, TLcdSLDFill aFill)
aGeometry
- the given geometry.aLabel
- the given label.aFont
- the given font.aLabelPlacement
- the given label placement.aHalo
- the given halo.aFill
- the given fill.public TLcdSLDTextSymbolizer(TLcdDataType aDataType)
public static TLcdSLDTextSymbolizer.Builder<TLcdSLDTextSymbolizer> newBuilder()
public TLcdSLDGeometry getGeometry()
Geometry
element.
A Geometry gives reference to a (the) geometry property of a feature to be used for rendering. The geometry is optional and may thus be null. If null, the default geometry of an object should be rendered with a stroke. E.g. when a ILcdModel contains ILcdShape objects, the geometry may be null as the object itself is a geometry.
GEOMETRY_PROPERTY
property.public void setGeometry(TLcdSLDGeometry aValue)
Geometry
element.
A Geometry gives reference to a (the) geometry property of a feature to be used for rendering. The geometry is optional and may thus be null. If null, the default geometry of an object should be rendered with a stroke. E.g. when a ILcdModel contains ILcdShape objects, the geometry may be null as the object itself is a geometry.
aValue
- the value to set for the GEOMETRY_PROPERTY
property.public TLcdSLDParameterValue getLabel()
Label
element.
A "Label" specifies the textual content to be rendered. Null is allowed.
LABEL_PROPERTY
property.public void setLabel(TLcdSLDParameterValue aValue)
Label
element.
A "Label" specifies the textual content to be rendered. Null is allowed.
aValue
- the value to set for the LABEL_PROPERTY
property.public TLcdSLDFont getFont()
Font
element.
A "Font" element specifies the text font to use. The allowed CssParameters are: "font-family", "font-style", "font-weight", and "font-size".
FONT_PROPERTY
property.public void setFont(TLcdSLDFont aValue)
Font
element.
A "Font" element specifies the text font to use. The allowed CssParameters are: "font-family", "font-style", "font-weight", and "font-size".
aValue
- the value to set for the FONT_PROPERTY
property.public TLcdSLDLabelPlacement getLabelPlacement()
LabelPlacement
element.
The "LabelPlacement" specifies where and how a text label should be rendered relative to a geometry. The present mechanism is poorly aligned with CSS/SVG.
LABEL_PLACEMENT_PROPERTY
property.public void setLabelPlacement(TLcdSLDLabelPlacement aValue)
LabelPlacement
element.
The "LabelPlacement" specifies where and how a text label should be rendered relative to a geometry. The present mechanism is poorly aligned with CSS/SVG.
aValue
- the value to set for the LABEL_PLACEMENT_PROPERTY
property.public TLcdSLDHalo getHalo()
Halo
element.
A "Halo" fills an extended area outside the glyphs of a rendered text label to make the label easier to read over a background.
HALO_PROPERTY
property.public void setHalo(TLcdSLDHalo aValue)
Halo
element.
A "Halo" fills an extended area outside the glyphs of a rendered text label to make the label easier to read over a background.
aValue
- the value to set for the HALO_PROPERTY
property.public TLcdSLDFill getFill()
Fill
element.
A "Fill" specifies the pattern for filling an area geometry. The allowed CssParameters are: "fill" (color) and "fill-opacity".
FILL_PROPERTY
property.public void setFill(TLcdSLDFill aValue)
Fill
element.
A "Fill" specifies the pattern for filling an area geometry. The allowed CssParameters are: "fill" (color) and "fill-opacity".
aValue
- the value to set for the FILL_PROPERTY
property.public TLcdSLDGraphic getGraphic()
Graphic
element.
A "Graphic" specifies or refers to a "graphic symbol" with inherent shape, size, and coloring.
GRAPHIC_PROPERTY
property.public void setGraphic(TLcdSLDGraphic aValue)
Graphic
element.
A "Graphic" specifies or refers to a "graphic symbol" with inherent shape, size, and coloring.
aValue
- the value to set for the GRAPHIC_PROPERTY
property.public List<TLcdSLDVendorOption> getVendorOptions()
VendorOption
element.VENDOR_OPTION_PROPERTY
property.