本文整理了Java中org.geotools.styling.Rule.setTitle
方法的一些代码示例,展示了Rule.setTitle
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rule.setTitle
方法的具体详情如下:
包路径:org.geotools.styling.Rule
类名称:Rule
方法名:setTitle
[英]Sets the title.
[中]设置标题。
代码示例来源:origin: geotools/geotools
rule.setTitle(title);
rule.setName(getRuleName(i + 1));
代码示例来源:origin: geotools/geotools
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;
}
代码示例来源:origin: org.geotools/gt-widgets-swing-pending
@Override
public void setValue(Object obj) {
((Rule) userObject).setTitle(obj.toString());
}
}
代码示例来源:origin: geotools/geotools
rule.setTitle(r.str("title"));
rule.setTitle(r.str("title"));
rule.setAbstract(r.str("abstract"));
context.push(
代码示例来源:origin: geotools/geotools
Rule elseRule = sb.createRule(symb);
elseRule.setIsElseFilter(true);
elseRule.setTitle("Else");
elseRule.setName("else");
fts.addRule(elseRule);
代码示例来源:origin: geotools/geotools
rule.setTitle(title);
rule.setName(getRuleName(i + 1));
代码示例来源:origin: org.geotools/gt2-main
rule.setTitle(child.getFirstChild().getNodeValue());
代码示例来源:origin: org.geoserver.community/gs-sldservice
r.setTitle(szTitle);
r.setFilter(f);
list.add(r);
代码示例来源:origin: locationtech/geowave
private static FeatureTypeStyle getDirectRasterStyle(
final String geometryPropertyName,
final Expression transformation) {
final StyleFactory styleFactory = CommonFactoryFinder.getStyleFactory();
final FeatureTypeStyle style = styleFactory.createFeatureTypeStyle();
final Rule rule = styleFactory.createRule();
rule.setName("distributed render - direct raster");
rule.setTitle("Distributed Render - Direct Raster");
final RasterSymbolizer symbolizer = styleFactory.createRasterSymbolizer();
symbolizer.setGeometryPropertyName(geometryPropertyName);
rule.symbolizers().add(symbolizer);
style.rules().add(rule);
style.setTransformation(transformation);
return style;
}
}
代码示例来源:origin: org.geoserver.community/gs-sldservice
if (groups.getMin(i).equals(groups.getMax(i))) {
f = ff.equals(att, ff.literal(groups.getMin(i)));
r.setTitle(ff.literal(groups.getMin(i)).toString());
r.setFilter(f);
list.add(r);
: ff.greater(att, ff.literal(groups.getMin(i))),
ff.lessOrEqual(att, ff.literal(groups.getMax(i))));
r.setTitle(
" > "
+ ff.literal(groups.getMin(i))
代码示例来源:origin: org.geoserver.community/gs-sldservice
r.setTitle(" <= " + ff.literal(groups.getMax(0)));
list.add(r);
for (int i = 1; i < groups.getSize() - 1; i++) {
if (groups.getMin(i).equals(groups.getMax(i))) {
f = ff.equals(att, ff.literal(groups.getMax(i)));
r.setTitle(ff.literal(groups.getMin(i)).toString());
r.setFilter(f);
list.add(r);
ff.greater(att, ff.literal(groups.getMin(i))),
ff.lessOrEqual(att, ff.literal(groups.getMax(i))));
r.setTitle(
" > "
+ ff.literal(groups.getMin(i))
r.setTitle(" > " + ff.literal(groups.getMin(groups.getSize() - 1)));
list.add(r);
return list;
代码示例来源:origin: org.geotools/gt-ysld
rule.setTitle(r.str("title"));
rule.setTitle(r.str("title"));
rule.setAbstract(r.str("abstract"));
代码示例来源:origin: org.geotools/gt2-main
copy.setMaxScaleDenominator(rule.getMaxScaleDenominator());
copy.setName(rule.getName());
copy.setTitle(rule.getTitle());
copy.setSymbolizers(symbolizerCopy);
代码示例来源:origin: org.geotools.xsd/gt-sld
rule.setTitle((String) node.getChildValue("Title"));
代码示例来源:origin: org.geotools/gt2-main
copy.setMaxScaleDenominator(rule.getMaxScaleDenominator());
copy.setName(rule.getName());
copy.setTitle(rule.getTitle());
copy.setSymbolizers(symbolizerCopy);
内容来源于网络,如有侵权,请联系作者删除!