Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions src/main/java/com/glencoesoftware/bioformats2raw/Axis.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,42 @@
*/
public class Axis {

private char type;
private String type;
private int length;
private int chunkSize;
private String dimensionType;

/**
* Create a new Axis.
*
* @param t axis type (e.g. 'X')
* @param len axis length
* @param chunk chunk length (expected to be in range [1, len])
* @param dimType Zarr dimension type e.g. 'space'
*/
public Axis(char t, int len, int chunk) {
public Axis(char t, int len, int chunk, String dimType) {
this(String.valueOf(t), len, chunk, dimType);
}

/**
* Create a new Axis.
*
* @param t axis type (e.g. 'X')
* @param len axis length
* @param chunk chunk length (expected to be in range [1, len])
* @param dimType Zarr dimension type e.g. 'space'
*/
public Axis(String t, int len, int chunk, String dimType) {
type = t;
length = len;
chunkSize = chunk;
dimensionType = dimType;
}

/**
* @return axis type (e.g. 'X')
*/
public char getType() {
public String getType() {
return type;
}

Expand All @@ -50,4 +65,11 @@ public int getChunkSize() {
return chunkSize;
}

/**
* @return dimension type e.g. 'space'
*/
public String getDimensionType() {
return dimensionType;
}

}
Loading