Package org.smallmind.nutsnbolts.layout
Enum TapeMeasure
- java.lang.Object
-
- java.lang.Enum<TapeMeasure>
-
- org.smallmind.nutsnbolts.layout.TapeMeasure
-
- All Implemented Interfaces:
Serializable,Comparable<TapeMeasure>
public enum TapeMeasure extends Enum<TapeMeasure>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract doublegetMeasure(Bias bias, ParaboxElement<?> element, LayoutTailor tailor)static TapeMeasurevalueOf(String name)Returns the enum constant of this type with the specified name.static TapeMeasure[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MINIMUM
public static final TapeMeasure MINIMUM
-
PREFERRED
public static final TapeMeasure PREFERRED
-
MAXIMUM
public static final TapeMeasure MAXIMUM
-
-
Method Detail
-
values
public static TapeMeasure[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TapeMeasure c : TapeMeasure.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TapeMeasure valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getMeasure
public abstract double getMeasure(Bias bias, ParaboxElement<?> element, LayoutTailor tailor)
-
-