Enum PlaceholderAlignment
- java.lang.Object
-
- java.lang.Enum<PlaceholderAlignment>
-
- io.github.humbleui.skija.paragraph.PlaceholderAlignment
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PlaceholderAlignment>
public enum PlaceholderAlignment extends java.lang.Enum<PlaceholderAlignment>
Where to vertically align the placeholder relative to the surrounding text.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABOVE_BASELINEAlign the bottom edge of the placeholder with the baseline such that the placeholder sits on top of the baseline.BASELINEMatch the baseline of the placeholder with the baseline.BELOW_BASELINEAlign the top edge of the placeholder with the baseline specified in such that the placeholder hangs below the baseline.BOTTOMAlign the bottom edge of the placeholder with the top edge of the font.MIDDLEAlign the middle of the placeholder with the middle of the text.TOPAlign the top edge of the placeholder with the top edge of the font.
-
Field Summary
Fields Modifier and Type Field Description static PlaceholderAlignment[]_values
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PlaceholderAlignmentvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PlaceholderAlignment[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BASELINE
public static final PlaceholderAlignment BASELINE
Match the baseline of the placeholder with the baseline.
-
ABOVE_BASELINE
public static final PlaceholderAlignment ABOVE_BASELINE
Align the bottom edge of the placeholder with the baseline such that the placeholder sits on top of the baseline.
-
BELOW_BASELINE
public static final PlaceholderAlignment BELOW_BASELINE
Align the top edge of the placeholder with the baseline specified in such that the placeholder hangs below the baseline.
-
TOP
public static final PlaceholderAlignment TOP
Align the top edge of the placeholder with the top edge of the font. When the placeholder is very tall, the extra space will hang from the top and extend through the bottom of the line.
-
BOTTOM
public static final PlaceholderAlignment BOTTOM
Align the bottom edge of the placeholder with the top edge of the font. When the placeholder is very tall, the extra space will rise from the bottom and extend through the top of the line.
-
MIDDLE
public static final PlaceholderAlignment MIDDLE
Align the middle of the placeholder with the middle of the text. When the placeholder is very tall, the extra space will grow equally from the top and bottom of the line.
-
-
Field Detail
-
_values
@Internal public static final PlaceholderAlignment[] _values
-
-
Method Detail
-
values
public static PlaceholderAlignment[] 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 (PlaceholderAlignment c : PlaceholderAlignment.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PlaceholderAlignment 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
-
-