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.
|
String |
getAbstract()
Deprecated.
|
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()
Array of FeatureTypeStyles in portrayal order.
|
String |
getName()
Style name (machine readable, don't show to users)
|
String |
getTitle()
Deprecated.
|
int |
hashCode()
Overrides 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 |
setAbstract(String abstractStr)
Deprecated.
|
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) |
void |
setTitle(String title)
Deprecated.
|
String |
toString() |
public DescriptionImpl getDescription()
Style
getDescription
in interface Style
@Deprecated public String getAbstract()
Style
public FeatureTypeStyle[] getFeatureTypeStyles()
Style
FeatureTypeStyle entries are rendered in order of appearance in this list.
Note: We are using a Array here to continue with Java 1.4 deployment.
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
@Deprecated public String getTitle()
Style
public boolean isDefault()
Style
@Deprecated public void setAbstract(String abstractStr)
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)
@Deprecated public void setTitle(String title)
public void accept(StyleVisitor visitor)
Style
public Object clone()
clone
in class Object
RuntimeException
- DOCUMENT ME!org.geotools.styling.Style#clone()
public int hashCode()
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)
Copyright © 1996–2019 Geotools. All rights reserved.