T - public abstract class CursorImpl<T extends Type<T>> extends Object implements Cursor<T>
CursorImpl instead of implementing methods here so that other classes can
only implement Cursor and extend other classes instead. As each CursorImpl is also
a Cursor there are no disadvantages for the Cursor implementations.| Modifier and Type | Field and Description |
|---|---|
protected Container<T> |
container |
protected boolean |
debug |
protected Image<T> |
image |
protected boolean |
isClosed |
| Constructor and Description |
|---|
CursorImpl(Container<T> container,
Image<T> image) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
createPositionArray() |
void |
fwd(long steps) |
int |
getArrayIndex() |
int[] |
getDimensions() |
void |
getDimensions(int[] position) |
Image<T> |
getImage() |
int |
getNumDimensions() |
Container<T> |
getStorageContainer() |
boolean |
isActive() |
Iterator<T> |
iterator() |
T |
next() |
void |
remove() |
void |
setDebug(boolean debug) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getStorageIndex, getType, resetforEachRemaining, hasNextforEach, spliteratorpublic int getArrayIndex()
getArrayIndex in interface Cursor<T extends Type<T>>public Container<T> getStorageContainer()
getStorageContainer in interface Cursor<T extends Type<T>>public void setDebug(boolean debug)
public int[] createPositionArray()
createPositionArray in interface Cursor<T extends Type<T>>public int getNumDimensions()
getNumDimensions in interface Dimensionalitypublic int[] getDimensions()
getDimensions in interface Dimensionalitypublic void getDimensions(int[] position)
getDimensions in interface DimensionalityCopyright © 2015–2021 Fiji. All rights reserved.