FontWeight Class

public final class FontWeight
extends ExpandableStringEnum<FontWeight>

Font weight.

Field Summary

Modifier and Type Field and Description
static final FontWeight BOLD

Static value bold for FontWeight.

static final FontWeight NORMAL

Static value normal for FontWeight.

Constructor Summary

Constructor Description
FontWeight()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of FontWeight value.

Method Summary

Modifier and Type Method and Description
static FontWeight fromString(String name)

Creates or finds a FontWeight from its string representation.

static Collection<FontWeight> values()

Gets known FontWeight values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BOLD

public static final FontWeight BOLD

Static value bold for FontWeight.

NORMAL

public static final FontWeight NORMAL

Static value normal for FontWeight.

Constructor Details

FontWeight

@Deprecated
public FontWeight()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of FontWeight value.

Method Details

fromString

public static FontWeight fromString(String name)

Creates or finds a FontWeight from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding FontWeight.

values

public static Collection values()

Gets known FontWeight values.

Returns:

known FontWeight values.

Applies to