public class PositionChoices extends Object
All choices are case insensitive.
Constructor and Description |
---|
PositionChoices(String textMin,
String textCenter,
String textMax) |
PositionChoices(String textMin,
String textCenter,
String textMax,
Optional<String> textMinAlternative) |
Modifier and Type | Method and Description |
---|---|
AlignmentOnDimension |
alignmentForDimension(String fieldName,
String fieldValue)
Calculates how to align a particular axis.
|
public PositionChoices(String textMin, String textCenter, String textMax, Optional<String> textMinAlternative)
public AlignmentOnDimension alignmentForDimension(String fieldName, String fieldValue) throws BeanMisconfiguredException
fieldName
- the name of the field where the position was specified.fieldValue
- the value of the field.BeanMisconfiguredException
- if an invalid value for a field was used.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.