Package org.pushingpixels.substance.api
Enum SubstanceSlices.HorizontalGravity
- java.lang.Object
-
- java.lang.Enum<SubstanceSlices.HorizontalGravity>
-
- org.pushingpixels.substance.api.SubstanceSlices.HorizontalGravity
-
- Enclosing class:
- SubstanceSlices
public static enum SubstanceSlices.HorizontalGravity extends java.lang.Enum<SubstanceSlices.HorizontalGravity>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CENTEREDCenter content horizontally in the parent container.LEADINGAlign content to the leading edge of the parent container.PLATFORMPlatform-specific content gravity.SWING_DEFAULTSwing default content gravity.TRAILINGAlign content to the trailing edge of the parent container.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SubstanceSlices.HorizontalGravityvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SubstanceSlices.HorizontalGravity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLATFORM
public static final SubstanceSlices.HorizontalGravity PLATFORM
Platform-specific content gravity.
-
LEADING
public static final SubstanceSlices.HorizontalGravity LEADING
Align content to the leading edge of the parent container. Leading edge is left under LTR component orientation and right under RTL component orientation.
-
CENTERED
public static final SubstanceSlices.HorizontalGravity CENTERED
Center content horizontally in the parent container.
-
TRAILING
public static final SubstanceSlices.HorizontalGravity TRAILING
Align content to the trailing edge of the parent container. Trailing edge is right under LTR component orientation and left under RTL component orientation.
-
SWING_DEFAULT
public static final SubstanceSlices.HorizontalGravity SWING_DEFAULT
Swing default content gravity.
-
-
Method Detail
-
values
public static SubstanceSlices.HorizontalGravity[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SubstanceSlices.HorizontalGravity c : SubstanceSlices.HorizontalGravity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubstanceSlices.HorizontalGravity valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-