Package org.gnome.pango
Enum Class Weight
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<Weight>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum Weight
extends Enum<Weight>
implements Enumeration
An enumeration specifying the weight (boldness) of a font.
Weight is specified as a numeric value ranging from 100 to 1000. This enumeration simply provides some common, predefined values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionthe bold weight (= 700)the book weight (= 380) Since: 1.24)the heavy weight (= 900)the light weight (= 300)the medium weight (= 500) Since: 1.24the default weight (= 400)the semibold weight (= 600)the semilight weight (= 350) Since: 1.36.7the thin weight (= 100) Since: 1.24the ultrabold weight (= 800)the ultraheavy weight (= 1000) Since: 1.24the ultralight weight (= 200) -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the Weight classint
getValue()
Get the numeric value of this enumstatic Weight
of
(int value) Create a new Weight for the provided valuestatic Weight
Returns the enum constant of this class with the specified name.static Weight[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
THIN
the thin weight (= 100) Since: 1.24 -
ULTRALIGHT
the ultralight weight (= 200) -
LIGHT
the light weight (= 300) -
SEMILIGHT
the semilight weight (= 350) Since: 1.36.7 -
BOOK
the book weight (= 380) Since: 1.24) -
NORMAL
the default weight (= 400) -
MEDIUM
the medium weight (= 500) Since: 1.24 -
SEMIBOLD
the semibold weight (= 600) -
BOLD
the bold weight (= 700) -
ULTRABOLD
the ultrabold weight (= 800) -
HEAVY
the heavy weight (= 900) -
ULTRAHEAVY
the ultraheavy weight (= 1000) Since: 1.24
-
-
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 Weight 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
-