Interface Coords.Builder
- All Superinterfaces:
Coords.CoordsBuilder
- Enclosing interface:
Coords
The real Builder for Coords.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()c(int channel) Shorthand forchannel.channel(int channel) Set the channel index.Set the index along a given axis.Offset the given axis by a given count.p(int index) Shorthand forstagePosition.removeAxis(String axis) Remove the specified axis.stagePosition(int index) Set the stage position index.t(int timepoint) Shorthand fortime.time(int timepoint) Deprecated.Due to being confusing with physical time.timePoint(int frame) Set the time point (frame) index.z(int slice) Shorthand forzSlice(int).zSlice(int slice) Set the Z slice index.
-
Method Details
-
build
Coords build()- Specified by:
buildin interfaceCoords.CoordsBuilder
-
channel
Set the channel index. Equivalent toindex(Coords.CHANNEL, channel).- Specified by:
channelin interfaceCoords.CoordsBuilder- Parameters:
channel- channel index (0-based)- Returns:
- this
-
c
Shorthand forchannel.- Parameters:
channel- channel index (0-based)- Returns:
- this
-
timePoint
Set the time point (frame) index. Equivalent toindex(Coords.TIME_POINT, frame).- Parameters:
frame- time point (frame) index (0-based)- Returns:
- this
-
time
Deprecated.Due to being confusing with physical time.Same astimePoint.- Specified by:
timein interfaceCoords.CoordsBuilder- Parameters:
timepoint- (0-based)- Returns:
- this
-
t
-
zSlice
Set the Z slice index. Equivalent toindex(Coords.Z_SLICE, slice).- Parameters:
slice- z slice index (0-based)- Returns:
- this
-
z
Shorthand forzSlice(int). Set the Z slice index. Equivalent toindex(Coords.Z_SLICE, slice).- Specified by:
zin interfaceCoords.CoordsBuilder- Parameters:
slice- z slice index (0-based)- Returns:
- this
-
stagePosition
Set the stage position index. Equivalent toindex(Coords.STAGE_POSITION, index).- Specified by:
stagePositionin interfaceCoords.CoordsBuilder- Parameters:
index- stage position index (0-based)- Returns:
- this
-
p
Shorthand forstagePosition. Set the stage position index. Equivalent toindex(Coords.STAGE_POSITION, index).- Parameters:
index- stage position index (0-based)- Returns:
- this
-
index
Set the index along a given axis.If you set a negative value, the axis will be removed.
- Specified by:
indexin interfaceCoords.CoordsBuilder- Parameters:
axis- coordinate axis, such asCoords.CHANNELindex- 0-based index- Returns:
- this
-
removeAxis
Remove the specified axis.- Specified by:
removeAxisin interfaceCoords.CoordsBuilder- Parameters:
axis- coordinate axis, such asCoords.CHANNEL- Returns:
- this
-
offset
Coords.Builder offset(String axis, int offset) throws IllegalArgumentException, IndexOutOfBoundsException Offset the given axis by a given count.- Specified by:
offsetin interfaceCoords.CoordsBuilder- Parameters:
axis- coordinate axis, such asCoords.CHANNELoffset- offset to be applied toaxis- Returns:
- this
- Throws:
IllegalArgumentException- ifaxisdoes not existIndexOutOfBoundsException- if applying the offset would result in a negative index.
-