Package org.geotools.styling
Class StyleImpl
Object
StyleImpl
- Direct Known Subclasses:
BasicLineStyle
,BasicPolygonStyle
,NamedStyleImpl
Implementation of style.
- Author:
- James Macgill, CCG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(StyleVisitor visitor) Used to navigate Style information during portrayal.accept
(TraversingStyleVisitor visitor, Object extraData) calls the visit method of a StyleVisitorvoid
clone()
Clones the Style.boolean
Compares this Style with another.FeatureTypeStyles rendered in order of appearance in this list.The background Fill , if any,null
otherwiseThis functionality is from an ISO specificaiton; and conflicts with the idea of an else rule presented by SLD.Description for this style.getName()
Style name (machine readable, don't show to users)int
hashCode()
boolean
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) void
setDefault
(boolean isDefault) Indicates that this is the default style.void
setDefaultSpecification
(Symbolizer defaultSymbolizer) void
setDescription
(Description description) void
setFeatureTypeStyles
(FeatureTypeStyle... styles) void
toString()
-
Constructor Details
-
StyleImpl
protected StyleImpl()Creates a new instance of StyleImpl
-
-
Method Details
-
getDescription
Description copied from interface:Style
Description for this style.- Specified by:
getDescription
in interfaceStyle
- Returns:
- Human readable description for use in user interfaces
-
getFeatureTypeStyles
-
featureTypeStyles
Description copied from interface:Style
FeatureTypeStyles rendered in order of appearance in this list.- Specified by:
featureTypeStyles
in interfaceStyle
-
getDefaultSpecification
Description copied from interface:Style
This functionality is from an ISO specificaiton; and conflicts with the idea of an else rule presented by SLD.Implementations may choose to look up the first symbolizer of an elseFilter or allow this to be provided?
- Specified by:
getDefaultSpecification
in interfaceStyle
- Returns:
- Symbolizer to use if no rules work out.
-
setDefaultSpecification
- Specified by:
setDefaultSpecification
in interfaceStyle
- Parameters:
defaultSymbolizer
- To be used if a feature is not rendered by any of the rules
-
setFeatureTypeStyles
-
addFeatureTypeStyle
-
getName
Description copied from interface:Style
Style name (machine readable, don't show to users) -
isDefault
public boolean isDefault()Description copied from interface:Style
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. IsDefault uses “1” or “true” for true and “0” or “false” for false. The default value is “0”. -
setDefault
public void setDefault(boolean isDefault) Description copied from interface:Style
Indicates that this is the default 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.
- Specified by:
setDefault
in interfaceStyle
-
setName
-
accept
Description copied from interface:Style
Used to navigate Style information during portrayal. -
clone
Clones the Style. Creates deep copy clone of the style. -
hashCode
public int hashCode() -
equals
Compares this Style with another.Two StyleImpl are equal if they have the same properties and the same list of FeatureTypeStyles.
-
toString
-
accept
Description copied from interface:Style
calls the visit method of a StyleVisitor -
setDescription
-
getBackground
Description copied from interface:Style
The background Fill , if any,null
otherwise- Specified by:
getBackground
in interfaceStyle
-
setBackground
- Specified by:
setBackground
in interfaceStyle
-