Enum Class Flex.CrossAlignment

java.lang.Object
java.lang.Enum<Flex.CrossAlignment>
limn.scene.layout.Flex.CrossAlignment
All Implemented Interfaces:
Serializable, Comparable<Flex.CrossAlignment>, Constable
Enclosing class:
Flex

public static enum Flex.CrossAlignment extends Enum<Flex.CrossAlignment>
Cross-axis placement. START/CENTER/END/STRETCH align boxes; BASELINE aligns text.

Use BASELINE for a row that mixes ControlSize steps and carries text. The cross-step baseline offset reduces to body * 0.341796875 (a function of the type ramp alone), so no choice of control heights can cancel it, and under CENTER two controls at adjacent steps sit with their baselines up to 0.69pt apart (2.73pt across the full ramp). BASELINE is ignored on a Column, where the cross axis is horizontal and there is no shared baseline.

  • Enum Constant Details

  • Method Details

    • values

      public static Flex.CrossAlignment[] 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

      public static Flex.CrossAlignment valueOf(String name)
      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 name
      NullPointerException - if the argument is null