Class PositionChoicesConstants
Object
PositionChoicesConstants
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
FieldsModifier and TypeFieldDescriptionstatic final String
Align to the bottom in the Y-dimension.static final String
Align to the center (middle) in the respective dimension.static final String
Align to the left in the X-dimension/static final String
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.static final String
Align to the right in the X-dimension/static final String
Align to the top in the Y-dimension. -
Method Summary
Modifier and TypeMethodDescriptionstatic AlignmentOnDimension
How to align on the X-axis.static AlignmentOnDimension
How to align on the Y-axis.static AlignmentOnDimension
How to align on the Z-axis.
-
Field Details
-
LEFT
Align to the left in the X-dimension/- See Also:
-
RIGHT
Align to the right in the X-dimension/- See Also:
-
TOP
Align to the top in the Y-dimension.- See Also:
-
CENTER
Align to the center (middle) in the respective dimension.- See Also:
-
BOTTOM
Align to the bottom in the Y-dimension.- See Also:
-
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:
-
-
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
- iffieldValue
contains 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
- iffieldValue
contains 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
- iffieldValue
contains an unrecognized value.
-