|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFeatureTypeStyleImpl
public class FeatureTypeStyleImpl
Implementation of Feature Type Style; care is taken to ensure everything is mutable.
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
void |
accept(StyleVisitor visitor)
|
Object |
accept(StyleVisitor visitor,
Object data)
calls the visit method of a StyleVisitor |
void |
addRule(Rule rule)
Deprecated. |
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. |
String |
getAbstract()
Deprecated. |
Description |
getDescription()
Description for this style. |
Id |
getFeatureInstanceIDs()
Returns a collection of Object identifying features object. |
String |
getFeatureTypeName()
Deprecated. |
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. |
Rule[] |
getRules()
Deprecated. |
String[] |
getSemanticTypeIdentifiers()
Deprecated. |
String |
getTitle()
Deprecated. |
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. |
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 |
setAbstract(String abstractStr)
Deprecated. |
void |
setFeatureTypeName(String name)
Deprecated. |
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 |
setRules(Rule[] newRules)
Deprecated. |
void |
setSemanticTypeIdentifiers(String[] types)
Deprecated. |
void |
setTitle(String title)
Deprecated. |
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()
|
Methods inherited from class Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected FeatureTypeStyleImpl(Rule[] rules)
rules
- DOCUMENT ME!protected FeatureTypeStyleImpl(List<Rule> arules)
protected FeatureTypeStyleImpl()
public FeatureTypeStyleImpl(FeatureTypeStyle fts)
Method Detail |
---|
public List<Rule> rules()
FeatureTypeStyle
This is *the* list being used to manage the rules!
rules
in interface FeatureTypeStyle
@Deprecated public Rule[] getRules()
FeatureTypeStyle
@Deprecated public void setRules(Rule[] newRules)
FeatureTypeStyle
newRules
- The set of rules to be set for this styler.@Deprecated public void addRule(Rule rule)
public Set<SemanticType> semanticTypeIdentifiers()
FeatureTypeStyle
generic:point
generic:line
generic:polygon
generic:text
generic:raster
generic:any
semanticTypeIdentifiers
in interface FeatureTypeStyle
@Deprecated public String[] getSemanticTypeIdentifiers()
FeatureTypeStyle
This method will be replaced by a live set semanticIdentifiers() in 2.6.x
@Deprecated public void setSemanticTypeIdentifiers(String[] types)
FeatureTypeStyle
types
- An array of strings representing systematic types which
could be styled by this instance.public Set<Name> featureTypeNames()
FeatureTypeStyle
Returns the names of the feature type that this style is meant to act upon.
In 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 FeatureTypeStyle
@Deprecated public String getFeatureTypeName()
FeatureTypeStyle
@Deprecated public void setFeatureTypeName(String name)
FeatureTypeStyle
name
- The TypeName of the features to be styled by this instance.public Id getFeatureInstanceIDs()
FeatureTypeStyle
ISO 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 FeatureTypeStyle
public Description getDescription()
FeatureTypeStyle
getDescription
in interface FeatureTypeStyle
public String getName()
FeatureTypeStyle
getName
in interface FeatureTypeStyle
public void setName(String name)
@Deprecated public String getAbstract()
@Deprecated public void setAbstract(String abstractStr)
@Deprecated public String getTitle()
@Deprecated public void setTitle(String title)
public Object accept(StyleVisitor visitor, Object data)
FeatureTypeStyle
accept
in interface FeatureTypeStyle
visitor
- the style visitorpublic void accept(StyleVisitor visitor)
public Object clone()
clone
in class Object
org.geotools.styling.FeatureTypeStyle#clone()
public int hashCode()
hashCode
in class Object
public boolean equals(Object oth)
Two FeatureTypeStyles are equal if they contain equal properties and an equal list of Rules.
equals
in class Object
oth
- The other FeatureTypeStyleImpl to compare with.
public String toString()
toString
in class Object
public void setOnlineResource(OnLineResource online)
FeatureTypeStyle
online
- location external file defining this style, or null if not availablepublic OnLineResource getOnlineResource()
FeatureTypeStyle
getOnlineResource
in interface FeatureTypeStyle
public Expression getTransformation()
FeatureTypeStyle
public void setTransformation(Expression transformation)
FeatureTypeStyle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |