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<W extends Flex<W>>

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.

A Wrap reads them as a row does, within the height of each of its runs. A Grid reads them as a row does within the height of each of its rows, and as a column does across the width of each of its columns.

A 1.x minor release may add constants to this enum: a switch over it needs a default branch.

  • 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