@Test public void removeImage() throws Exception { System.out.println(" remove image"); String script = "dest = 42;" ; jb.script(script).dest("dest", 10, 10).run(); RenderedImage image = jb.removeImage("dest"); assertNotNull(image); image = jb.getImage("dest"); assertNull(image); }
public RenderedImage removeImage(String varName) { ImageRef ref = images.remove(varName); transforms.remove(varName); if (ref != null) { return ref.get(); } return null; }
JiffleBuilder { public RenderedImage removeImage(String varName) { ImageRef ref = images.remove(varName); transforms.remove(varName); if (ref != null) { return ref.get(); } return null; } }
JiffleBuilder { public RenderedImage removeImage(String varName) { ImageRef ref = images.remove(varName); transforms.remove(varName); if (ref != null) { return ref.get(); } return null; } JiffleBuilder(); }
JiffleBuilder { public RenderedImage removeImage(String varName) { ImageRef ref = images.remove(varName); transforms.remove(varName); if (ref != null) { return ref.get(); } return null; } JiffleBuilder(); void clear(); JiffleBuilder worldAndRes(Rectangle2D worldBounds, double xres, double yres); JiffleBuilder worldAndNumPixels(Rectangle2D worldBounds, int numX, int numY); JiffleBuilder script(String script); JiffleBuilder script(File scriptFile); JiffleBuilder source(String varName, RenderedImage sourceImage); JiffleBuilder source(String varName, RenderedImage sourceImage,
            CoordinateTransform transform); JiffleBuilder source(String varName, RenderedImage sourceImage,
            CoordinateTransform transform, boolean weak); JiffleBuilder dest(String varName, Rectangle destBounds); JiffleBuilder dest(String varName, Rectangle destBounds,
            CoordinateTransform transform); JiffleBuilder dest(String varName, int width, int height); JiffleBuilder dest(String varName, int width, int height,
            CoordinateTransform transform); JiffleBuilder dest(String varName, int minx, int miny, int width, int height); JiffleBuilder dest(String varName, int minx, int miny, 
            int width, int height, CoordinateTransform transform); JiffleBuilder dest(String varName, WritableRenderedImage destImage); JiffleBuilder dest(String varName, WritableRenderedImage destImage, 
            CoordinateTransform transform); JiffleBuilder defaultTransform(CoordinateTransform transform); JiffleBuilder run(); JiffleDirectRuntime getRuntime(); String getRuntimeSource(); RenderedImage getImage(String varName); RenderedImage removeImage(String varName); }
JiffleBuilder { public RenderedImage removeImage(String varName) { ImageRef ref = images.remove(varName); transforms.remove(varName); if (ref != null) { return ref.get(); } return null; } JiffleBuilder(); void clear(); JiffleBuilder worldAndRes(Rectangle2D worldBounds, double xres, double yres); JiffleBuilder worldAndNumPixels(Rectangle2D worldBounds, int numX, int numY); JiffleBuilder script(String script); JiffleBuilder script(File scriptFile); JiffleBuilder source(String varName, RenderedImage sourceImage); JiffleBuilder source(String varName, RenderedImage sourceImage,
            CoordinateTransform transform); JiffleBuilder source(String varName, RenderedImage sourceImage,
            CoordinateTransform transform, boolean weak); JiffleBuilder dest(String varName, Rectangle destBounds); JiffleBuilder dest(String varName, Rectangle destBounds,
            CoordinateTransform transform); JiffleBuilder dest(String varName, int width, int height); JiffleBuilder dest(String varName, int width, int height,
            CoordinateTransform transform); JiffleBuilder dest(String varName, int minx, int miny, int width, int height); JiffleBuilder dest(String varName, int minx, int miny, 
            int width, int height, CoordinateTransform transform); JiffleBuilder dest(String varName, WritableRenderedImage destImage); JiffleBuilder dest(String varName, WritableRenderedImage destImage, 
            CoordinateTransform transform); JiffleBuilder defaultTransform(CoordinateTransform transform); JiffleBuilder run(); JiffleDirectRuntime getRuntime(); String getRuntimeSource(); RenderedImage getImage(String varName); RenderedImage removeImage(String varName);  }