Module technology.sola.engine
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
MainAxisChildren defines how a
GuiElement
's children when be positioned
when extra space is available on the main axis defined by its Direction
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionChildren are aligned to the center of the axis.Children are aligned to the end of the axis.Children are evenly distributed along the axis with the space between each adjacent item being the same.Children are evenly distributed with spacing between each pair of adjacent items being the same.Children are evenly distributed along the axis with the space between each adjacent item being the same.Children are aligned to the start of the axis. -
Method Summary
Modifier and TypeMethodDescriptionstatic MainAxisChildren
Returns the enum constant of this class with the specified name.static MainAxisChildren[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
START
Children are aligned to the start of the axis. -
CENTER
Children are aligned to the center of the axis. -
END
Children are aligned to the end of the axis. -
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
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
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
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
-