@Test public void setSampleReturnsFalseOutsideImage() { image = ImageUtils.createConstantImage(WIDTH, HEIGHT, 0); final Rectangle imageBounds = image.getBounds(); Rectangle iterBounds = createAdjustedBounds(imageBounds, 5); iter = new WritableSimpleIterator(image, iterBounds, 0); do { boolean rtnValue = iter.setSample(1); assertEquals(imageBounds.contains(iter.getPos()), rtnValue); } while (iter.next()); }
public boolean setSample(Number value) { return setSample(0, value); }
WritableSimpleIterator extends AbstractSimpleIterator { public boolean setSample(Number value) { return setSample(0, value); } }
WritableSimpleIterator extends AbstractSimpleIterator { public boolean setSample(Number value) { return setSample(0, value); } WritableSimpleIterator(WritableRenderedImage image, Rectangle bounds, Number outsideValue);  WritableSimpleIterator(WritableRenderedImage image, Rectangle bounds, Number outsideValue,
            Order order); }
WritableSimpleIterator extends AbstractSimpleIterator { public boolean setSample(Number value) { return setSample(0, value); } WritableSimpleIterator(WritableRenderedImage image, Rectangle bounds, Number outsideValue);  WritableSimpleIterator(WritableRenderedImage image, Rectangle bounds, Number outsideValue,
            Order order); boolean setSample(Number value); boolean setSample(Point pos, Number value); boolean setSample(int x, int y, Number value); boolean setSample(int band, Number value); boolean setSample(Point pos, int band, Number value); boolean setSample(int x, int y, int band, Number value); }
WritableSimpleIterator extends AbstractSimpleIterator { public boolean setSample(Number value) { return setSample(0, value); } WritableSimpleIterator(WritableRenderedImage image, Rectangle bounds, Number outsideValue);  WritableSimpleIterator(WritableRenderedImage image, Rectangle bounds, Number outsideValue,
            Order order); boolean setSample(Number value); boolean setSample(Point pos, Number value); boolean setSample(int x, int y, Number value); boolean setSample(int band, Number value); boolean setSample(Point pos, int band, Number value); boolean setSample(int x, int y, int band, Number value);  }