Skip to content
Merged
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
53 changes: 53 additions & 0 deletions src/main/java/com/glencoesoftware/bioformats2raw/Axis.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/**
* Copyright (c) 2025 Glencoe Software, Inc. All rights reserved.
*
* This software is distributed under the terms described by the LICENSE.txt
* file you can find at the root of the distribution bundle. If the file is
* missing please request a copy by contacting info@glencoesoftware.com
*/
package com.glencoesoftware.bioformats2raw;

/**
* Describe an axis, including type and dimensions.
*/
public class Axis {

private char type;
private int length;
private int chunkSize;

/**
* 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])
*/
public Axis(char t, int len, int chunk) {
type = t;
length = len;
chunkSize = chunk;
}

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

/**
* @return axis length
*/
public int getLength() {
return length;
}

/**
* @return chunk length
*/
public int getChunkSize() {
return chunkSize;
}

}
Loading