Package com.luciad.wms.server.model
Class ALcdWMSLayerStyle
java.lang.Object
com.luciad.wms.server.model.ALcdWMSLayerStyle
- Direct Known Subclasses:
TLcdWMSLayerStyle
Defines a WMS layer style.
This class is a direct representation of the layer style concept introduced in the OGC WMS specification.
A layer style is identified by a name and represents an available style for a layer.
To describe the style, a number of optional metadata properties are available such as title,
and abstract. A client can find this information in the XML capabilities and use the
style name to request the layer in the corresponding style.
To render the layer with the requested style is the responsibility of the layer factories available in the WMS,
represented by the interface ILcdWMSGXYLayerFactory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringReturns an abstract for this layer style.getLegendURL(int aIndex) Returns theTLcdWMSURLrepresenting a LegendURL at the given index.intReturns the number ofTLcdWMSURLobjects representing LegendURLs.abstract StringgetName()Returns the name of the layer style (required to be not null).Returns theTLcdWMSURLrepresenting a StyleSheetURL.Returns theTLcdWMSURLrepresenting a StyleURL.abstract StringgetTitle()Returns the title of the layer style.
-
Constructor Details
-
ALcdWMSLayerStyle
public ALcdWMSLayerStyle()
-
-
Method Details
-
getName
Returns the name of the layer style (required to be not null).- Returns:
- the name of the layer style (required to be not null).
-
getTitle
Returns the title of the layer style.- Returns:
- the title of the layer style.
-
getAbstract
Returns an abstract for this layer style.- Returns:
- an abstract for this layer style. Value may be null if no abstract is available.
-
getLegendURLCount
public int getLegendURLCount()Returns the number ofTLcdWMSURLobjects representing LegendURLs. By default, 0 is returned.- Returns:
- the number of
TLcdWMSURLobjects representing LegendURLs.
-
getLegendURL
Returns theTLcdWMSURLrepresenting a LegendURL at the given index. By default, no LegendURLs are available and anIndexOutOfBoundsExceptionwill be thrown.- Parameters:
aIndex- the index of theTLcdWMSURLrepresenting a LegendURL.- Returns:
- the
TLcdWMSURLrepresenting a LegendURL at the given index. - Throws:
IndexOutOfBoundsException- if the index value is invalid.
-
getStyleSheetURL
Returns theTLcdWMSURLrepresenting a StyleSheetURL. By default, no StyleSheetURL is available andnullis returned.- Returns:
- the
TLcdWMSURLrepresenting a StyleSheetURL.
-
getStyleURL
Returns theTLcdWMSURLrepresenting a StyleURL. By default, no StyleURL is available andnullis returned.- Returns:
- the
TLcdWMSURLrepresenting a StyleURL.
-