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)

参数:

范围类型描述
engineDictIPdfDictionary

DefaultAppearance(IPdfPrimitive appearance)

public DefaultAppearance(IPdfPrimitive appearance)

参数:

范围类型描述
appearanceIPdfPrimitive

DefaultAppearance(String fontName, double fontSize, Color textColor)

public DefaultAppearance(String fontName, double fontSize, Color textColor)

DefaultAppearance 的构造函数。

参数:

范围类型描述
fontNamejava.lang.String字体名称。
fontSizedouble字体大小。
textColorjava.awt.Color文本的颜色。

DefaultAppearance(Font font, double fontSize, Color textColor)

public DefaultAppearance(Font font, double fontSize, Color textColor)

DefaultAppearance 的构造函数。

参数:

范围类型描述
fontFont将用作默认字体。
fontSizedouble字体大小。
textColorjava.awt.Color文本的颜色。

equals(Object arg0)

public boolean equals(Object arg0)

参数:

范围类型描述
arg0java.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)

获取默认外观中的字体名称。

参数:

范围类型描述
valuejava.lang.String字符串值

setFontResourceName(String value)

public final void setFontResourceName(String value)

获取默认外观中的字体名称。

参数:

范围类型描述
valuejava.lang.String字符串值

setFontSize(double value)

public void setFontSize(double value)

设置默认外观的字体大小。

参数:

范围类型描述
valuedouble字体大小

setTextColor(Color color)

public void setTextColor(Color color)

设置默认外观中的文本颜色。

参数:

范围类型描述
colorjava.awt.Color颜色对象

toString()

public String toString()

退货: java.lang.字符串

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

参数:

范围类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

参数:

范围类型描述
arg0long
arg1int