javax.media.jai.JAI.setImagingListener()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(169)

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

JAI.setImagingListener介绍

暂无

代码示例

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

.setImagingListener(
    new ImagingListener() {
      final Logger LOGGER = Logging.getLogger("javax.media.jai");

代码示例来源:origin: bcdev/beam

JAI.getDefaultInstance().setImagingListener(new ImagingListener() {
  @Override
  public boolean errorOccurred(String message, Throwable thrown, Object where, boolean isRetryable) throws RuntimeException {

代码示例来源:origin: bcdev/beam

public void execute(ExecutionOrder executionOrder, String executionMessage, ProgressMonitor pm) {
  final Semaphore semaphore = new Semaphore(parallelism, true);
  final TileComputationListener tcl = new OperatorTileComputationListener(semaphore, pm);
  final TileComputationListener[] listeners = new TileComputationListener[]{tcl};
  ImagingListener imagingListener = JAI.getDefaultInstance().getImagingListener();
  JAI.getDefaultInstance().setImagingListener(new GPFImagingListener());
  pm.beginTask(executionMessage, tileCountX * tileCountY * images.length);
  ExecutionOrder effectiveExecutionOrder = getEffectiveExecutionOrder(executionOrder);
  try {
    if (effectiveExecutionOrder == ExecutionOrder.SCHEDULE_ROW_BAND_COLUMN) {
      scheduleRowBandColumn(semaphore, listeners, pm);
    } else if (effectiveExecutionOrder == ExecutionOrder.SCHEDULE_ROW_COLUMN_BAND) {
      scheduleRowColumnBand(semaphore, pm);
    } else if (effectiveExecutionOrder == ExecutionOrder.SCHEDULE_BAND_ROW_COLUMN) {
      scheduleBandRowColumn(semaphore, listeners, pm);
    } else if (effectiveExecutionOrder == ExecutionOrder.PULL_ROW_BAND_COLUMN) {
      executeRowBandColumn(pm);
    } else {
      throw new IllegalArgumentException("executionOrder");
    }
    acquirePermits(semaphore, parallelism);
    if (error != null) {
      throw error;
    }
  } finally {
    semaphore.release(parallelism);
    pm.done();
    JAI.getDefaultInstance().setImagingListener(imagingListener);
  }
}

代码示例来源:origin: bcdev/beam

JAI.getDefaultInstance().setImagingListener(new GPFImagingListener());
  semaphore.release(parallelism);
  pm.done();
  JAI.getDefaultInstance().setImagingListener(imagingListener);
  fireProcessingStopped(graphContext);

相关文章