Sdílet prostřednictvím


DocumentFontStyle Class

public final class DocumentFontStyle
extends ExpandableStringEnum<DocumentFontStyle>

Font style.

Field Summary

Modifier and Type Field and Description
static final DocumentFontStyle ITALIC

Characters are visually slanted to the right.

static final DocumentFontStyle NORMAL

Characters are represented normally.

Constructor Summary

Constructor Description
DocumentFontStyle()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DocumentFontStyle value.

Method Summary

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

Creates or finds a DocumentFontStyle from its string representation.

static Collection<DocumentFontStyle> values()

Gets known DocumentFontStyle values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ITALIC

public static final DocumentFontStyle ITALIC

Characters are visually slanted to the right.

NORMAL

public static final DocumentFontStyle NORMAL

Characters are represented normally.

Constructor Details

DocumentFontStyle

@Deprecated
public DocumentFontStyle()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DocumentFontStyle value.

Method Details

fromString

public static DocumentFontStyle fromString(String name)

Creates or finds a DocumentFontStyle from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding DocumentFontStyle.

values

public static Collection values()

Gets known DocumentFontStyle values.

Returns:

known DocumentFontStyle values.

Applies to