org.geotools.styling.Rule.getAbstract()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(112)

本文整理了Java中org.geotools.styling.Rule.getAbstract方法的一些代码示例,展示了Rule.getAbstract的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rule.getAbstract方法的具体详情如下:
包路径:org.geotools.styling.Rule
类名称:Rule
方法名:getAbstract

Rule.getAbstract介绍

[英]Gets the abstract text for the rule.
[中]获取规则的抽象文本。

代码示例

代码示例来源:origin: geotools/geotools

public RuleBuilder reset(Rule rule) {
  if (rule == null) {
    return unset();
  }
  name = rule.getName();
  title = rule.getTitle();
  ruleAbstract = rule.getAbstract();
  minScaleDenominator = rule.getMinScaleDenominator();
  maxScaleDenominator = rule.getMaxScaleDenominator();
  filter = rule.getFilter();
  elseFilter = rule.isElseFilter();
  symbolizers.clear();
  symbolizers.addAll(rule.symbolizers()); // TODO: unpack into builders in order to "copy"
  symbolizerBuilder = null;
  unset = false;
  legend.reset(rule.getLegend());
  return this;
}

代码示例来源:origin: geotools/geotools

put("name", rule.getName());
put("title", rule.getTitle());
put("abstract", rule.getAbstract());
if (rule.getLegend() != null) {
  Graphic graphic = null;

代码示例来源:origin: org.geotools/gt2-main

copy.setAbstract(rule.getAbstract());
copy.setFilter(filterCopy);
copy.setIsElseFilter(rule.hasElseFilter());

代码示例来源:origin: org.geotools/gt2-main

copy.setAbstract(rule.getAbstract());
copy.setFilter(filterCopy);
copy.setIsElseFilter(rule.hasElseFilter());

代码示例来源:origin: org.geotools/gt2-main

if (rule.getName() != null) element("Name", rule.getName());
if (rule.getTitle() != null) element("Title", rule.getTitle());
if (rule.getAbstract() != null) element("Abstract", rule.getAbstract());

代码示例来源:origin: org.geotools/gt-ysld

@Override
protected void encode(Rule rule) {
  put("name", rule.getName());
  put("title", rule.getTitle());
  put("abstract", rule.getAbstract());
  if (rule.getFilter() != null && rule.getFilter() != Filter.INCLUDE) {
    put(
        "filter",
        String.format("${%s}", escapeForEmbededCQL(ECQL.toCQL(rule.getFilter()))));
  }
  if (rule.isElseFilter()) {
    put("else", true);
  }
  Tuple t =
      Tuple.of(
          toStringOrNull(rule.getMinScaleDenominator(), "min"),
          toStringOrNull(rule.getMaxScaleDenominator(), "max"));
  if (!t.isNull()) {
    put("scale", t);
  }
  // legend:?
  put("symbolizers", new SymbolizersEncoder(rule));
}

相关文章