public class PositionChoicesConstants extends Object
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.
Modifier and Type | Field and Description |
---|---|
static String |
BOTTOM
Align to the bottom in the Y-dimension.
|
static String |
CENTER
Align to the center (middle) in the respective dimension.
|
static String |
LEFT
Align to the left in the X-dimension/
|
static String |
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.
|
static String |
RIGHT
Align to the right in the X-dimension/
|
static String |
TOP
Align to the top in the Y-dimension.
|
Modifier and Type | Method and Description |
---|---|
static AlignmentOnDimension |
alignX(String fieldValue)
How to align on the X-axis.
|
static AlignmentOnDimension |
alignY(String fieldValue)
How to align on the Y-axis.
|
static AlignmentOnDimension |
alignZ(String fieldValue)
How to align on the Z-axis.
|
public static final String LEFT
public static final String RIGHT
public static final String TOP
public static final String CENTER
public static final String BOTTOM
public static final String REPEAT
public static AlignmentOnDimension alignX(String fieldValue) throws BeanMisconfiguredException
fieldValue
- the text value entered into the field.BeanMisconfiguredException
- if fieldValue
contains an unrecognized value.public static AlignmentOnDimension alignY(String fieldValue) throws BeanMisconfiguredException
fieldValue
- the text value entered into the field.BeanMisconfiguredException
- if fieldValue
contains an unrecognized value.public static AlignmentOnDimension alignZ(String fieldValue) throws BeanMisconfiguredException
fieldValue
- the text value entered into the field.BeanMisconfiguredException
- if fieldValue
contains an unrecognized value.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.