/** * Returns the bounds of the area covered by this node, without taking any * of its rendering attribute into account. That is, exclusive of any clipping, * masking, filtering or stroking, for example. */ public Rectangle2D getGeometryBounds() { if (image == null) return null; return image.getBounds2D(); }
/** * Forward the call (blocking until source is set if need be). */ public RenderedImage createRendering(RenderContext rc) { return getSource().createRendering(rc); }
/** * Forward the call (blocking until source is set if need be). */ public RenderedImage createDefaultRendering() { return getSource().createDefaultRendering(); }
/** * DEBUG: Trace filter chain */ private void traceFilter(Filter filter, String prefix){ System.out.println(prefix + filter.getClass().getName()); System.out.println(prefix + filter.getBounds2D()); List sources = filter.getSources(); int nSources = sources != null ? sources.size() : 0; prefix += "\t"; for(int i=0; i<nSources; i++){ Filter source = (Filter)sources.get(i); traceFilter(source, prefix); } System.out.flush(); }
float scale = 100.0f/src.getWidth(); float yscale = 100.0f/src.getHeight(); RenderedImage histRI = getSource().createRendering(rc);
Object o=img.getProperty(BrokenLinkProvider.BROKEN_LINK_PROPERTY); String msg = "unknown"; if (o instanceof String) Rectangle2D imgBounds = img.getBounds2D();
Rectangle cursorSize = f.getBounds2D().getBounds(); RenderedImage ri = f.createScaledRendering(cursorSize.width, cursorSize.height, null);
public static boolean hasBrokenLinkProperty(Filter f) { Object o = f.getProperty(BROKEN_LINK_PROPERTY); if (o == null) return false; if (o == Image.UndefinedProperty) return false; return true; }
/** * Forward the call (blocking until source is set if need be). */ public RenderedImage createScaledRendering(int w, int h, RenderingHints hints) { return getSource().createScaledRendering(w, h, hints); }
public Vector getSources() { return getSource().getSources(); }
/** * Forward the call (blocking until source is set if need be). */ public Shape getDependencyRegion(int srcIndex, Rectangle2D outputRgn) { return getSource().getDependencyRegion(srcIndex, outputRgn); }
/** * Forward the call (blocking until source is set if need be). */ public Shape getDirtyRegion(int srcIndex, Rectangle2D inputRgn) { return getSource().getDirtyRegion(srcIndex, inputRgn); } }
/** * Forward the call (blocking until source is set if need be). */ public String [] getPropertyNames() { synchronized (this) { while ((src == null) && (props == null)) { try { // Wait for someone to set src | props wait(); } catch(InterruptedException ie) { } } } if (src != null) return src.getPropertyNames(); String [] ret = new String[props.size()]; props.keySet().toArray(ret); return ret; }
/** * DEBUG: Trace filter chain */ private void traceFilter(Filter filter, String prefix){ System.out.println(prefix + filter.getClass().getName()); System.out.println(prefix + filter.getBounds2D()); List sources = filter.getSources(); int nSources = sources != null ? sources.size() : 0; prefix += "\t"; for(int i=0; i<nSources; i++){ Filter source = (Filter)sources.get(i); traceFilter(source, prefix); } System.out.flush(); }
float scale = 100.0f/src.getWidth(); float yscale = 100.0f/src.getHeight(); RenderedImage histRI = getSource().createRendering(rc);
Object o=img.getProperty(BrokenLinkProvider.BROKEN_LINK_PROPERTY); String msg = "unknown"; if (o instanceof String) Rectangle2D imgBounds = img.getBounds2D();
Rectangle cursorSize = f.getBounds2D().getBounds(); RenderedImage ri = f.createScaledRendering(cursorSize.width, cursorSize.height, null);
public static boolean hasBrokenLinkProperty(Filter f) { Object o = f.getProperty(BROKEN_LINK_PROPERTY); if (o == null) return false; if (o == Image.UndefinedProperty) return false; return true; }
/** * Forward the call (blocking until source is set if need be). */ public RenderedImage createScaledRendering(int w, int h, RenderingHints hints) { return getSource().createScaledRendering(w, h, hints); }
public Vector getSources() { return getSource().getSources(); }