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

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

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

Rule.setDescription介绍

[英]Description for this rule.
[中]此规则的说明。

代码示例

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

/**
   *
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
    Rule rule = (Rule) super.parse(instance, node, value);

    // &lt;xsd:element minOccurs="0" ref="se:Description"/&gt;
    if (node.hasChild("Description")) {
      rule.setDescription((Description) node.getChildValue("Description"));
    }

    return rule;
  }
}

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

copy.setDescription(descCopy);
copy.setLegendGraphic(legendCopy);
copy.setName(rule.getName());

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

/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated modifiable
 */
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  Rule rule = (Rule) super.parse(instance, node, value);
  
  //&lt;xsd:element minOccurs="0" ref="se:Description"/&gt;
  if (node.hasChild("Description")) {
    rule.setDescription((Description) node.getChildValue("Description"));
  }
  
  return rule;
}

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

@Override
  public void visit(Rule rule) {
    super.visit(rule);
    Rule copy = (Rule) pages.peek();
    Description description =
        new DescriptionImpl(
            new SimpleInternationalString(targetLabel),
            copy.getDescription() != null
                ? copy.getDescription().getAbstract()
                : null);
    copy.setDescription(description);
  }
}

代码示例来源:origin: robward-scisys/sldeditor

copy.setDescription(descCopy);
copy.setLegendGraphic(legendCopy);
copy.setName(rule.getName());

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

copy.setDescription(descCopy);
copy.setLegendGraphic(legendCopy);
copy.setName(rule.getName());

相关文章