java.lang.Object
com.genologics.ri.containertype.Dimension
- All Implemented Interfaces:
Serializable
Dimension is a child element of container type and describes the size and
identification method of the horizontal and vertical dimensions of the
coordinate system of the container type.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the offset applied to the first element in this dimension.getSize()Gets the size (number of elements) in this dimension.isAlpha()Checks if numbering in this dimension is alphabetic.voidSets whether numbering in this dimension is alphabetic.voidSets the offset applied to the first element in this dimension.voidSets the size (number of elements) in this dimension.
-
Field Details
-
alpha
Whether numbering in this dimension is using letters (true) or numbers (false). -
offset
The offset applied to the first element in this dimension. For example, an offset of 1 means the first element is numbered/lettered as 1 or B instead of 0 or A. -
size
The size (number of elements) in this dimension.
-
-
Constructor Details
-
Dimension
public Dimension()Default constructor for creating a new dimension. -
Dimension
Constructor for creating a dimension with a specified size.- Parameters:
size- The size (number of elements) in this dimension.
-
-
Method Details
-
isAlpha
Checks if numbering in this dimension is alphabetic.- Returns:
trueif using letters (A, B, C...),falseif using numbers (0, 1, 2...).
-
setAlpha
Sets whether numbering in this dimension is alphabetic.- Parameters:
alpha-trueif using letters (A, B, C...),falseif using numbers (0, 1, 2...).
-
getOffset
Gets the offset applied to the first element in this dimension.- Returns:
- The offset value.
-
setOffset
Sets the offset applied to the first element in this dimension.- Parameters:
offset- The offset value to set.
-
getSize
Gets the size (number of elements) in this dimension.- Returns:
- The size of this dimension.
-
setSize
Sets the size (number of elements) in this dimension.- Parameters:
size- The size to set.
-