public static interface Coords.Builder extends Coords.CoordsBuilder
Modifier and Type | Method and Description |
---|---|
Coords |
build() |
Coords.Builder |
c(int channel)
Shorthand for
channel . |
Coords.Builder |
channel(int channel)
Set the channel index.
|
Coords.Builder |
index(java.lang.String axis,
int index)
Set the index along a given axis.
|
Coords.Builder |
offset(java.lang.String axis,
int offset)
Offset the given axis by a given count.
|
Coords.Builder |
p(int index)
Shorthand for
stagePosition . |
Coords.Builder |
removeAxis(java.lang.String axis)
Remove the specified axis.
|
Coords.Builder |
stagePosition(int index)
Set the stage position index.
|
Coords.Builder |
t(int timepoint)
Shorthand for
time . |
Coords.Builder |
time(int timepoint)
Deprecated.
Due to being confusing with physical time.
|
Coords.Builder |
timePoint(int frame)
Set the time point (frame) index.
|
Coords.Builder |
z(int slice)
Shorthand for
zSlice(int) . |
Coords.Builder |
zSlice(int slice)
Set the Z slice index.
|
Coords build()
build
in interface Coords.CoordsBuilder
Coords.Builder channel(int channel)
index(Coords.CHANNEL, channel)
.channel
in interface Coords.CoordsBuilder
channel
- channel index (0-based)Coords.Builder c(int channel)
channel
.channel
- channel index (0-based)Coords.Builder timePoint(int frame)
index(Coords.TIME_POINT, frame)
.frame
- time point (frame) index (0-based)@Deprecated Coords.Builder time(int timepoint)
timePoint
.time
in interface Coords.CoordsBuilder
timepoint
- (0-based)Coords.Builder t(int timepoint)
time
.timepoint
- (0-based)Coords.Builder zSlice(int slice)
index(Coords.Z_SLICE, slice)
.slice
- z slice index (0-based)Coords.Builder z(int slice)
zSlice(int)
.
Set the Z slice index.
Equivalent to index(Coords.Z_SLICE, slice)
.z
in interface Coords.CoordsBuilder
slice
- z slice index (0-based)Coords.Builder stagePosition(int index)
index(Coords.STAGE_POSITION, index)
.stagePosition
in interface Coords.CoordsBuilder
index
- stage position index (0-based)Coords.Builder p(int index)
stagePosition
.
Set the stage position index.
Equivalent to index(Coords.STAGE_POSITION, index)
.index
- stage position index (0-based)Coords.Builder index(java.lang.String axis, int index)
If you set a negative value, the axis will be removed.
index
in interface Coords.CoordsBuilder
axis
- coordinate axis, such as Coords.CHANNEL
index
- 0-based indexCoords.Builder removeAxis(java.lang.String axis)
removeAxis
in interface Coords.CoordsBuilder
axis
- coordinate axis, such as Coords.CHANNEL
Coords.Builder offset(java.lang.String axis, int offset) throws java.lang.IllegalArgumentException, java.lang.IndexOutOfBoundsException
offset
in interface Coords.CoordsBuilder
axis
- coordinate axis, such as Coords.CHANNEL
offset
- offset to be applied to axis
java.lang.IllegalArgumentException
- if axis
does not existjava.lang.IndexOutOfBoundsException
- if applying the offset would result
in a negative index.