|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractSymbolizer
public abstract class AbstractSymbolizer
Field Summary | |
---|---|
protected Description |
description
|
protected Expression |
geometry
|
protected String |
name
|
protected Map<String,String> |
options
|
protected Unit<Length> |
unitOfMeasure
|
Constructor Summary | |
---|---|
protected |
AbstractSymbolizer()
|
|
AbstractSymbolizer(String name,
Description description,
Expression geometry,
Unit<Length> unitOfMeasure)
|
|
AbstractSymbolizer(String name,
Description description,
String geometryPropertyName,
Unit<Length> unitOfMeasure)
|
Method Summary | |
---|---|
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. |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface Symbolizer |
---|
accept |
Methods inherited from interface Symbolizer |
---|
accept |
Field Detail |
---|
protected String name
protected Description description
protected Expression geometry
protected Unit<Length> unitOfMeasure
protected Map<String,String> options
Constructor Detail |
---|
protected AbstractSymbolizer()
public AbstractSymbolizer(String name, Description description, Expression geometry, Unit<Length> unitOfMeasure)
public AbstractSymbolizer(String name, Description description, String geometryPropertyName, Unit<Length> unitOfMeasure)
Method Detail |
---|
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
metre
foot
pixel
uom
- can be null, which indicates usage of the pixel unit.public Unit<Length> getUnitOfMeasure()
Symbolizer
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)
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |