gpt4 book ai didi

org.geotools.resources.XArray.insert()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 00:35:05 27 4
gpt4 key购买 nike

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

XArray.insert介绍

[英]Inserts spaces into the middle of a table. These "spaces" will be made up of zeros.
[中]在表格中间插入空格。这些“空间”将由零组成。

代码示例

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

/**
 * Set the foreground and background colors for messages of the specified level.
 * The specified colors will apply on any messages of level {@code level} or
 * greater, up to the next level set with an other call to {@code setLevelColor(...)}.
 *
 * @param level       The minimal level to set color for.
 * @param foreground  The foreground color, or {@code null} for the default color.
 * @param background  The background color, or {@code null} for the default color.
 */
public void setLevelColor(final Level level, final Color foreground, final Color background) {
  final int value = level.intValue();
  int i = Arrays.binarySearch(levelValues, value);
  if (i >= 0) {
    i *= 2;
    levelColors.set(i+0, foreground);
    levelColors.set(i+1, background);
  } else {
    i = ~i;
    levelValues = XArray.insert(levelValues, i, 1);
    levelValues[i] = value;
    i *= 2;
    levelColors.add(i+0, foreground);
    levelColors.add(i+1, background);
  }
  assert XArray.isSorted(levelValues);
  assert levelValues.length*2 == levelColors.size();
}

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

children = XArray.insert(children, i, 1);
children[i] = new Logging(logging, name);
logging.children = children;

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

children = (Logging[]) XArray.insert(children, i, 1);
children[i] = new Logging(logging, name);
logging.children = children;

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

changers = XArray.insert(changers, i, 1);
changers[i] = converter;

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

list = (ClassChanger[]) XArray.insert(list, i, 1);
list[i] = converter;

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com