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, wait
accept
accept
protected 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()
Symbolizer
getDescription
in interface Symbolizer
public void setDescription(Description description)
Symbolizer
public String getName()
Symbolizer
getName
in interface Symbolizer
public void setName(String name)
Symbolizer
Please consider getDescription().getTitle() as an alternative if presenting this symbolizer in a user interface.
public void setUnitOfMeasure(Unit<Length> uom)
Symbolizer
Recommended uom definitions are :
metre
foot
pixel
uom
- can be null, which indicates usage of the pixel unit.public Unit<Length> getUnitOfMeasure()
Symbolizer
Recommended uom definitions are :
metre
foot
pixel
getUnitOfMeasure
in interface Symbolizer
public Expression getGeometry()
Symbolizer
public void setGeometry(Expression geometry)
Symbolizer
Symbolizer.getGeometry()
for further details.public String getGeometryPropertyName()
Symbolizer
getGeometryPropertyName
in interface Symbolizer
null
to indicate default geometrypublic void setGeometryPropertyName(String geometryPropertyName)
Symbolizer
PropertyName
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)
Symbolizer
public Map<String,String> getOptions()
Symbolizer
Client code looking for the existence of a single option should use Symbolizer.hasOption(String)
Copyright © 1996–2019 Geotools. All rights reserved.