public class Font extends Object
Font complex type的 Java 类。
以下模式片段指定包含在此类中的预期内容。
<complexType name="Font">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="size" type="{http://www.w3.org/2001/XMLSchema}double" />
<attribute name="isBold" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="isItalic" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="isUnderline" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="isStrikeThrough" type="{http://www.w3.org/2001/XMLSchema}boolean" />
</restriction>
</complexContent>
</complexType>
| 限定符和类型 | 字段和说明 |
|---|---|
protected Boolean |
isBold |
protected Boolean |
isItalic |
protected Boolean |
isStrikeThrough |
protected Boolean |
isUnderline |
protected String |
name |
protected Double |
size |
| 构造器和说明 |
|---|
Font() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getName()
获取name属性的值。
|
Double |
getSize()
获取size属性的值。
|
Boolean |
isIsBold()
获取isBold属性的值。
|
Boolean |
isIsItalic()
获取isItalic属性的值。
|
Boolean |
isIsStrikeThrough()
获取isStrikeThrough属性的值。
|
Boolean |
isIsUnderline()
获取isUnderline属性的值。
|
void |
setIsBold(Boolean value)
设置isBold属性的值。
|
void |
setIsItalic(Boolean value)
设置isItalic属性的值。
|
void |
setIsStrikeThrough(Boolean value)
设置isStrikeThrough属性的值。
|
void |
setIsUnderline(Boolean value)
设置isUnderline属性的值。
|
void |
setName(String value)
设置name属性的值。
|
void |
setSize(Double value)
设置size属性的值。
|
protected String name
protected Double size
protected Boolean isBold
protected Boolean isItalic
protected Boolean isUnderline
protected Boolean isStrikeThrough
public void setIsItalic(Boolean value)
value - allowed object is
Booleanpublic void setIsUnderline(Boolean value)
value - allowed object is
Booleanpublic Boolean isIsStrikeThrough()
BooleanCopyright © 2021. All rights reserved.