org.opengis.style
Interface Style

All Known Subinterfaces:
NamedStyle, Style
All Known Implementing Classes:
BasicLineStyle, BasicPolygonStyle, NamedStyleImpl, StyleImpl

@UML(identifier="PF_PortrayalCatalog",
     specification=ISO_19117)
@XmlElement(value="UserStyle")
public interface Style

A UserStyle is at the same semantic level as a NamedStyle used in the context of a WMS. In a sense, a named style can be thought of as a reference to a hidden UserStyle that is stored inside of a map server.

A portrayal catalog consits of a set of feature portrayal objects. Many may exist for each feature type that may occur in the dataset. each feature object has assigned a set of portrayal rules.

This class is a merged between ISO 19117 Portrayal and OGC SLD 1.1.0

Since:
GeoAPI 2.2
Author:
Open Geospatial Consortium, Johann Sorel (Geomatys)

Method Summary
 Object accept(StyleVisitor visitor, Object extraData)
          calls the visit method of a StyleVisitor
 List<? extends FeatureTypeStyle> featureTypeStyles()
          Returns a collection of feature type style.
 Symbolizer getDefaultSpecification()
          Returns the default specification used if no rule return true.
 Description getDescription()
          Returns the description of this style.
 String getName()
          Style name (machine readable, don't show to users)
 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.
 

Method Detail

getName

@XmlElement(value="UserStyle")
String getName()
Style name (machine readable, don't show to users)

Returns:
String, identification name of this style

getDescription

@XmlElement(value="Description")
Description getDescription()
Returns the description of this style.

Returns:
Description with usual informations used for user interfaces.

isDefault

@XmlElement(value="IsDefault")
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. IsDefault uses “1” or “true” for true and “0” or “false” for false. The default value is “0”.


featureTypeStyles

@UML(identifier="featurePortrayal",
     obligation=MANDATORY,
     specification=ISO_19117)
@XmlElement(value="FeatureTypeStyle")
List<? extends FeatureTypeStyle> featureTypeStyles()
Returns a collection of feature type style.


getDefaultSpecification

@UML(identifier="defaultPortrayalSpec",
     obligation=MANDATORY,
     specification=ISO_19117)
Symbolizer getDefaultSpecification()
Returns the default specification used if no rule return true. This specification should not use any external functions. This specification should use at least one spatial attribut.

Returns:
PortrayalSpecification

accept

@Extension
Object accept(StyleVisitor visitor,
                        Object extraData)
calls the visit method of a StyleVisitor

Parameters:
visitor - the style visitor


Copyright © 1996-2014 Geotools. All Rights Reserved.