@Override public List<GridCoverage> getSources() { return gridCoverage.getSources(); }
/** * Returns {@code true} if the specified grid coverage or any of its source uses the following * image. */ public static boolean uses(final GridCoverage coverage, final RenderedImage image) { if (coverage != null) { if (coverage.getRenderedImage() == image) { return true; } final Collection<GridCoverage> sources = coverage.getSources(); if (sources != null) { for (final GridCoverage source : sources) { if (uses(source, image)) { return true; } } } } return false; }
@Override public List<GridCoverage> getSources() { return gridCoverage.getSources(); }
@Override public List<GridCoverage> getSources() { return gridCoverage.getSources(); }
/** * Returns {@code true} if the specified grid coverage or any of its source * uses the following image. */ public static boolean uses(final GridCoverage coverage, final RenderedImage image) { if (coverage != null) { if (coverage instanceof RenderedCoverage) { if (((RenderedCoverage) coverage).getRenderedImage() == image) { return true; } } final Collection sources = coverage.getSources(); if (sources != null) { for (final Iterator it=sources.iterator(); it.hasNext();) { if (uses((GridCoverage) it.next(), image)) { return true; } } } } return false; }
/** * Returns {@code true} if the specified grid coverage or any of its source * uses the following image. */ public static boolean uses(final GridCoverage coverage, final RenderedImage image) { if (coverage != null) { if ( coverage.getRenderedImage() == image) { return true; } final Collection<GridCoverage> sources = coverage.getSources(); if (sources != null) { for (final GridCoverage source : sources) { if (uses(source, image)) { return true; } } } } return false; }
continue; final Collection<GridCoverage> more = source.getSources(); if (more != null && !more.isEmpty()) { if (next == null) {