Package org.pushingpixels.substance.api
Enum SubstanceSlices.TitleIconHorizontalGravity
- java.lang.Object
-
- java.lang.Enum<SubstanceSlices.TitleIconHorizontalGravity>
-
- org.pushingpixels.substance.api.SubstanceSlices.TitleIconHorizontalGravity
-
- Enclosing class:
- SubstanceSlices
public static enum SubstanceSlices.TitleIconHorizontalGravity extends java.lang.Enum<SubstanceSlices.TitleIconHorizontalGravity>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NEXT_TO_TITLEAlign icon next to the title text (on the left under LTR component orientation and on the right under RTL component orientation.NONEDo not show icon.OPPOSITE_CONTROL_BUTTONSAlign icon on the side of the title pane opposite to that of the control buttons.PLATFORMPlatform-specific icon gravity.SWING_DEFAULTSwing default icon gravity.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SubstanceSlices.TitleIconHorizontalGravityvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SubstanceSlices.TitleIconHorizontalGravity[]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.TitleIconHorizontalGravity PLATFORM
Platform-specific icon gravity.
-
NONE
public static final SubstanceSlices.TitleIconHorizontalGravity NONE
Do not show icon.
-
NEXT_TO_TITLE
public static final SubstanceSlices.TitleIconHorizontalGravity NEXT_TO_TITLE
Align icon next to the title text (on the left under LTR component orientation and on the right under RTL component orientation.
-
OPPOSITE_CONTROL_BUTTONS
public static final SubstanceSlices.TitleIconHorizontalGravity OPPOSITE_CONTROL_BUTTONS
Align icon on the side of the title pane opposite to that of the control buttons.
-
SWING_DEFAULT
public static final SubstanceSlices.TitleIconHorizontalGravity SWING_DEFAULT
Swing default icon gravity.
-
-
Method Detail
-
values
public static SubstanceSlices.TitleIconHorizontalGravity[] 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.TitleIconHorizontalGravity c : SubstanceSlices.TitleIconHorizontalGravity.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.TitleIconHorizontalGravity 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
-
-