public class CellLocalizableCursor<T extends Type<T>> extends CellCursor<T> implements LocalizableCursor<T>
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
cellDimensions |
protected int[] |
cellOffset |
protected int[] |
dimensions |
protected int |
numDimensions |
protected int[] |
position |
cell, cellInstance, cellMaxI, container, lastCell, numCells, typedebug, image, isClosed| Constructor and Description |
|---|
CellLocalizableCursor(CellContainer<T,?> container,
Image<T> image,
T type) |
| Modifier and Type | Method and Description |
|---|---|
void |
fwd() |
protected void |
getCellData(int cell) |
int[] |
getPosition()
Return a copy of the current position.
|
int |
getPosition(int dim)
Return the current position in a given dimension.
|
void |
getPosition(int[] position)
Write the current position into the passed array.
|
String |
getPositionAsString()
Create a human-readable
String representation of the current
position. |
void |
reset() |
String |
toString() |
close, getCurrentCell, getStorageContainer, getStorageIndex, getType, hasNextcreatePositionArray, fwd, getArrayIndex, getDimensions, getDimensions, getImage, getNumDimensions, isActive, iterator, next, remove, setDebugclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, createPositionArray, getArrayIndex, getImage, getStorageContainer, getStorageIndex, getType, isActive, setDebugforEachRemaining, hasNext, next, removeforEach, iterator, spliteratorgetDimensions, getDimensions, getNumDimensionsprotected final int numDimensions
protected final int[] position
protected final int[] dimensions
protected final int[] cellDimensions
protected final int[] cellOffset
public CellLocalizableCursor(CellContainer<T,?> container, Image<T> image, T type)
protected void getCellData(int cell)
getCellData in class CellCursor<T extends Type<T>>public void reset()
public void fwd()
public void getPosition(int[] position)
LocalizablegetPosition in interface Localizablepublic int[] getPosition()
LocalizablegetPosition in interface Localizablepublic int getPosition(int dim)
LocalizablegetPosition in interface Localizablepublic String getPositionAsString()
LocalizableString representation of the current
position.getPositionAsString in interface LocalizableCopyright © 2015–2021 Fiji. All rights reserved.