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

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

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

Rule.getLegendGraphic介绍

[英]A set of equivalent Graphics in different formats which can be used as a legend against features stylized by the symbolizers in this rule.
[中]一组不同格式的等效图形,可作为图例,与本规则中符号化的特征相对照。

代码示例

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

Graphic[] legendCopy = rule.getLegendGraphic();
for (int i = 0; i < legendCopy.length; i++) {
  legendCopy[i] = copy(legendCopy[i]);

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

element("Abstract", rule.getDescription().getAbstract());
Graphic[] gr = rule.getLegendGraphic();
for (int i = 0; i < gr.length; i++) {
  start("LegendGraphic");

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

public void visit(Rule rule) {
  Filter filter = rule.getFilter();
  if (filter != null) {
    filter.accept(this, null);
  }
  Symbolizer[] symbolizers = rule.getSymbolizers();
  if (symbolizers != null) {
    for (int i = 0; i < symbolizers.length; i++) {
      Symbolizer symbolizer = symbolizers[i];
      symbolizer.accept(this);
    }
  }
  Graphic[] legendGraphics = rule.getLegendGraphic();
  if (legendGraphics != null) {
  }
}

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

public void visit(Rule rule) {
  Filter filter = rule.getFilter();
  if (filter != null) {
    filter.accept(this, null);
  }
  Symbolizer[] symbolizers = rule.getSymbolizers();
  if (symbolizers != null) {
    for (int i = 0; i < symbolizers.length; i++) {
      Symbolizer symbolizer = symbolizers[i];
      symbolizer.accept(this);
    }
  }
  Graphic[] legendGraphics = rule.getLegendGraphic();
  if (legendGraphics != null) {
  }
}

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

/**
 * @see org.geotools.styling.StyleVisitor#visit(org.geotools.styling.Rule)
 */
public void visit(Rule rule) {
  Filter filter = rule.getFilter();
  if (filter != null) {
    filter.accept( this, null );
  }
  Symbolizer[] symbolizers = rule.getSymbolizers();
  if (symbolizers != null) {
    for (int i = 0; i < symbolizers.length; i++) {
      Symbolizer symbolizer = symbolizers[i];
      symbolizer.accept(this);
    }
  }
  Graphic[] legendGraphics = rule.getLegendGraphic();
  if (legendGraphics != null) {
  }
}

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

/**
 * @see org.geotools.styling.StyleVisitor#visit(org.geotools.styling.Rule)
 */
public void visit(Rule rule) {
  Filter filter = rule.getFilter();
  if (filter != null) {
    filter.accept( this, null );
  }
  Symbolizer[] symbolizers = rule.getSymbolizers();
  if (symbolizers != null) {
    for (int i = 0; i < symbolizers.length; i++) {
      Symbolizer symbolizer = symbolizers[i];
      symbolizer.accept(this);
    }
  }
  Graphic[] legendGraphics = rule.getLegendGraphic();
  if (legendGraphics != null) {
  }
}

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

Graphic[] legendCopy = rule.getLegendGraphic();
for (int i = 0; i < legendCopy.length; i++) {
  legendCopy[i] = copy(legendCopy[i]);

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

Graphic[] legendCopy = rule.getLegendGraphic();
for (int i = 0; i < legendCopy.length; i++) {
  legendCopy[i] = copy(legendCopy[i]);

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

Graphic[] legendCopy = rule.getLegendGraphic();
for (int i = 0; i < legendCopy.length; i++) {
  legendCopy[i] = copy(legendCopy[i]);

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

Graphic[] legendGraphic = rule.getLegendGraphic();
Graphic[] legendGraphicCopy = new Graphic[legendGraphic.length];

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

Graphic[] legendGraphic = rule.getLegendGraphic();
Graphic[] legendGraphicCopy = new Graphic[legendGraphic.length];

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

if (rule.getAbstract() != null) element("Abstract", rule.getAbstract());
Graphic[] gr = rule.getLegendGraphic();
for (int i = 0; i < gr.length; i++) {
  start("LegendGraphic");

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

element("Abstract", rule.getDescription().getAbstract());
Graphic[] gr = rule.getLegendGraphic();
for (int i = 0; i < gr.length; i++) {
  start("LegendGraphic");

相关文章