/** * Returns the result of calling hasBeenHalted on * <code>Thread.currentThread()</code>, if it is an instance of * HaltingThread otherwise it returns false. */ public static boolean hasBeenHalted() { return hasBeenHalted(Thread.currentThread()); }
/** * Returns the result of calling hasBeenHalted on * <code>Thread.currentThread()</code>, if it is an instance of * HaltingThread otherwise it returns false. */ public static boolean hasBeenHalted() { return hasBeenHalted(Thread.currentThread()); }
/** * Returns the result of calling hasBeenHalted on * <code>Thread.currentThread()</code>, if it is an instance of * HaltingThread otherwise it returns false. */ public static boolean hasBeenHalted() { return hasBeenHalted(Thread.currentThread()); }
/** * Paints this node without applying Filter, Mask, Composite, and clip. * * @param g2d the Graphics2D to use */ public void primitivePaint(Graphics2D g2d) { if (count == 0) { return; } // Thread.currentThread() is potentially expensive, so reuse my instance in hasBeenHalted() Thread currentThread = Thread.currentThread(); // Paint children for (int i=0; i < count; ++i) { if (HaltingThread.hasBeenHalted( currentThread )) return; GraphicsNode node = children[i]; if (node == null) { continue; } node.paint(g2d); } }
/** * Paints this node without applying Filter, Mask, Composite, and clip. * * @param g2d the Graphics2D to use */ public void primitivePaint(Graphics2D g2d) { if (count == 0) { return; } // Thread.currentThread() is potentially expensive, so reuse my instance in hasBeenHalted() Thread currentThread = Thread.currentThread(); // Paint children for (int i=0; i < count; ++i) { if (HaltingThread.hasBeenHalted( currentThread )) return; GraphicsNode node = children[i]; if (node == null) { continue; } node.paint(g2d); } }
/** * Paints this node without applying Filter, Mask, Composite, and clip. * * @param g2d the Graphics2D to use */ public void primitivePaint(Graphics2D g2d) { if (count == 0) { return; } // Thread.currentThread() is potentially expensive, so reuse my instance in hasBeenHalted() Thread currentThread = Thread.currentThread(); // Paint children for (int i=0; i < count; ++i) { if (HaltingThread.hasBeenHalted( currentThread )) return; GraphicsNode node = children[i]; if (node == null) { continue; } node.paint(g2d); } }
/** * Returns the bounds of the area covered by this node's primitive paint. */ public Rectangle2D getPrimitiveBounds() { if (!isVisible) return null; if (shape == null) return null; if (primitiveBounds != null) return primitiveBounds; if (shapePainter == null) primitiveBounds = shape.getBounds2D(); else primitiveBounds = shapePainter.getPaintedBounds2D(); // Check If we should halt early. if (HaltingThread.hasBeenHalted()) { // The Thread has been halted. // Invalidate any cached values and proceed (this // sets primitiveBounds to null). invalidateGeometryCache(); } return primitiveBounds; }
/** * Returns the bounds of the area covered by this node's primitive paint. */ public Rectangle2D getPrimitiveBounds() { if (!isVisible) return null; if (shape == null) return null; if (primitiveBounds != null) return primitiveBounds; if (shapePainter == null) primitiveBounds = shape.getBounds2D(); else primitiveBounds = shapePainter.getPaintedBounds2D(); // Check If we should halt early. if (HaltingThread.hasBeenHalted()) { // The Thread has been halted. // Invalidate any cached values and proceed (this // sets primitiveBounds to null). invalidateGeometryCache(); } return primitiveBounds; }
/** * Returns the bounds of the area covered by this node's primitive paint. */ public Rectangle2D getPrimitiveBounds() { if (!isVisible) return null; if (shape == null) return null; if (primitiveBounds != null) return primitiveBounds; if (shapePainter == null) primitiveBounds = shape.getBounds2D(); else primitiveBounds = shapePainter.getPaintedBounds2D(); // Check If we should halt early. if (HaltingThread.hasBeenHalted()) { // The Thread has been halted. // Invalidate any cached values and proceed (this // sets primitiveBounds to null). invalidateGeometryCache(); } return primitiveBounds; }
while ((bounds == null) && i < count) { bounds = children[i++].getTransformedBounds(IDENTITY); if (((i & 0x0F) == 0) && HaltingThread.hasBeenHalted( currentThread )) break; // check every 16 children if we have been interrupted. if (HaltingThread.hasBeenHalted( currentThread )) { invalidateGeometryCache(); return null; if (((i & 0x0F) == 0) && HaltingThread.hasBeenHalted( currentThread )) break; // check every 16 children if we have been interrupted. if (HaltingThread.hasBeenHalted( currentThread )) {
if (HaltingThread.hasBeenHalted()) return ras;
if (HaltingThread.hasBeenHalted()) return ras;
if (HaltingThread.hasBeenHalted()) return ras;
if (HaltingThread.hasBeenHalted(currentThread)) { return;
if (HaltingThread.hasBeenHalted(currentThread)) { return;
if ( HaltingThread.hasBeenHalted( currentThread ) ) { return;
if (HaltingThread.hasBeenHalted()) return ras;
if (HaltingThread.hasBeenHalted()) {
if (HaltingThread.hasBeenHalted()) {
if (HaltingThread.hasBeenHalted()) {