本文整理了Java中org.geotools.styling.Rule.setDescription
方法的一些代码示例,展示了Rule.setDescription
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rule.setDescription
方法的具体详情如下:
包路径:org.geotools.styling.Rule
类名称: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);
// <xsd:element minOccurs="0" ref="se:Description"/>
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);
//<xsd:element minOccurs="0" ref="se:Description"/>
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());
内容来源于网络,如有侵权,请联系作者删除!