Package org.gnome.pango
Enum Class Variant
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<Variant>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum Variant
extends Enum<Variant>
implements Enumeration
An enumeration specifying capitalization variant of the font.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA font with all characters replaced by smaller variants of the capital characters.A font with all characters replaced by smaller variants of the capital characters.A normal font.A font with the lower case characters replaced by smaller variants of the capital characters.A font with the lower case characters replaced by smaller variants of the capital characters.A font with capital letters that are more suitable for all-uppercase titles.A font with the upper case characters replaced by smaller variants of the capital letters. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the Variant classint
getValue()
Get the numeric value of this enumstatic Variant
of
(int value) Create a new Variant for the provided valuestatic Variant
Returns the enum constant of this class with the specified name.static Variant[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
A normal font. -
SMALL_CAPS
A font with the lower case characters replaced by smaller variants of the capital characters. -
ALL_SMALL_CAPS
A font with all characters replaced by smaller variants of the capital characters. Since: 1.50 -
PETITE_CAPS
A font with the lower case characters replaced by smaller variants of the capital characters. Petite Caps can be even smaller than Small Caps. Since: 1.50 -
ALL_PETITE_CAPS
A font with all characters replaced by smaller variants of the capital characters. Petite Caps can be even smaller than Small Caps. Since: 1.50 -
UNICASE
A font with the upper case characters replaced by smaller variants of the capital letters. Since: 1.50 -
TITLE_CAPS
A font with capital letters that are more suitable for all-uppercase titles. Since: 1.50
-
-
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
-
of
Create a new Variant for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-