Class FeatureTypeStyleWrapper
- java.lang.Object
-
- org.hortonmachine.gears.utils.style.FeatureTypeStyleWrapper
-
public class FeatureTypeStyleWrapper extends Object
A wrapper for theFeatureTypeStyleobject to ease gui use.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Constructor Summary
Constructors Constructor Description FeatureTypeStyleWrapper(org.geotools.styling.FeatureTypeStyle featureTypeStyle, StyleWrapper parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRule(RuleWrapper addRule)Add aRuleWrapperto the list.voidclear()Clear all theRules andRuleWrappers.org.geotools.styling.FeatureTypeStylegetFeatureTypeStyle()StringgetName()StyleWrappergetParent()List<RuleWrapper>getRulesWrapperList()Getter for the list ofRuleWrappers.voidremoveRule(RuleWrapper remRule)Remove aRuleWrapperfrom the list.voidsetName(String name)voidswap(int src, int dest)Swap two elements of the list.StringtoString()
-
-
-
Constructor Detail
-
FeatureTypeStyleWrapper
public FeatureTypeStyleWrapper(org.geotools.styling.FeatureTypeStyle featureTypeStyle, StyleWrapper parent)
-
-
Method Detail
-
getParent
public StyleWrapper getParent()
-
getFeatureTypeStyle
public org.geotools.styling.FeatureTypeStyle getFeatureTypeStyle()
-
getName
public String getName()
-
setName
public void setName(String name)
-
getRulesWrapperList
public List<RuleWrapper> getRulesWrapperList()
Getter for the list ofRuleWrappers.- Returns:
- an unmodifiable list of
RuleWrapper. To add or remove items use#addRule(Rule, Class)andremoveRule(RuleWrapper).
-
removeRule
public void removeRule(RuleWrapper remRule)
Remove aRuleWrapperfrom the list.- Parameters:
remRule- theRuleto remove.
-
addRule
public void addRule(RuleWrapper addRule)
Add aRuleWrapperto the list.- Parameters:
addRule- theRuleto add.
-
clear
public void clear()
Clear all theRules andRuleWrappers.
-
swap
public void swap(int src, int dest)Swap two elements of the list.- Parameters:
src- the position first element.dest- the position second element.
-
-