| 限定符和类型 | 类和说明 |
|---|---|
static class |
Font.Style |
| 构造器和说明 |
|---|
Font(String name,
int size) |
Font(String name,
int size,
Color color) |
Font(String name,
int size,
int style,
Color color) |
| 限定符和类型 | 方法和说明 |
|---|---|
Font |
bold() |
Font |
clone() |
Font |
delBold() |
Font |
delItalic() |
Font |
delUnderLine() |
boolean |
equals(Object o) |
int |
getCharset() |
Color |
getColor() |
int |
getFamily() |
String |
getName() |
String |
getScheme() |
int |
getSize() |
int |
getStyle() |
int |
hashCode() |
boolean |
isBold() |
boolean |
isItalic() |
boolean |
isUnderLine() |
Font |
italic() |
static Font |
parse(String fontString)
Create a Font from font-string
italic_bold_underLine_size_family_color or italic bold underLine size family color
eq: italic_bold_12_宋体 // 斜体 加粗 12号字 宋体
eq: bold underLine 12 'Times New Roman' red // 加粗 12号字 Times New Roman字体 红字
|
Font |
setCharset(int charset) |
Font |
setColor(Color color) |
Font |
setFamily(int family) |
Font |
setName(String name) |
Font |
setScheme(String scheme) |
Font |
setSize(int size) |
Font |
setStyle(int style) |
org.dom4j.Element |
toDom4j(org.dom4j.Element root) |
String |
toString() |
Font |
underLine() |
public Font(String name, int size)
public static Font parse(String fontString) throws FontParseException
fontString - italic_bold_underLine_size_family_color or italic bold underLine size family colorFontFontParseExceptionpublic int getSize()
public Font setSize(int size)
public String getName()
public int getFamily()
public Font setFamily(int family)
public Color getColor()
public int getStyle()
public Font setStyle(int style)
public String getScheme()
public int getCharset()
public Font setCharset(int charset)
public Font italic()
public Font bold()
public Font underLine()
public boolean isItalic()
public boolean isBold()
public boolean isUnderLine()
public Font delItalic()
public Font delBold()
public Font delUnderLine()
public org.dom4j.Element toDom4j(org.dom4j.Element root)
Copyright © 2020. All rights reserved.