Class PositionChoicesConstants
Object
org.anchoranalysis.image.bean.nonbean.spatial.align.PositionChoicesConstants
public class PositionChoicesConstants extends Object
A constant set of text strings used to indicate particular choices.
These let these strings be reused within beans consistently.
Note that the concept of top and bottom in the Y dimension uses the coordinate system expected by anchor images, where the minimum value indicates the top of the image. Other image processing libraries can use different coordinate systems.
- Author:
- Owen Feehan
-
Field Summary
Fields Modifier and Type Field Description static StringBOTTOMAlign to the bottom in the Y-dimension.static StringCENTERAlign to the center (middle) in the respective dimension.static StringLEFTAlign to the left in the X-dimension/static StringREPEATThe choice which will cause a single-slice in the z-dimension to be duplicated across the z-dimension to match the z-size onto which it is projected.static StringRIGHTAlign to the right in the X-dimension/static StringTOPAlign to the top in the Y-dimension. -
Method Summary
Modifier and Type Method Description static AlignmentOnDimensionalignX(String fieldValue)How to align on the X-axis.static AlignmentOnDimensionalignY(String fieldValue)How to align on the Y-axis.static AlignmentOnDimensionalignZ(String fieldValue)How to align on the Z-axis.
-
Field Details
-
LEFT
Align to the left in the X-dimension/- See Also:
- Constant Field Values
-
RIGHT
Align to the right in the X-dimension/- See Also:
- Constant Field Values
-
TOP
Align to the top in the Y-dimension.- See Also:
- Constant Field Values
-
CENTER
Align to the center (middle) in the respective dimension.- See Also:
- Constant Field Values
-
BOTTOM
Align to the bottom in the Y-dimension.- See Also:
- Constant Field Values
-
REPEAT
The choice which will cause a single-slice in the z-dimension to be duplicated across the z-dimension to match the z-size onto which it is projected.- See Also:
- Constant Field Values
-
-
Method Details
-
alignX
How to align on the X-axis.- Parameters:
fieldValue- the text value entered into the field.- Returns:
- alignment for the respective dimension.
- Throws:
BeanMisconfiguredException- iffieldValuecontains an unrecognized value.
-
alignY
How to align on the Y-axis.- Parameters:
fieldValue- the text value entered into the field.- Returns:
- alignment for the respective dimension.
- Throws:
BeanMisconfiguredException- iffieldValuecontains an unrecognized value.
-
alignZ
How to align on the Z-axis.- Parameters:
fieldValue- the text value entered into the field.- Returns:
- alignment for the respective dimension.
- Throws:
BeanMisconfiguredException- iffieldValuecontains an unrecognized value.
-