gpt4 book ai didi

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

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

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

XArray.remove介绍

[英]Grabs elements from the middle of a table.
[中]从桌子中间抓取元素。

代码示例

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

/**
 * Removes an observer. If the observer was not registered, nothing happens.
 * If the observer was registered for multiple notifications, it will now be
 * registered for one fewer.
 */
public synchronized void removeTileObserver(final TileObserver observer) {
  if (observers != null) {
    for (int i=observers.length; --i>=0;) {
      if (observers[i] == observer) {
        observers = (TileObserver[]) XArray.remove(observers, i, 1);
        break;
      }
    }
  }
}

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

/**
 * Removes an editor from the list of those which display the
 * coordinates of the visor.
 *
 * @param editor Editor to remove.
 */
public synchronized void removeEditor(final JComponent editor) {
  if (editors != null) {
    for (int i = 0; i < editors.length; i++) {
      if (editors[i].editor == editor) {
        editors = (Control[])  XArray.remove(editors, i, 1);
        /*
         * In principal, there should be no more objects to 
         * remove from the table.  But we let the loop continue
         * anyway, just in case...
         */
      }
    }
    if (editors.length == 0) {
      editors = null;
    }
  }       
}

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