org.deegree.graphics.sld
Interface Layer

All Known Subinterfaces:
NamedLayer, UserLayer
All Known Implementing Classes:
Layer_Impl, NamedLayer_Impl, UserLayer_Impl

public interface Layer

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

Version:
$Revision: 1.4 $ $Date: 2004/01/27 17:07:59 $
Author:
Andreas Poth

Method Summary
 void addStyle(Style style)
          Adds a style to the Layer.
 LayerFeatureConstraints getLayerFeatureConstraints()
          The LayerFeatureConstraints element is optional in a NamedLayer and allows the user to specify constraints on what features of what feature types are to be selected by the named-layer reference.
 java.lang.String getName()
          The Name element identifies the well-known name of the layer being referenced, and is required.
 Style[] getStyles()
          Returns the styles associated to the Layer.
 void removeStyle(Style style)
          Removes a style from the Layer.
 void setLayerFeatureConstraints(LayerFeatureConstraints layerFeatureConstraints)
          Sets the LayerFeatureConstraints for the Layer.
 void setName(java.lang.String name)
          sets the
 void setStyles(Style[] styles)
          Adds styles to the Layer.
 

Method Detail

getName

public java.lang.String getName()
The Name element identifies the well-known name of the layer being referenced, and is required. All possible well-known names are usually identified in the capabilities document for a server.

Returns:
the name of the layer

setName

public void setName(java.lang.String name)
sets the

Parameters:
name - the name of the layer

getLayerFeatureConstraints

public LayerFeatureConstraints getLayerFeatureConstraints()
The LayerFeatureConstraints element is optional in a NamedLayer and allows the user to specify constraints on what features of what feature types are to be selected by the named-layer reference. It is essentially a filter that allows the selection of fewer features than are present in the named layer.

Returns:
the LayerFeatureConstraints

setLayerFeatureConstraints

public void setLayerFeatureConstraints(LayerFeatureConstraints layerFeatureConstraints)
Sets the LayerFeatureConstraints for the Layer.

Parameters:
layerFeatureConstraints - the LayerFeatureConstraints

getStyles

public Style[] getStyles()
Returns the styles associated to the Layer. This may be UserStyles or NamedStyles

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.

Returns:
the styles of the layer als ArrayList

setStyles

public void setStyles(Style[] styles)
Adds styles to the Layer.

Parameters:
styles - the styles for the layer as Array

addStyle

public void addStyle(Style style)
Adds a style to the Layer.

Parameters:
style - a style to add

removeStyle

public void removeStyle(Style style)
Removes a style from the Layer.

Parameters:
style - a style to remove