public class WritableSimpleIterator extends AbstractSimpleIterator
AbstractSimpleIterator.Order| Constructor and Description |
|---|
WritableSimpleIterator(WritableRenderedImage image,
Rectangle bounds,
Number outsideValue)
Creates a new iterator.
|
WritableSimpleIterator(WritableRenderedImage image,
Rectangle bounds,
Number outsideValue,
AbstractSimpleIterator.Order order)
Creates a new iterator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
setSample(int x,
int y,
int band,
Number value)
Sets the value in the specified band of the image at the specified position.
|
boolean |
setSample(int x,
int y,
Number value)
Sets the value in the first band of the image at the specified position.
|
boolean |
setSample(int band,
Number value)
Sets the value in the specified band of the image at the current position.
|
boolean |
setSample(Number value)
Sets the value in the first band of the image at the current position.
|
boolean |
setSample(Point pos,
int band,
Number value)
Sets the value in the specified band of the image at the specified position.
|
boolean |
setSample(Point pos,
Number value)
Sets the value in the first band of the image at the specified position.
|
public WritableSimpleIterator(WritableRenderedImage image, Rectangle bounds, Number outsideValue)
image - the target imagebounds - bounds for the iterator; if null the bounds of the target
image will be usedoutsideValue - value to return when the iterator is positioned beyond
the bounds of the target image; may be nullpublic WritableSimpleIterator(WritableRenderedImage image, Rectangle bounds, Number outsideValue, AbstractSimpleIterator.Order order)
image - the target imagebounds - bounds for the iterator; if null the bounds of the target
image will be usedoutsideValue - value to return when the iterator is positioned beyond
the bounds of the target image; may be nullorder - processing order for this iterator when using the AbstractSimpleIterator.next()
methodpublic boolean setSample(Number value)
false.value - true if the image value was set; false if the
iterator was positioned outside the bounds of the imagepublic boolean setSample(Point pos, Number value)
false.pos - the image positionvalue - the new valuetrue if the image value was set; false if the
specified position was outside the bounds of the imageIllegalArgumentException - if either argument is nullpublic boolean setSample(int x,
int y,
Number value)
false.x - image X-ordinatey - image Y-ordinatevalue - the new valuetrue if the image value was set; false if the
specified position was outside the bounds of the imageIllegalArgumentException - if value is nullpublic boolean setSample(int band,
Number value)
false.band - image bandvalue - the new valuetrue if the image value was set; false if the
iterator was positioned outside the bounds of the imageIllegalArgumentException - if band is out of range for the
target image or if value is nullpublic boolean setSample(Point pos, int band, Number value)
false.pos - the image positionband - the image bandvalue - the new valuetrue if the image value was set; false if the
specified position was outside the bounds of the imageIllegalArgumentException - if either pos or value
is null; or if band is out of rangepublic boolean setSample(int x,
int y,
int band,
Number value)
false.x - image X-ordinatey - image Y-ordinateband - the image bandvalue - the new valuetrue if the image value was set; false if the
specified position was outside the bounds of the imageIllegalArgumentException - if value is null;
or if band is out of rangeCopyright © 2009–2018. All rights reserved.