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

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

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

Rule.getTitle介绍

[英]Gets the title.
[中]获取标题。

代码示例

代码示例来源: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: org.geotools/gt-widgets-swing-pending

@Override
public Object getValue() {
  return ((Rule) userObject).getTitle();
}

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

@Override
protected void encode(Rule rule) {
  put("name", rule.getName());
  put("title", rule.getTitle());
  put("abstract", rule.getAbstract());
  if (rule.getLegend() != null) {

代码示例来源:origin: org.geoserver/wms

labels[i] = rule.getTitle();
if (labels[i] == null) labels[i] = rule.getName();
if (labels[i] == null) labels[i] = "";

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

copy.setMaxScaleDenominator(rule.getMaxScaleDenominator());
copy.setName(rule.getName());
copy.setTitle(rule.getTitle());
copy.setSymbolizers(symbolizerCopy);

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

copy.setMaxScaleDenominator(rule.getMaxScaleDenominator());
copy.setName(rule.getName());
copy.setTitle(rule.getTitle());
copy.setSymbolizers(symbolizerCopy);

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

public void visit(Rule rule) {
  start("Rule");
  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));
}

相关文章