public enum AlignmentOnDimension extends Enum<AlignmentOnDimension>
Enum Constant and Description |
---|
CENTER
Aligns to the center position along the axis.
|
MAX
Aligns to the maximum position along the axis.
|
MIN
Aligns to the minimum position along the axis.
|
Modifier and Type | Method and Description |
---|---|
abstract int |
align(int larger,
int smaller,
int disconsiderLeft)
Determine the minimum value after alignment.
|
static AlignmentOnDimension |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AlignmentOnDimension[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlignmentOnDimension MIN
public static final AlignmentOnDimension CENTER
public static final AlignmentOnDimension MAX
public static AlignmentOnDimension[] values()
for (AlignmentOnDimension c : AlignmentOnDimension.values()) System.out.println(c);
public static AlignmentOnDimension valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract int align(int larger, int smaller, int disconsiderLeft)
larger
- the larger space which is aligned with, disconsidering the first disconsiderLeft
of it.smaller
- the smaller space to align.disconsiderLeft
- how much of larger
to disconsider, left-most.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.