public abstract class AbstractSymbolizer extends Object implements Symbolizer
| Modifier and Type | Field and Description |
|---|---|
protected Description |
description |
protected Expression |
geometry |
protected String |
name |
protected Map<String,String> |
options |
protected Unit<Length> |
unitOfMeasure |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSymbolizer() |
|
AbstractSymbolizer(String name,
Description description,
Expression geometry,
Unit<Length> unitOfMeasure) |
|
AbstractSymbolizer(String name,
Description description,
String geometryPropertyName,
Unit<Length> unitOfMeasure) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Description |
getDescription()
Returns the description of this symbolizer.
|
Expression |
getGeometry()
This defines the geometry to be used for styling.
|
String |
getGeometryPropertyName()
A shortcut to get the geometry property name in the case the geometry expression is a
PropertyName.
|
String |
getName()
Returns a name for this symbolizer.
|
Map<String,String> |
getOptions()
Map of vendor options for the symbolizer.
|
Unit<Length> |
getUnitOfMeasure()
Returns a measure unit.
|
int |
hashCode() |
boolean |
hasOption(String key)
Determines if a vendor option with the specific key has been set on this symbolizer.
|
void |
setDescription(Description description)
Tile and Abstract of Symbolzer.
|
void |
setGeometry(Expression geometry)
Sets the expression used for styling.
|
void |
setGeometryPropertyName(String geometryPropertyName)
A shortcut to define the geometry expression as a
PropertyName Typically, features
only have one geometry so, in general, the need to select one is not required. |
void |
setName(String name)
Name of symbolizer; not always human readable.
|
void |
setUnitOfMeasure(Unit<Length> uom)
Defines a measure unit for the symbolizer.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitacceptacceptprotected String name
protected Description description
protected Expression geometry
protected Unit<Length> unitOfMeasure
protected AbstractSymbolizer()
public AbstractSymbolizer(String name, Description description, Expression geometry, Unit<Length> unitOfMeasure)
public AbstractSymbolizer(String name, Description description, String geometryPropertyName, Unit<Length> unitOfMeasure)
public Description getDescription()
SymbolizergetDescription in interface Symbolizerpublic void setDescription(Description description)
Symbolizerpublic String getName()
SymbolizergetName in interface Symbolizerpublic void setName(String name)
SymbolizerPlease consider getDescription().getTitle() as an alternative if presenting this symbolizer in a user interface.
public void setUnitOfMeasure(Unit<Length> uom)
SymbolizerRecommended uom definitions are :
metre
foot
pixel
uom - can be null, which indicates usage of the pixel unit.public Unit<Length> getUnitOfMeasure()
SymbolizerRecommended uom definitions are :
metre
foot
pixel
getUnitOfMeasure in interface Symbolizerpublic Expression getGeometry()
Symbolizerpublic void setGeometry(Expression geometry)
SymbolizerSymbolizer.getGeometry() for further details.public String getGeometryPropertyName()
SymbolizergetGeometryPropertyName in interface Symbolizernull to indicate default geometrypublic void setGeometryPropertyName(String geometryPropertyName)
SymbolizerPropertyName Typically, features
only have one geometry so, in general, the need to select one is not required. Note: this
moves a little away from the SLD spec which provides an XPath reference to a Geometry object,
but does follow it in spirit.public boolean hasOption(String key)
Symbolizerpublic Map<String,String> getOptions()
SymbolizerClient code looking for the existence of a single option should use Symbolizer.hasOption(String)
Copyright © 1996–2019 Geotools. All rights reserved.