public class FeatureTypeStyleImpl extends Object implements FeatureTypeStyle, Cloneable
FeatureTypeStyle.RenderingSelectionOptions| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_EVALUATION_MODE
This option influences how multiple rules matching the same feature are evaluated
|
protected Map<String,String> |
options |
static String |
VALUE_EVALUATION_MODE_ALL
The standard behavior, all the matching rules are executed
|
static String |
VALUE_EVALUATION_MODE_FIRST
Only the first matching rule gets executed, all the others are skipped
|
COMPOSITE, COMPOSITE_BASE, SORT_BY, SORT_BY_GROUP, VENDOR_OPTION_INCLUSION| Modifier | Constructor and Description |
|---|---|
protected |
FeatureTypeStyleImpl()
Creates a new instance of FeatureTypeStyleImpl
|
|
FeatureTypeStyleImpl(FeatureTypeStyle fts) |
protected |
FeatureTypeStyleImpl(List<Rule> arules) |
protected |
FeatureTypeStyleImpl(Rule... rules)
Creates a new instance of FeatureTypeStyleImpl
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(StyleVisitor visitor) |
Object |
accept(StyleVisitor visitor,
Object data)
calls the visit method of a StyleVisitor
|
Object |
clone()
Creates a deep copy clone of the FeatureTypeStyle.
|
boolean |
equals(Object oth)
Compares this FeatureTypeStyleImpl with another.
|
Set<Name> |
featureTypeNames()
Returns the names of the feature type that this style is meant to act upon.
|
Description |
getDescription()
Description for this style.
|
Id |
getFeatureInstanceIDs()
Returns a collection of Object identifying features object.
|
String |
getName()
Returns a name for this style.
|
OnLineResource |
getOnlineResource()
It is common to have a style coming from a external xml file, this method provide a way to
get the original source if there is one.
|
Map<String,String> |
getOptions()
Map of vendor options for the symbolizer.
|
Expression |
getTransformation()
The eventual transformation to be applied before rendering the data (should be an expression
taking a feature collection or a grid coverage as the evaluation context and returns a
feature collection or a grid coverage as an output)
|
int |
hashCode()
Overrides hashCode.
|
boolean |
hasOption(String key)
Determines if a vendor option with the specific key has been set on this symbolizer.
|
List<Rule> |
rules()
Rules govern the appearance of any given feature to be styled by this styler.
|
Set<SemanticType> |
semanticTypeIdentifiers()
Returns a collection that identifies the more general "type" of geometry that this style is
meant to act upon.
|
void |
setName(String name) |
void |
setOnlineResource(OnLineResource online)
It is common to have a style coming from a external xml file, this method provide a way to
get the original source if there is one.
|
void |
setTransformation(Expression transformation)
Sets the eventual transformation to be applied before rendering the data (should be an
expression taking a feature collection or a grid coverage as an input and returns a feature
collection or a grid coverage as an output)
|
String |
toString() |
public static String KEY_EVALUATION_MODE
public static String VALUE_EVALUATION_MODE_ALL
public static String VALUE_EVALUATION_MODE_FIRST
protected FeatureTypeStyleImpl(Rule... rules)
protected FeatureTypeStyleImpl()
public FeatureTypeStyleImpl(FeatureTypeStyle fts)
public List<Rule> rules()
FeatureTypeStyleThis is *the* list being used to manage the rules!
rules in interface FeatureTypeStylepublic Set<SemanticType> semanticTypeIdentifiers()
FeatureTypeStyle
generic:point
generic:line
generic:polygon
generic:text
generic:raster
generic:any
semanticTypeIdentifiers in interface FeatureTypeStylepublic Set<Name> featureTypeNames()
FeatureTypeStyleIn OGC Symbology Encoding define this method to return a single String, and ISO 19117 use a Collection of String. We've choosen ISO because it is more logic that a featureTypeStyle can be applied to multiple featuretypes and not limited to a single one.
featureTypeNames in interface FeatureTypeStylepublic Id getFeatureInstanceIDs()
FeatureTypeStyleISO 19117 extends FeatureTypeStyle be providing this method. This method enable the possibility to use a feature type style on a given list of features only, which is not possible in OGC SE.
getFeatureInstanceIDs in interface FeatureTypeStylepublic Description getDescription()
FeatureTypeStylegetDescription in interface FeatureTypeStylepublic String getName()
FeatureTypeStylegetName in interface FeatureTypeStylepublic void setName(String name)
public Object accept(StyleVisitor visitor, Object data)
FeatureTypeStyleaccept in interface FeatureTypeStylevisitor - the style visitorpublic void accept(StyleVisitor visitor)
public Object clone()
public int hashCode()
public boolean equals(Object oth)
Two FeatureTypeStyles are equal if they contain equal properties and an equal list of Rules.
public void setOnlineResource(OnLineResource online)
FeatureTypeStyleonline - location external file defining this style, or null if not availablepublic OnLineResource getOnlineResource()
FeatureTypeStylegetOnlineResource in interface FeatureTypeStylepublic Expression getTransformation()
FeatureTypeStylegetTransformation in interface FeatureTypeStylepublic void setTransformation(Expression transformation)
FeatureTypeStylepublic boolean hasOption(String key)
FeatureTypeStylepublic Map<String,String> getOptions()
FeatureTypeStyleClient code looking for the existence of a single option should use FeatureTypeStyle.hasOption(String)
Copyright © 1996–2021 Geotools. All rights reserved.