Compartir a través de


DocumentFontWeight Class

public final class DocumentFontWeight
extends ExpandableStringEnum<DocumentFontWeight>

Font weight.

Field Summary

Modifier and Type Field and Description
static final DocumentFontWeight BOLD

Characters are represented with thicker strokes.

static final DocumentFontWeight NORMAL

Characters are represented normally.

Constructor Summary

Constructor Description
DocumentFontWeight()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DocumentFontWeight value.

Method Summary

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

Creates or finds a DocumentFontWeight from its string representation.

static Collection<DocumentFontWeight> values()

Gets known DocumentFontWeight values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BOLD

public static final DocumentFontWeight BOLD

Characters are represented with thicker strokes.

NORMAL

public static final DocumentFontWeight NORMAL

Characters are represented normally.

Constructor Details

DocumentFontWeight

@Deprecated
public DocumentFontWeight()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DocumentFontWeight value.

Method Details

fromString

public static DocumentFontWeight fromString(String name)

Creates or finds a DocumentFontWeight from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding DocumentFontWeight.

values

public static Collection values()

Gets known DocumentFontWeight values.

Returns:

known DocumentFontWeight values.

Applies to