FontStyle Class

public final class FontStyle
extends ExpandableStringEnum<FontStyle>

Font style.

Field Summary

Modifier and Type Field and Description
static final FontStyle ITALIC

Static value italic for FontStyle.

static final FontStyle NORMAL

Static value normal for FontStyle.

Constructor Summary

Constructor Description
FontStyle()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of FontStyle value.

Method Summary

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

Creates or finds a FontStyle from its string representation.

static Collection<FontStyle> values()

Gets known FontStyle values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ITALIC

public static final FontStyle ITALIC

Static value italic for FontStyle.

NORMAL

public static final FontStyle NORMAL

Static value normal for FontStyle.

Constructor Details

FontStyle

@Deprecated
public FontStyle()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of FontStyle value.

Method Details

fromString

public static FontStyle fromString(String name)

Creates or finds a FontStyle from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding FontStyle.

values

public static Collection values()

Gets known FontStyle values.

Returns:

known FontStyle values.

Applies to