public class StyleImpl extends Object implements Style, Cloneable
| Modifier | Constructor and Description |
|---|---|
protected |
StyleImpl()
Creates a new instance of StyleImpl
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(StyleVisitor visitor)
Used to navigate Style information during portrayal.
|
Object |
accept(StyleVisitor visitor,
Object extraData)
calls the visit method of a StyleVisitor
|
void |
addFeatureTypeStyle(FeatureTypeStyle type) |
Object |
clone()
Clones the Style.
|
boolean |
equals(Object oth)
Compares this Style with another.
|
List<FeatureTypeStyle> |
featureTypeStyles()
FeatureTypeStyles rendered in order of appearance in this list.
|
Fill |
getBackground()
The background Fill , if any,
null otherwise |
Symbolizer |
getDefaultSpecification()
This functionality is from an ISO specificaiton; and conflicts with the idea of an else rule
presented by SLD.
|
DescriptionImpl |
getDescription()
Description for this style.
|
FeatureTypeStyle[] |
getFeatureTypeStyles() |
String |
getName()
Style name (machine readable, don't show to users)
|
int |
hashCode() |
boolean |
isDefault()
The IsDefault element identifies whether a style is the default style of a layer, for use in
SLD ‘library mode’ when rendering or for storing inside of a map server.
|
void |
setBackground(Fill background)
Sets the background color.
|
void |
setDefault(boolean isDefault)
Indicates that this is the default style.
|
void |
setDefaultSpecification(Symbolizer defaultSymbolizer) |
void |
setDescription(Description description) |
void |
setFeatureTypeStyles(FeatureTypeStyle... styles) |
void |
setName(String name) |
String |
toString() |
public DescriptionImpl getDescription()
StylegetDescription in interface Stylepublic FeatureTypeStyle[] getFeatureTypeStyles()
public List<FeatureTypeStyle> featureTypeStyles()
StylefeatureTypeStyles in interface Stylepublic Symbolizer getDefaultSpecification()
StyleImplementations may choose to look up the first symbolizer of an elseFilter or allow this to be provided?
getDefaultSpecification in interface Stylepublic void setDefaultSpecification(Symbolizer defaultSymbolizer)
defaultSymbolizer - To be used if a feature is not rendered by any of the rulespublic void setFeatureTypeStyles(FeatureTypeStyle... styles)
public void addFeatureTypeStyle(FeatureTypeStyle type)
public String getName()
Stylepublic boolean isDefault()
Stylepublic void setDefault(boolean isDefault)
StyleAssume this is kept for GeoServer enabling a WMS to track which style is considered the default. May consider providing a clientProperties mechanism similar to Swing JComponent allowing applications to mark up the Style content for custom uses.
public void setName(String name)
public void accept(StyleVisitor visitor)
Stylepublic Object clone()
public boolean equals(Object oth)
Two StyleImpl are equal if they have the same properties and the same list of FeatureTypeStyles.
public Object accept(StyleVisitor visitor, Object extraData)
Stylepublic void setDescription(Description description)
public Fill getBackground()
Stylenull otherwisepublic void setBackground(Fill background)
StyleUnsupportedOperationException.Copyright © 1996–2021 Geotools. All rights reserved.