Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.interactive.form

pack-priv Class AppearanceStyle

extends Object
Class Inheritance
Imports
org.apache.pdfbox.pdmodel.font.PDFont

Define styling attributes to be used for text formatting.

Field Summary

Modifier and TypeField and Description
private PDFont
private float
fontSize

The font size to be used for text formatting.

private float
leading

The leading (distance between lines) to be used for text formatting.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv PDFont

Returns:

the font used for text formatting.
getFont
()

Get the font used for text formatting.

pack-priv float

Returns:

the fontSize used for text formatting.
getFontSize
()

Get the fontSize used for text formatting.

pack-priv float

Returns:

the leading used for text formatting.
getLeading
()

Get the leading used for text formatting.

pack-priv void
setFont(PDFont
the font to be used.
font
)

Set the font to be used for text formatting.

pack-priv void
setFontSize(float
the font size.
fontSize
)

Set the font size to be used for formatting.

pack-priv void
setLeading(float
the leading to be used.
leading
)

Set the leading used for text formatting.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fontback to summary
private PDFont font
fontSizeback to summary
private float fontSize

The font size to be used for text formatting. Defaulting to 12 to match Acrobats default.

leadingback to summary
private float leading

The leading (distance between lines) to be used for text formatting. Defaulting to 1.2*fontSize to match Acrobats default.

Constructor Detail

AppearanceStyleback to summary
pack-priv AppearanceStyle()

Method Detail

getFontback to summary
pack-priv PDFont getFont()

Get the font used for text formatting.

Returns:PDFont

the font used for text formatting.

getFontSizeback to summary
pack-priv float getFontSize()

Get the fontSize used for text formatting.

Returns:float

the fontSize used for text formatting.

getLeadingback to summary
pack-priv float getLeading()

Get the leading used for text formatting.

Returns:float

the leading used for text formatting.

setFontback to summary
pack-priv void setFont(PDFont font)

Set the font to be used for text formatting.

Parameters
font:PDFont

the font to be used.

setFontSizeback to summary
pack-priv void setFontSize(float fontSize)

Set the font size to be used for formatting.

Parameters
fontSize:float

the font size.

setLeadingback to summary
pack-priv void setLeading(float leading)

Set the leading used for text formatting.

Parameters
leading:float

the leading to be used.