@Override public void featureRenderer(SimpleFeature feature) { count++; if (count > 10) { renderer.stopRendering(); } }
public void errorOccurred(Exception e) { errors++; if (errors > 2) { // we dont' want to block the loop in case of regression on this bug sr.stopRendering(); } // but we want to make sure we're getting Throwable t = e; while (t != sentinel && t.getCause() != null) t = t.getCause(); assertSame(sentinel, t); } });
public void abort(Service gs) { if (renderer != null) { renderer.stopRendering(); } }
public void abort() { if (renderer != null) { renderer.stopRendering(); } }
/** * If you call this method from another thread than the one that called <code>paint</code> or * <code>render</code> the rendering will be forcefully stopped before termination */ public void stopRendering() { try { if(delegate != null) delegate.stopRendering(); } catch(NullPointerException e) { // Since stopRendering is called by another thread the null check may // pass, and the method call can NPE nevertheless. It's ok, in that // case rendering is done anyways } renderingStopRequested = true; labelCache.stop(); }
} else { renderer.stopRendering();