Package swingtree
Enum Class UI.Axis
- All Implemented Interfaces:
Serializable
,Comparable<UI.Axis>
,Constable
,UIEnum<UI.Axis>
- Enclosing class:
- UI
Used to define how a layout manager (typically the
Create a simple box layout for your components by calling the
BoxLayout
)
will lay out components along the given axis. Create a simple box layout for your components by calling the
UIForAnySwing.withBoxLayout(Axis)
method,
or use Layout.box(Axis)
factory method returning a Layout
config
object which can be passed to the style API (see UIForAnySwing.withStyle(Styler)
and ComponentStyleDelegate.layout(Layout)
).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSpecifies that something is laid out in the direction of a line of text as determined by the target container'sComponentOrientation
property.Specifies that something is laid out in the direction that lines flow across a page as determined by the target container'sComponentOrientation
property.Specifies that something is laid out left to right.Specifies that something is laid out top to bottom. -
Method Summary
-
Enum Constant Details
-
X
Specifies that something is laid out left to right. -
Y
Specifies that something is laid out top to bottom. -
LINE
Specifies that something is laid out in the direction of a line of text as determined by the target container'sComponentOrientation
property. -
PAGE
Specifies that something is laid out in the direction that lines flow across a page as determined by the target container'sComponentOrientation
property.
-
-
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
-
forBoxLayout
public int forBoxLayout()
-