|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.graphics.sld.AbstractStyle org.deegree.graphics.sld.UserStyle
public class UserStyle
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.
Field Summary |
---|
Fields inherited from class org.deegree.graphics.sld.AbstractStyle |
---|
name |
Constructor Summary | |
---|---|
UserStyle(java.lang.String name,
java.lang.String title,
java.lang.String abstract_,
boolean default_,
FeatureTypeStyle[] featureTypeStyles)
constructor initializing the class with the |
Method Summary | |
---|---|
void |
addFeatureTypeStyle(FeatureTypeStyle featureTypeStyle)
Adds a <FeatureTypeStyle> |
java.lang.String |
exportAsXML()
exports the content of the UserStyle as XML formated String |
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 <FeatureTypeStyle> |
void |
setAbstract(java.lang.String abstract_)
sets the <Abstract> |
void |
setDefault(boolean default_)
sets the <Default> |
void |
setFeatureTypeStyles(FeatureTypeStyle[] featureTypeStyles)
sets the <FeatureTypeStyle> |
void |
setTitle(java.lang.String title)
sets the <Title> |
Methods inherited from class org.deegree.graphics.sld.AbstractStyle |
---|
getName, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
UserStyle(java.lang.String name, java.lang.String title, java.lang.String abstract_, boolean default_, FeatureTypeStyle[] featureTypeStyles)
name
- title
- abstract_
- default_
- featureTypeStyles
- Method Detail |
---|
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- the title of the User-AbstractStylepublic java.lang.String getAbstract()
public void setAbstract(java.lang.String abstract_)
abstract_
- the abstract of the User-AbstractStylepublic boolean isDefault()
public void setDefault(boolean default_)
default_
- public FeatureTypeStyle[] getFeatureTypeStyles()
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.
public void setFeatureTypeStyles(FeatureTypeStyle[] featureTypeStyles)
featureTypeStyles
- the FeatureTypeStyles of a User-AbstractStylepublic void addFeatureTypeStyle(FeatureTypeStyle featureTypeStyle)
featureTypeStyle
- a FeatureTypeStyle to addpublic void removeFeatureTypeStyle(FeatureTypeStyle featureTypeStyle)
featureTypeStyle
- public java.lang.String exportAsXML()
exportAsXML
in interface Marshallable
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org