public interface IImageLineSet<T extends IImageLine>
IImageLine
elements.
This is actually a "virtual" set, it can be implemented in several ways; for example
PngReader.readRows()
method.
Modifier and Type | Method and Description |
---|---|
IImageLine |
getImageLine(int n)
Asks for imageline corresponding to row n in the original image (zero based).
|
IImageLine |
getImageLineRawNum(int n)
Like
getImageLine(int) but uses the raw numbering inside the LineSet This makes little sense for a cursor |
boolean |
hasImageLine(int n)
Returns true if the set contain row n (in the original image,zero based) currently allocated.
|
int |
size()
Internal size of allocated rows This is informational, it should rarely be important for the caller.
|
IImageLine getImageLine(int n)
Throws exception if not available. The caller is supposed to know what he/she is doing
IImageLine getImageLineRawNum(int n)
getImageLine(int)
but uses the raw numbering inside the LineSet This makes little sense for a cursorn
- Should normally go from 0 to size()
boolean hasImageLine(int n)
If it's a single-cursor, this should return true only if it's positioned there. (notice that hasImageLine(n) can return false, but getImageLine(n) can be ok)
int size()
Copyright © 2014. All rights reserved.