Examples of FeatureTypeStyle


Examples of org.geotools.styling.FeatureTypeStyle

       */
      final List<Rule> ruleList = new ArrayList<Rule>();
 
      // get applicable rules at the current scale
      for (int i = 0; i < ftStyles.length; i++) {
          FeatureTypeStyle fts = ftStyles[i];
          Rule[] rules = fts.getRules();
 
          for (int j = 0; j < rules.length; j++) {
              Rule r = rules[j];
 
              if (isWithInScale(r, scaleDenominator)) {
View Full Code Here

Examples of org.opengis.style.FeatureTypeStyle

     * Creates a deep copy clone of the FeatureTypeStyle.
     *
     * @see org.geotools.styling.FeatureTypeStyle#clone()
     */
    public Object clone() {
        FeatureTypeStyle clone;

        try {
            clone = (FeatureTypeStyle) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new AssertionError(e); // this should never happen.
        }

        final List<Rule> rulesCopy = new ArrayList<Rule>();
       
        for(Rule rl : rules){
            rulesCopy.add( (Rule) ((Cloneable) rl).clone() );
        }
       
        clone.rules().clear();
        ((List<Rule>)clone.rules()).addAll(rulesCopy);
        clone.featureTypeNames().clear();
        clone.featureTypeNames().addAll(featureTypeNames);
        clone.semanticTypeIdentifiers().clear();
        clone.semanticTypeIdentifiers().addAll(semantics);
       
        return clone;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.