DefaultAppearance

Inheritance: java.lang.Object

public final class DefaultAppearance

Describes default appearance of field (font, text size and color).

Constructors

ConstructorDescription
DefaultAppearance()Constructor of DefaultAppearance.
DefaultAppearance(IPdfDictionary engineDict)
DefaultAppearance(IPdfPrimitive appearance)
DefaultAppearance(String fontName, double fontSize, Color textColor)Constructor of DefaultAppearance.
DefaultAppearance(Font font, double fontSize, Color textColor)Constructor of DefaultAppearance.

Methods

MethodDescription
getFontSize()Gets font size in default appearance.
setFontSize(double value)Sets font size in default appearance.
getTextColor()Gets color of text in the default appearance.
setTextColor(Color color)Sets color of text in the default appearance.
getFontName()Gets font name in the default appearance.
setFontName(String value)Gets font name in the default appearance.
getFontResourceName()Gets font name in the default appearance.
setFontResourceName(String value)Gets font name in the default appearance.
getFont()Gets font specified as default for text.
getText()Gets the list of pdf operators which represent appearence.

DefaultAppearance()

public DefaultAppearance()

Constructor of DefaultAppearance.

DefaultAppearance(IPdfDictionary engineDict)

public DefaultAppearance(IPdfDictionary engineDict)

Parameters:

ParameterTypeDescription
engineDictIPdfDictionary

DefaultAppearance(IPdfPrimitive appearance)

public DefaultAppearance(IPdfPrimitive appearance)

Parameters:

ParameterTypeDescription
appearanceIPdfPrimitive

DefaultAppearance(String fontName, double fontSize, Color textColor)

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

Constructor of DefaultAppearance.

Parameters:

ParameterTypeDescription
fontNamejava.lang.StringFont name.
fontSizedoubleFont size.
textColorjava.awt.ColorColor of text.

DefaultAppearance(Font font, double fontSize, Color textColor)

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

Constructor of DefaultAppearance.

Parameters:

ParameterTypeDescription
fontFontFont which will be used as default.
fontSizedoubleFont size.
textColorjava.awt.ColorColor of text.

getFontSize()

public double getFontSize()

Gets font size in default appearance.

Returns: double - font size

setFontSize(double value)

public void setFontSize(double value)

Sets font size in default appearance.

Parameters:

ParameterTypeDescription
valuedoublefont size

getTextColor()

public Color getTextColor()

Gets color of text in the default appearance.

Returns: Color - Color object

setTextColor(Color color)

public void setTextColor(Color color)

Sets color of text in the default appearance.

Parameters:

ParameterTypeDescription
colorjava.awt.ColorColor object

getFontName()

public String getFontName()

Gets font name in the default appearance.

Returns: java.lang.String - String value

setFontName(String value)

public void setFontName(String value)

Gets font name in the default appearance.

Parameters:

ParameterTypeDescription
valuejava.lang.StringString value

getFontResourceName()

public final String getFontResourceName()

Gets font name in the default appearance.

Returns: java.lang.String - String value

setFontResourceName(String value)

public final void setFontResourceName(String value)

Gets font name in the default appearance.

Parameters:

ParameterTypeDescription
valuejava.lang.StringString value

getFont()

public Font getFont()

Gets font specified as default for text.

Returns: Font - Font value

getText()

public String getText()

Gets the list of pdf operators which represent appearence.

Returns: java.lang.String - String value