|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Indicates how geographical content should be displayed (we call this a style for simplicity; in the spec it is called a UserStyle (user-defined style)).
The details of this object are taken from the OGC Styled-Layer Descriptor Report (OGC 02-070) version 1.0.0.:
<xsd:element name="UserStyle">
<xsd:annotation>
<xsd:documentation>
A UserStyle allows user-defined styling and is semantically
equivalent to a WMS named style.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="sld:Name" minOccurs="0"/>
<xsd:element ref="sld:Title" minOccurs="0"/>
<xsd:element ref="sld:Abstract" minOccurs="0"/>
<xsd:element ref="sld:IsDefault" minOccurs="0"/>
<xsd:element ref="sld:FeatureTypeStyle" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Method Summary | |
void |
accept(StyleVisitor visitor)
Used to navigate Style information during portrayal. |
void |
addFeatureTypeStyle(FeatureTypeStyle type)
|
java.lang.String |
getAbstract()
Description of this style |
FeatureTypeStyle[] |
getFeatureTypeStyles()
Array of FeatureTypeStyles in portrayal order. |
java.lang.String |
getName()
Style name (machine readable, don't show to users) |
java.lang.String |
getTitle()
|
boolean |
isDefault()
Indicates that this is the default style. |
void |
setAbstract(java.lang.String abstractStr)
|
void |
setDefault(boolean isDefault)
Indicates that this is the default style. |
void |
setFeatureTypeStyles(FeatureTypeStyle[] types)
|
void |
setName(java.lang.String name)
|
void |
setTitle(java.lang.String title)
|
Methods inherited from interface org.geotools.event.GTComponent |
changed, getNote, getParent, removed, setNote |
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getAbstract()
public void setAbstract(java.lang.String abstractStr)
public boolean isDefault()
public void setDefault(boolean isDefault)
Assume this is kept for GeoServer enabling a WMS to track which style is considered the default. May consider providing a clientProperties mechanism similar to Swing JComponent allowing applications to mark up the Style content for custom uses.
isDefault
- public FeatureTypeStyle[] getFeatureTypeStyles()
FeatureTypeStyle entries are rendered in order of appearance in this list.
Note: We are using a Array here to continue with Java 1.4 deployment.
public void setFeatureTypeStyles(FeatureTypeStyle[] types)
public void addFeatureTypeStyle(FeatureTypeStyle type)
public void accept(StyleVisitor visitor)
visitor
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |