public final class GenericCursorLink<T extends Type<T>> extends Object implements CursorLink
Constructor and Description |
---|
GenericCursorLink(Image<T> img) |
GenericCursorLink(LocalizableByDimCursor<T> linkedCursor) |
Modifier and Type | Method and Description |
---|---|
void |
bck(int dim) |
void |
fwd() |
void |
fwd(int dim) |
void |
fwd(long steps) |
LocalizableCursor<T> |
getLinkedCursor() |
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 |
move(int steps,
int dim) |
void |
moveRel(int[] position) |
void |
moveTo(int[] position) |
void |
moveTo(Localizable localizable) |
void |
setPosition(int[] position) |
void |
setPosition(int position,
int dim) |
void |
setPosition(Localizable localizable) |
public GenericCursorLink(LocalizableByDimCursor<T> linkedCursor)
public LocalizableCursor<T> getLinkedCursor()
public final void bck(int dim)
bck
in interface LocalizableByDim
public final void fwd(int dim)
fwd
in interface LocalizableByDim
public final void move(int steps, int dim)
move
in interface LocalizableByDim
public final void moveRel(int[] position)
moveRel
in interface LocalizableByDim
public final void moveTo(Localizable localizable)
moveTo
in interface LocalizableByDim
public final void moveTo(int[] position)
moveTo
in interface LocalizableByDim
public final void setPosition(Localizable localizable)
setPosition
in interface LocalizableByDim
public final void setPosition(int[] position)
setPosition
in interface LocalizableByDim
public final void setPosition(int position, int dim)
setPosition
in interface LocalizableByDim
public final void getPosition(int[] position)
Localizable
getPosition
in interface Localizable
public final int[] getPosition()
Localizable
getPosition
in interface Localizable
public final int getPosition(int dim)
Localizable
getPosition
in interface Localizable
public final String getPositionAsString()
Localizable
String
representation of the current
position.getPositionAsString
in interface Localizable
Copyright © 2015–2021 Fiji. All rights reserved.