Enum Class AxisConfig
- All Implemented Interfaces:
Serializable,Comparable<AxisConfig>,Constable
Denies how each of the three axis parameters are computed based on the available constraints.
Note: If both min and max are defined, size is ignored.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf only Max is constrained.If Max and Size are constrained.If Min and Max are constrained.If Min, Max and Size are constrained the Size is ignored.If only Min is constrained.If Min and Size are constrained .If nothing is constrained.If only Size is constrained. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intfinal org.apache.commons.lang3.function.TriFunction<Constraint,Constraint, Constraint, Double> final org.apache.commons.lang3.function.TriFunction<Constraint,Constraint, Constraint, Double> final org.apache.commons.lang3.function.TriFunction<Constraint,Constraint, Constraint, Double> -
Method Summary
Modifier and TypeMethodDescriptionstatic AxisConfiggetConfigFor(@Nullable Constraint min, @Nullable Constraint max, @Nullable Constraint size) static AxisConfigReturns the enum constant of this class with the specified name.static AxisConfig[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
If nothing is constrained. min=0, max=0, size=0 -
MIN_ONLY
If only Min is constrained. min=min, max=min, size=0 -
MAX_ONLY
If only Max is constrained. min=max, max=max, size=0 -
SIZE_ONLY
If only Size is constrained. min=0, max=size, size=size -
MIN_SIZE
If Min and Size are constrained . min=min, max=min+size, size=size -
MAX_SIZE
If Max and Size are constrained. min=max-size, max=max, size=size -
MIN_MAX
If Min and Max are constrained. min=min, max=max, size=max-min -
MIN_MAX_SIZE
If Min, Max and Size are constrained the Size is ignored. min=min, max=max, size=max-min
-
-
Field Details
-
constraints
public final int constraints -
min
public final org.apache.commons.lang3.function.TriFunction<Constraint,Constraint, minConstraint, Double> -
max
public final org.apache.commons.lang3.function.TriFunction<Constraint,Constraint, maxConstraint, Double> -
size
public final org.apache.commons.lang3.function.TriFunction<Constraint,Constraint, sizeConstraint, Double>
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getConfigFor
public static AxisConfig getConfigFor(@Nullable @Nullable Constraint min, @Nullable @Nullable Constraint max, @Nullable @Nullable Constraint size)
-