本文整理了Java中javax.media.jai.JAI.getImagingListener()
方法的一些代码示例,展示了JAI.getImagingListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JAI.getImagingListener()
方法的具体详情如下:
包路径:javax.media.jai.JAI
类名称:JAI
方法名:getImagingListener
暂无
代码示例来源:origin: geoserver/geoserver
public static OperationRegistry initializeRegistry() {
try {
InputStream url = PropertyUtil.getFileFromClasspath(JAI_REGISTRY_FILE);
if (url == null) {
throw new RuntimeException("Could not find the main registry file");
}
OperationRegistry registry = new ConcurrentOperationRegistry();
if (url != null) {
registry.updateFromStream(url);
}
registry.registerServices(null);
return registry;
} catch (IOException ioe) {
ImagingListener listener = JAI.getDefaultInstance().getImagingListener();
String message = "Error occurred while initializing JAI";
listener.errorOccurred(
message, new ImagingException(message, ioe), OperationRegistry.class, false);
return null;
}
}
代码示例来源: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: it.geosolutions.jaiext.utilities/jt-utilities
ImagingListener listener = JAI.getDefaultInstance().getImagingListener();
String message = "Error occurred while initializing JAI";
listener.errorOccurred(message, new ImagingException(message, ioe),
代码示例来源:origin: geosolutions-it/jai-ext
ImagingListener listener = JAI.getDefaultInstance().getImagingListener();
String message = "Error occurred while initializing JAI";
listener.errorOccurred(message, new ImagingException(message, ioe),
代码示例来源:origin: bcdev/beam
ImagingListener imagingListener = JAI.getDefaultInstance().getImagingListener();
JAI.getDefaultInstance().setImagingListener(new GPFImagingListener());
内容来源于网络,如有侵权,请联系作者删除!