Class RectIterCSM
Object
RectIterFallback
RectIterCSM
- All Implemented Interfaces:
RectIter
- Direct Known Subclasses:
RectIterCSMByte,RectIterCSMFloat
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidjumpLines(int num) Jumps downward num lines from the current position.voidjumpPixels(int num) Jumps rightward num pixels from the current position.voidnextBand()Sets the iterator to the next band in the image.voidnextLine()Sets the iterator to the next line of the image.voidSets the iterator to the next pixel in image (that is, move rightward).voidSets the iterator to the first band of the image.voidSets the iterator to the first line of its bounding rectangle.voidSets the iterator to the leftmost pixel of its bounding rectangle.Methods inherited from class RectIterFallback
finishedBands, finishedLines, finishedPixels, getPixel, getPixel, getPixel, getSample, getSample, getSampleDouble, getSampleDouble, getSampleFloat, getSampleFloat, nextBandDone, nextLineDone, nextPixelDone
-
Constructor Details
-
RectIterCSM
-
-
Method Details
-
startLines
public void startLines()Description copied from interface:RectIterSets the iterator to the first line of its bounding rectangle. The pixel and band offsets are unchanged.- Specified by:
startLinesin interfaceRectIter- Overrides:
startLinesin classRectIterFallback
-
nextLine
public void nextLine()Description copied from interface:RectIterSets the iterator to the next line of the image. The pixel and band offsets are unchanged. If the iterator passes the bottom line of the rectangles, calls to get() methods are not valid.- Specified by:
nextLinein interfaceRectIter- Overrides:
nextLinein classRectIterFallback
-
jumpLines
public void jumpLines(int num) Description copied from interface:RectIterJumps downward num lines from the current position. Num may be negative. The pixel and band offsets are unchanged. If the position after the jump is outside of the iterator's bounding box, anIndexOutOfBoundsExceptionwill be thrown and the position will be unchanged.- Specified by:
jumpLinesin interfaceRectIter- Overrides:
jumpLinesin classRectIterFallback
-
startPixels
public void startPixels()Description copied from interface:RectIterSets the iterator to the leftmost pixel of its bounding rectangle. The line and band offsets are unchanged.- Specified by:
startPixelsin interfaceRectIter- Overrides:
startPixelsin classRectIterFallback
-
nextPixel
public void nextPixel()Description copied from interface:RectIterSets the iterator to the next pixel in image (that is, move rightward). The line and band offsets are unchanged.This method may be used in conjunction with the method
finishedPixels. Or the methodnextPixelDone, which sets the iterator to the next pixel and checks the bound, may be used instead of this method.- Specified by:
nextPixelin interfaceRectIter- Overrides:
nextPixelin classRectIterFallback
-
jumpPixels
public void jumpPixels(int num) Description copied from interface:RectIterJumps rightward num pixels from the current position. Num may be negative. The line and band offsets are unchanged. If the position after the jump is outside of the iterator's bounding box, anIndexOutOfBoundsExceptionwill be thrown and the position will be unchanged.- Specified by:
jumpPixelsin interfaceRectIter- Overrides:
jumpPixelsin classRectIterFallback
-
startBands
public void startBands()Description copied from interface:RectIterSets the iterator to the first band of the image. The pixel column and line are unchanged.- Specified by:
startBandsin interfaceRectIter- Overrides:
startBandsin classRectIterFallback
-
nextBand
public void nextBand()Description copied from interface:RectIterSets the iterator to the next band in the image. The pixel column and line are unchanged.- Specified by:
nextBandin interfaceRectIter- Overrides:
nextBandin classRectIterFallback
-