org.deegree.graphics.sld
Interface UserStyle

All Superinterfaces:
Style
All Known Implementing Classes:
UserStyle_Impl

public interface UserStyle
extends Style

A user-defined allows map styling to be defined externally from a system and to be passed around in an interoperable format.

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.

----------------------------------------------------------------------

Version:
$Revision: 1.2 $ $Date: 2004/01/12 14:48:13 $
Author:
Andreas Poth

Method Summary
 void addFeatureTypeStyle(FeatureTypeStyle featureTypeStyle)
          Adds a
 java.lang.String getAbstract()
          the Abstract is a more exact description that may be a few paragraphs long.
 FeatureTypeStyle[] getFeatureTypeStyles()
          A UserStyle can contain one or more FeatureTypeStyles which allow the rendering of features of specific types.
 java.lang.String getTitle()
          The Title is a human-readable short description for the style that might be displayed in a GUI pick list.
 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 removeFeatureTypeStyle(FeatureTypeStyle featureTypeStyle)
          Removes a
 void setAbstract(java.lang.String abstract_)
          Sets the Abstract.
 void setDefault(boolean default_)
          sets the
 void setFeatureTypeStyles(FeatureTypeStyle[] featureTypeStyles)
          Sets FeatureTypeStyles
 void setTitle(java.lang.String title)
          Sets the title.
 
Methods inherited from interface org.deegree.graphics.sld.Style
getName, setName
 

Method Detail

getTitle

public java.lang.String getTitle()
The Title is a human-readable short description for the style that might be displayed in a GUI pick list.

Returns:
the title of the User-Style

setTitle

public void setTitle(java.lang.String title)
Sets the title.

Parameters:
title - the title of the User-Style

getAbstract

public java.lang.String getAbstract()
the Abstract is a more exact description that may be a few paragraphs long.

Returns:
the abstract of the User-Style

setAbstract

public void setAbstract(java.lang.String abstract_)
Sets the Abstract.

Parameters:
abstract_ - the abstract of the User-Style

isDefault

public 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. The default value is false.

Returns:
true if the style ist the default style

setDefault

public void setDefault(boolean default_)
sets the

Parameters:
default_ -

getFeatureTypeStyles

public FeatureTypeStyle[] getFeatureTypeStyles()
A UserStyle can contain one or more FeatureTypeStyles which allow the rendering of features of specific types.

The FeatureTypeStyle defines the styling that is to be applied to a single feature type of a layer.

The FeatureTypeStyle element identifies that explicit separation in SLD between the handling of layers and the handling of features of specific feature types. The layer concept is unique to WMS and SLD, but features are used more generally, such as in WFS and GML, so this explicit separation is important.

Returns:
the FeatureTypeStyles of a User-Style

setFeatureTypeStyles

public void setFeatureTypeStyles(FeatureTypeStyle[] featureTypeStyles)
Sets FeatureTypeStyles

Parameters:
featureTypeStyles - the FeatureTypeStyles of a User-Style

addFeatureTypeStyle

public void addFeatureTypeStyle(FeatureTypeStyle featureTypeStyle)
Adds a

Parameters:
featureTypeStyle - a FeatureTypeStyle to add

removeFeatureTypeStyle

public void removeFeatureTypeStyle(FeatureTypeStyle featureTypeStyle)
Removes a

Parameters:
featureTypeStyle - a FeatureTypeStyle to remove