public abstract Collection<Bounds> getBoxes(Bounds bbox, Collection<Bounds> present, int maxAreas);
private void download(Collection<Bounds> bboxes, Class<?> klass) {
for (Bounds bbox : bboxes) {
AbstractDownloadTask task = getDownloadTask(klass);
ProgressMonitor monitor = null;
if (Main.pref.getBoolean("plugin.continuos_download.quiet_download", false)) {
monitor = NullProgressMonitor.INSTANCE;
}
Future<?> future = task.download(false, bbox, monitor);
DownloadPlugin.worker.execute(new PostDownloadHandler(task, future));
}
}