public void applyTo(Rule r) { r.setMaxScaleDenominator(maxDenom); r.setMinScaleDenominator(minDenom); }
/** * create a simple styling rule, see the SLD Spec for more details of scaleDenominators * * @param symbolizers - an array of symbolizers to use * @param minScaleDenominator - the minimim scale to draw the feature at * @param maxScaleDenominator - the maximum scale to draw the feature at * @return the new rule */ public Rule createRule( Symbolizer[] symbolizers, double minScaleDenominator, double maxScaleDenominator) { Rule r = sf.createRule(); r.setSymbolizers(symbolizers); if (!Double.isNaN(maxScaleDenominator)) { r.setMaxScaleDenominator(maxScaleDenominator); } else { r.setMaxScaleDenominator(Double.POSITIVE_INFINITY); } if (!Double.isNaN(minScaleDenominator)) { r.setMinScaleDenominator(minScaleDenominator); } else { r.setMinScaleDenominator(0.0); } return r; }
rule.setMinScaleDenominator(Double.parseDouble(getFirstChildValue(child))); } else if (childName.equalsIgnoreCase("MaxScaleDenominator")) { rule.setMaxScaleDenominator(Double.parseDouble(getFirstChildValue(child))); } else if (childName.equalsIgnoreCase("Filter")) { Filter filter = parseFilter(child);
public Rule build() { if (unset) { return null; } if (symbolizerBuilder == null && symbolizers.size() == 0) { symbolizerBuilder = new PointSymbolizerBuilder(); } if (symbolizerBuilder != null) { symbolizers.add(symbolizerBuilder.build()); } Rule rule = sf.createRule(); rule.setName(name); // TODO: rule's description cannot be set rule.setTitle(title); rule.setAbstract(ruleAbstract); rule.setMinScaleDenominator(minScaleDenominator); rule.setMaxScaleDenominator(maxScaleDenominator); rule.setFilter(filter); rule.setElseFilter(elseFilter); rule.symbolizers().addAll(symbolizers); GraphicLegend gl = legend.build(); if (gl != null) { rule.setLegend(gl); } if (parent == null) { reset(); } return rule; }
copy.setFilter(filterCopy); copy.setElseFilter(rule.isElseFilter()); copy.setMaxScaleDenominator(rule.getMaxScaleDenominator()); copy.setMinScaleDenominator(rule.getMinScaleDenominator());
rule.setMaxScaleDenominator( ((Double) node.getChildValue("MaxScaleDenominator")).doubleValue());
private void gui_scaleStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_gui_scaleStateChanged if(rule != null){ rule.setMaxScaleDenominator(model.getNumber().doubleValue()); } }//GEN-LAST:event_gui_scaleStateChanged
public void applyTo(Rule r) { r.setMaxScaleDenominator(maxDenom); r.setMinScaleDenominator(minDenom); }
/** * create a simple styling rule, see the SLD Spec for more details of scaleDenominators * * @param symbolizers - an array of symbolizers to use * @param minScaleDenominator - the minimim scale to draw the feature at * @param maxScaleDenominator - the maximum scale to draw the feature at * * @return the new rule */ public Rule createRule( Symbolizer[] symbolizers, double minScaleDenominator, double maxScaleDenominator) { Rule r = sf.createRule(); r.setSymbolizers(symbolizers); if (!Double.isNaN(maxScaleDenominator)) { r.setMaxScaleDenominator(maxScaleDenominator); } else { r.setMaxScaleDenominator(Double.MAX_VALUE); } if (!Double.isNaN(minScaleDenominator)) { r.setMinScaleDenominator(minScaleDenominator); } else { r.setMinScaleDenominator(0.0); } return r; }
/** * create a simple styling rule, see the SLD Spec for more details of scaleDenominators * * @param symbolizers - an array of symbolizers to use * @param minScaleDenominator - the minimim scale to draw the feature at * @param maxScaleDenominator - the maximum scale to draw the feature at * * @return the new rule */ public Rule createRule( Symbolizer[] symbolizers, double minScaleDenominator, double maxScaleDenominator) { Rule r = sf.createRule(); r.setSymbolizers(symbolizers); if (!Double.isNaN(maxScaleDenominator)) { r.setMaxScaleDenominator(maxScaleDenominator); } else { r.setMaxScaleDenominator(Double.POSITIVE_INFINITY); } if (!Double.isNaN(minScaleDenominator)) { r.setMinScaleDenominator(minScaleDenominator); } else { r.setMinScaleDenominator(0.0); } return r; }
rule.setMaxScaleDenominator(Double.parseDouble(child .getFirstChild().getNodeValue()));
rule.setMaxScaleDenominator(maxScaleDenominator);
.parseDouble(getFirstChildValue(child))); } else if (childName.equalsIgnoreCase("MaxScaleDenominator")) { rule.setMaxScaleDenominator(Double .parseDouble(getFirstChildValue(child))); } else if (childName.equalsIgnoreCase("Filter")) {
rule.setMaxScaleDenominator(maxScale); maximumScaleUpdated = false; if (currentFule != null) { currentFule.setMinScaleDenominator(minScale); currentFule.setMaxScaleDenominator(maxScale); refreshUI = true;
style.featureTypeStyles().get(0).rules().get(0).setMaxScaleDenominator(1000);
copy.setFilter(filterCopy); copy.setElseFilter(rule.isElseFilter()); copy.setMaxScaleDenominator(rule.getMaxScaleDenominator()); copy.setMinScaleDenominator(rule.getMinScaleDenominator());
copy.setLegendGraphic(legendGraphicCopy); copy.setMinScaleDenominator(rule.getMinScaleDenominator()); copy.setMaxScaleDenominator(rule.getMaxScaleDenominator()); copy.setName(rule.getName()); copy.setTitle(rule.getTitle());
rule.setMaxScaleDenominator(((Double) node.getChildValue("MaxScaleDenominator")) .doubleValue());
copy.setLegendGraphic(legendGraphicCopy); copy.setMinScaleDenominator(rule.getMinScaleDenominator()); copy.setMaxScaleDenominator(rule.getMaxScaleDenominator()); copy.setName(rule.getName()); copy.setTitle(rule.getTitle());
rule.setMaxScaleDenominator(((Double) node.getChildValue("MaxScaleDenominator")) .doubleValue());