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()
Style
getDescription
in interface Style
public FeatureTypeStyle[] getFeatureTypeStyles()
public List<FeatureTypeStyle> featureTypeStyles()
Style
featureTypeStyles
in interface Style
public Symbolizer getDefaultSpecification()
Style
Implementations may choose to look up the first symbolizer of an elseFilter or allow this to be provided?
getDefaultSpecification
in interface Style
public 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()
Style
public boolean isDefault()
Style
public void setDefault(boolean isDefault)
Style
Assume 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)
Style
public 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)
Style
public void setDescription(Description description)
public Fill getBackground()
Style
null
otherwisepublic void setBackground(Fill background)
Style
UnsupportedOperationException
.Copyright © 1996–2022 Geotools. All rights reserved.