public static enum FontStyleUtil.FontStyle extends Enum<FontStyleUtil.FontStyle>
Enum Constant and Description |
---|
BOLD
粗体
|
BOLD_ITALIC
粗体斜体
|
ITALIC
斜体
|
NORMAL
正常
|
Modifier and Type | Method and Description |
---|---|
int |
getWeight()
获取字重
|
boolean |
isBold()
是否为粗体
|
boolean |
isItalic()
是否为斜体
|
static FontStyleUtil.FontStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FontStyleUtil.FontStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FontStyleUtil.FontStyle NORMAL
public static final FontStyleUtil.FontStyle BOLD
public static final FontStyleUtil.FontStyle BOLD_ITALIC
public static final FontStyleUtil.FontStyle ITALIC
public static FontStyleUtil.FontStyle[] values()
for (FontStyleUtil.FontStyle c : FontStyleUtil.FontStyle.values()) System.out.println(c);
public static FontStyleUtil.FontStyle valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getWeight()
public boolean isBold()
public boolean isItalic()
Copyright © 2025. All rights reserved.