DefaultAppearance
内容
[
隐藏
]遗产: java.lang.Object
public final class DefaultAppearance
描述字段的默认外观(字体、文本大小和颜色)。
构造函数
构造函数 | 描述 |
---|---|
DefaultAppearance() | DefaultAppearance 的构造函数。 |
DefaultAppearance(IPdfDictionary engineDict) | |
DefaultAppearance(IPdfPrimitive appearance) | |
DefaultAppearance(String fontName, double fontSize, Color textColor) | DefaultAppearance 的构造函数。 |
DefaultAppearance(Font font, double fontSize, Color textColor) | DefaultAppearance 的构造函数。 |
方法
方法 | 描述 |
---|---|
equals(Object arg0) | |
getClass() | |
getFont() | 获取指定为文本默认的字体。 |
getFontName() | 获取默认外观中的字体名称。 |
getFontResourceName() | 获取默认外观中的字体名称。 |
getFontSize() | 获取默认外观的字体大小。 |
getText() | 获取表示外观的 pdf 运算符列表。 |
getTextColor() | 获取默认外观中文本的颜色。 |
hashCode() | |
notify() | |
notifyAll() | |
setFontName(String value) | 获取默认外观中的字体名称。 |
setFontResourceName(String value) | 获取默认外观中的字体名称。 |
setFontSize(double value) | 设置默认外观的字体大小。 |
setTextColor(Color color) | 设置默认外观中的文本颜色。 |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
DefaultAppearance()
public DefaultAppearance()
DefaultAppearance 的构造函数。
DefaultAppearance(IPdfDictionary engineDict)
public DefaultAppearance(IPdfDictionary engineDict)
参数:
范围 | 类型 | 描述 |
---|---|---|
engineDict | IPdfDictionary |
DefaultAppearance(IPdfPrimitive appearance)
public DefaultAppearance(IPdfPrimitive appearance)
参数:
范围 | 类型 | 描述 |
---|---|---|
appearance | IPdfPrimitive |
DefaultAppearance(String fontName, double fontSize, Color textColor)
public DefaultAppearance(String fontName, double fontSize, Color textColor)
DefaultAppearance 的构造函数。
参数:
范围 | 类型 | 描述 |
---|---|---|
fontName | java.lang.String | 字体名称。 |
fontSize | double | 字体大小。 |
textColor | java.awt.Color | 文本的颜色。 |
DefaultAppearance(Font font, double fontSize, Color textColor)
public DefaultAppearance(Font font, double fontSize, Color textColor)
DefaultAppearance 的构造函数。
参数:
范围 | 类型 | 描述 |
---|---|---|
font | Font | 将用作默认字体。 |
fontSize | double | 字体大小。 |
textColor | java.awt.Color | 文本的颜色。 |
equals(Object arg0)
public boolean equals(Object arg0)
参数:
范围 | 类型 | 描述 |
---|---|---|
arg0 | java.lang.Object |
退货: 布尔值
getClass()
public final native Class<?> getClass()
退货: java.lang.Class
getFont()
public Font getFont()
获取指定为文本默认的字体。
退货: Font - 字体值
getFontName()
public String getFontName()
获取默认外观中的字体名称。
退货: java.lang.String - 字符串值
getFontResourceName()
public final String getFontResourceName()
获取默认外观中的字体名称。
退货: java.lang.String - 字符串值
getFontSize()
public double getFontSize()
获取默认外观的字体大小。
退货: 双字号
getText()
public String getText()
获取表示外观的 pdf 运算符列表。
退货: java.lang.String - 字符串值
getTextColor()
public Color getTextColor()
获取默认外观中文本的颜色。
退货: Color 颜色对象
hashCode()
public native int hashCode()
退货: 整数
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setFontName(String value)
public void setFontName(String value)
获取默认外观中的字体名称。
参数:
范围 | 类型 | 描述 |
---|---|---|
value | java.lang.String | 字符串值 |
setFontResourceName(String value)
public final void setFontResourceName(String value)
获取默认外观中的字体名称。
参数:
范围 | 类型 | 描述 |
---|---|---|
value | java.lang.String | 字符串值 |
setFontSize(double value)
public void setFontSize(double value)
设置默认外观的字体大小。
参数:
范围 | 类型 | 描述 |
---|---|---|
value | double | 字体大小 |
setTextColor(Color color)
public void setTextColor(Color color)
设置默认外观中的文本颜色。
参数:
范围 | 类型 | 描述 |
---|---|---|
color | java.awt.Color | 颜色对象 |
toString()
public String toString()
退货: java.lang.字符串
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
参数:
范围 | 类型 | 描述 |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
参数:
范围 | 类型 | 描述 |
---|---|---|
arg0 | long | |
arg1 | int |