| org.geotools.styling.FeatureTypeStyle
All known Subclasses: org.geotools.styling.FeatureTypeStyleImpl,
FeatureTypeStyle | public interface FeatureTypeStyle extends GTComponent(Code) | | How to style a feature type. This is introduced as a convenient package
that can be used independently for feature types, for example in
GML Default Styling. The "layer" concept is discarded inside of this
element and all processing is relative to feature types.
The FeatureTypeName is allowed to be optional, but only one feature
type may be in context and it must match the syntax and semantics of all
attribute references inside of the FeatureTypeStyle.
The details of this object are taken from the
OGC Styled-Layer Descriptor Report (OGC 02-070) version 1.0.0.:
<xsd:element name="FeatureTypeStyle">
<xsd:annotation>
<xsd:documentation>
A FeatureTypeStyle contains styling information specific to one
feature type. This is the SLD level that separates the 'layer'
handling from the 'feature' handling.
</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:FeatureTypeName" minOccurs="0"/>
<xsd:element ref="sld:SemanticTypeIdentifier" minOccurs="0"
maxOccurs="unbounded"/>
<xsd:element ref="sld:Rule" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
version: $Id: FeatureTypeStyle.java 22294 2006-10-20 00:55:40Z desruisseaux $ author: James Macgill, CCG |
Method Summary | |
void | accept(StyleVisitor visitor) | void | addRule(Rule rule) | public String | getAbstract() | String | getFeatureTypeName() Only features with the type name returned by this method should
be styled by this feature type styler. | public String | getName() | Rule[] | getRules() Rules govern the appearance of any given feature to be styled by
this styler. | String[] | getSemanticTypeIdentifiers() The SemanticTypeIdentifiers is experimental and is intended to be used
to identify, using a community-controlled name(s), what the style is
suitable to be used for.
For example, a single style may be suitable to use with many
different feature types. | public String | getTitle() | List | rules() Rules govern the appearance of any given feature to be styled by
this styler. | void | setAbstract(String abstractStr) | void | setFeatureTypeName(String name) Sets the type name of the features that this styler should be
applied to. | void | setName(String name) | void | setRules(Rule[] rules) Rules govern the appearance of any given feature to be styled by
this styler. | void | setSemanticTypeIdentifiers(String[] types) The SemanticTypeIdentifiers is experimental and is intended to be used
to identify, using a community-controlled name(s), what the style is
suitable to be used for.
For example, a single style may be suitable to use with many
different feature types. | void | setTitle(String title) |
getFeatureTypeName | String getFeatureTypeName()(Code) | | Only features with the type name returned by this method should
be styled by this feature type styler.
The name of types that this styler applies to |
getRules | Rule[] getRules()(Code) | | Rules govern the appearance of any given feature to be styled by
this styler. Each rule contains conditions based on scale and
feature attribute values. In addition, rules contain the symbolizers
which should be applied when the rule holds true.
version: SLD 1.0 version: SLD 1.0.20 TODO: GeoAPI getRules(): List The full set of rules contained in this styler. |
getSemanticTypeIdentifiers | String[] getSemanticTypeIdentifiers()(Code) | | The SemanticTypeIdentifiers is experimental and is intended to be used
to identify, using a community-controlled name(s), what the style is
suitable to be used for.
For example, a single style may be suitable to use with many
different feature types. The syntax of the SemanticTypeIdentifiers
string is undefined, but the strings "generic:line_string",
"generic:polygon", "generic:point", "generic:text",
"generic:raster", and "generic:any" are reserved to indicate
that a FeatureTypeStyle may be used with any feature type
with the corresponding default geometry type (i.e., no feature
properties are referenced in the feature type style).
An array of strings representing systematic types whichcould be styled by this instance. |
rules | List rules()(Code) | | Rules govern the appearance of any given feature to be styled by
this styler.
This is *the* list being used to mange the rules!
since: GeoTools 2.2.M3, GeoAPI 2.0 |
setFeatureTypeName | void setFeatureTypeName(String name)(Code) | | Sets the type name of the features that this styler should be
applied to.
Parameters: name - The TypeName of the features to be styled by this instance. |
setRules | void setRules(Rule[] rules)(Code) | | Rules govern the appearance of any given feature to be styled by
this styler. Each rule contains conditions based on scale and
feature attribute values. In addition, rules contain the symbolizers
which should be applied when the rule holds true.
Parameters: rules - The set of rules to be set for this styler. |
setSemanticTypeIdentifiers | void setSemanticTypeIdentifiers(String[] types)(Code) | | The SemanticTypeIdentifiers is experimental and is intended to be used
to identify, using a community-controlled name(s), what the style is
suitable to be used for.
For example, a single style may be suitable to use with many
different feature types. The syntax of the SemanticTypeIdentifiers
string is undefined, but the strings "generic:line_string",
"generic:polygon", "generic:point", "generic:text",
"generic:raster", and "generic:any" are reserved to indicate
that a FeatureTypeStyle may be used with any feature type
with the corresponding default geometry type (i.e., no feature
properties are referenced in the feature type style).
Parameters: types - An array of strings representing systematic types whichcould be styled by this instance. |
|
|