Class PositionChoices
Object
org.anchoranalysis.image.bean.nonbean.spatial.align.PositionChoices
public class PositionChoices extends Object
The choices of text that may describe the position of an entity along a particular axis.
All choices are case insensitive.
-
Constructor Summary
Constructors Constructor Description PositionChoices(String textMin, String textCenter, String textMax)PositionChoices(String textMin, String textCenter, String textMax, Optional<String> textMinAlternative) -
Method Summary
Modifier and Type Method Description AlignmentOnDimensionalignmentForDimension(String fieldName, String fieldValue)Calculates how to align a particular axis.
-
Constructor Details
-
Method Details
-
alignmentForDimension
public AlignmentOnDimension alignmentForDimension(String fieldName, String fieldValue) throws BeanMisconfiguredExceptionCalculates how to align a particular axis.- Parameters:
fieldName- the name of the field where the position was specified.fieldValue- the value of the field.- Returns:
- the minimum corner on the particular axis to locate the overlay.
- Throws:
BeanMisconfiguredException- if an invalid value for a field was used.
-