public enum FontStyle extends Enum<FontStyle>
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf-pdfbox is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
Enum Constant and Description |
---|
BOLD
加粗
|
HIDDEN
隐藏(不可见)
|
ITALIC
斜体
|
ITALIC_BOLD
斜体加粗
|
ITALIC_LIGHT
斜体细体
|
ITALIC_STROKE
斜体空心
|
LIGHT
细体
|
NORMAL
正常
|
STROKE
空心
|
Modifier and Type | Method and Description |
---|---|
boolean |
isBold()
是否粗体
|
boolean |
isFill()
是否填充
|
boolean |
isItalic()
是否斜体
|
boolean |
isLight()
是否细体
|
boolean |
isStroke()
是否空心
|
static FontStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FontStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FontStyle NORMAL
public static final FontStyle STROKE
public static final FontStyle BOLD
public static final FontStyle LIGHT
public static final FontStyle HIDDEN
public static final FontStyle ITALIC
public static final FontStyle ITALIC_STROKE
public static final FontStyle ITALIC_BOLD
public static final FontStyle ITALIC_LIGHT
public static FontStyle[] values()
for (FontStyle c : FontStyle.values()) System.out.println(c);
public static 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 boolean isStroke()
public boolean isFill()
public boolean isBold()
public boolean isLight()
public boolean isItalic()
Copyright © 2024. All rights reserved.