Enum Class MainAxisChildren

java.lang.Object
java.lang.Enum<MainAxisChildren>
technology.sola.engine.graphics.gui.style.property.MainAxisChildren
All Implemented Interfaces:
Serializable, Comparable<MainAxisChildren>, Constable

public enum MainAxisChildren extends Enum<MainAxisChildren>
MainAxisChildren defines how a GuiElement's children when be positioned when extra space is available on the main axis defined by its Direction.
  • Enum Constant Details

    • START

      public static final MainAxisChildren START
      Children are aligned to the start of the axis.
    • CENTER

      public static final MainAxisChildren CENTER
      Children are aligned to the center of the axis.
    • END

      public static final MainAxisChildren END
      Children are aligned to the end of the axis.
    • SPACE_BETWEEN

      public static final MainAxisChildren SPACE_BETWEEN
      Children are evenly distributed with spacing between each pair of adjacent items being the same. The first item is flush with the start of the axis and the last item is flush with the end of the axis.
    • SPACE_AROUND

      public static final MainAxisChildren SPACE_AROUND
      Children are evenly distributed along the axis with the space between each adjacent item being the same. The space before the first and after the last item is half the space between each item. If only one item is present it will be centered.
    • SPACE_EVENLY

      public static final MainAxisChildren SPACE_EVENLY
      Children are evenly distributed along the axis with the space between each adjacent item being the same. The space before the first and after the last item is also the same.
  • Method Details

    • values

      public static MainAxisChildren[] 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 MainAxisChildren 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