|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jaitools.imageutils.iterator.AbstractSimpleIterator
org.jaitools.imageutils.iterator.WritableSimpleIterator
public class WritableSimpleIterator
A read-write image iterator which moves by column then row (pixel then line).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jaitools.imageutils.iterator.AbstractSimpleIterator |
|---|
AbstractSimpleIterator.DelegateHelper, AbstractSimpleIterator.Order |
| Field Summary |
|---|
| Fields inherited from class org.jaitools.imageutils.iterator.AbstractSimpleIterator |
|---|
delegateIter, imageDataType, imageRef, iterBounds |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.jaitools.imageutils.iterator.AbstractSimpleIterator |
|---|
checkBandArg, done, getBounds, getEndPos, getImage, getPos, getPos, getSample, getSample, getSample, getSample, getSample, getSample, getStartPos, getSubBounds, hasNext, isInsideDelegateBounds, isWithinImage, next, reset, setDelegatePosition, setPos, setPos |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 null
public 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()
method| Method Detail |
|---|
public boolean setSample(Number value)
false.
value -
true if the image value was set; false if the
iterator was positioned outside the bounds of the image
public boolean setSample(Point pos,
Number value)
false.
pos - the image positionvalue - the new value
true if the image value was set; false if the
specified position was outside the bounds of the image
IllegalArgumentException - if either argument is null
public boolean setSample(int x,
int y,
Number value)
false.
x - image X-ordinatey - image Y-ordinatevalue - the new value
true if the image value was set; false if the
specified position was outside the bounds of the image
IllegalArgumentException - if value is null
public boolean setSample(int band,
Number value)
false.
band - image bandvalue - the new value
true if the image value was set; false if the
iterator was positioned outside the bounds of the image
IllegalArgumentException - if band is out of range for the
target image or if value is null
public boolean setSample(Point pos,
int band,
Number value)
false.
pos - the image positionband - the image bandvalue - the new value
true if the image value was set; false if the
specified position was outside the bounds of the image
IllegalArgumentException - if either pos or value
is null; or if band is out of range
public boolean setSample(int x,
int y,
int band,
Number value)
false.
x - image X-ordinatey - image Y-ordinateband - the image bandvalue - the new value
true if the image value was set; false if the
specified position was outside the bounds of the image
IllegalArgumentException - if value is null;
or if band is out of range
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||