Public Member Functions | |
WatermarkTextProperties (Font font, float font_size, long color, int style, float line_space, int alignment) | |
Constructor, with parameters. More... | |
WatermarkTextProperties () | |
Constructor. | |
WatermarkTextProperties (WatermarkTextProperties properties) | |
Constructor, with another WatermarkTextProperties object. More... | |
int | getAlignment () |
Get text horizontal alignment. More... | |
long | getColor () |
Get text color. More... | |
Font | getFont () |
Get font used for the text. More... | |
float | getFont_size () |
Get font size in points. More... | |
int | getFont_style () |
Get font style. More... | |
float | getLine_space () |
Get space between vertical center of lines, in line heights. More... | |
void | set (Font font, float font_size, long color, int style, float line_space, int alignment) |
Set value. More... | |
void | setAlignment (int value) |
Set text horizontal alignment. More... | |
void | setColor (long value) |
Set text color. More... | |
void | setFont (Font value) |
Set font used for the text. More... | |
void | setFont_size (float value) |
Set font size in points. More... | |
void | setFont_style (int value) |
Set font style. More... | |
void | setLine_space (float value) |
Set space between vertical center of lines, in line heights. More... | |
Static Public Attributes | |
static final int | e_FontStyleNormal = 0 |
Watermark font style: normal. | |
static final int | e_FontStyleUnderline = 1 |
Watermark font style: with underline. | |
This class represents the watermark text settings used to construct a Watermark object from text.
com.foxit.sdk.pdf.WatermarkTextProperties.WatermarkTextProperties | ( | Font | font, |
float | font_size, | ||
long | color, | ||
int | style, | ||
float | line_space, | ||
int | alignment | ||
) |
Constructor, with parameters.
font | A valid Font object used for the text. |
font_size | Font size in points. |
color | Text color. Format: 0xRRGGBB. |
style | Font style. It should be one of the following values: e_FontStyleNormal e_FontStyleUnderline |
line_space | Space between vertical center of lines, in line heights. This value specifies the multiple of line heights for the space between vertical center of lines. Valid range: from 0 to 10 (not including 0 but including 10). If this value is above 10, 10 will be used as default for the text watermark. |
alignment | Text horizontal alignment. It should be one of the following values: e_AlignmentLeft e_AlignmentCenter e_AlignmentRight |
com.foxit.sdk.pdf.WatermarkTextProperties.WatermarkTextProperties | ( | WatermarkTextProperties | properties | ) |
Constructor, with another WatermarkTextProperties object.
properties | Another WatermarkTextProperties object. |
com.foxit.sdk.pdf.WatermarkTextProperties.getAlignment | ( | ) |
Get text horizontal alignment.
It should be one of the following macro definitions:
e_AlignmentLeft
e_AlignmentCenter
e_AlignmentRight
com.foxit.sdk.pdf.WatermarkTextProperties.getColor | ( | ) |
Get text color.
com.foxit.sdk.pdf.WatermarkTextProperties.getFont | ( | ) |
Get font used for the text.
com.foxit.sdk.pdf.WatermarkTextProperties.getFont_size | ( | ) |
Get font size in points.
com.foxit.sdk.pdf.WatermarkTextProperties.getFont_style | ( | ) |
Get font style.
It should be one of the following values:
e_FontStyleNormal
e_FontStyleUnderline
com.foxit.sdk.pdf.WatermarkTextProperties.getLine_space | ( | ) |
Get space between vertical center of lines, in line heights.
This value is used to specify the multiple of line heights for the space between vertical center of lines. Valid range: from 0 to 10 (not including 0 but including 10). If this value is above 10, 10 will be used as default for the text watermark.
void com.foxit.sdk.pdf.WatermarkTextProperties.set | ( | Font | font, |
float | font_size, | ||
long | color, | ||
int | style, | ||
float | line_space, | ||
int | alignment | ||
) |
Set value.
font | A valid Font object used for the text. |
font_size | Font size in points. |
color | Text color. Format: 0xRRGGBB. |
style | Font style. It should be one of the following values: e_FontStyleNormal e_FontStyleUnderline |
line_space | Space between vertical center of lines, in line heights. This value specifies the multiple of line heights for the space between vertical center of lines. Valid range: from 0 to 10 (not including 0 but including 10). If this value is above 10, 10 will be used as default for the text watermark. |
alignment | Text horizontal alignment. It should be one of the following values: e_AlignmentLeft e_AlignmentCenter e_AlignmentRight |
com.foxit.sdk.pdf.WatermarkTextProperties.setAlignment | ( | int | value | ) |
Set text horizontal alignment.
It should be one of the following macro definitions:
e_AlignmentLeft
e_AlignmentCenter
e_AlignmentRight
[in] | alignment | Text horizontal alignment. |
com.foxit.sdk.pdf.WatermarkTextProperties.setColor | ( | long | value | ) |
Set text color.
[in] | color | Text color. Format: 0xRRGGBB. |
com.foxit.sdk.pdf.WatermarkTextProperties.setFont | ( | Font | value | ) |
Set font used for the text.
[in] | font | Font used for the text. |
com.foxit.sdk.pdf.WatermarkTextProperties.setFont_size | ( | float | value | ) |
Set font size in points.
[in] | font_size | Font size in points. |
com.foxit.sdk.pdf.WatermarkTextProperties.setFont_style | ( | int | value | ) |
Set font style.
It should be one of the following values:
e_FontStyleNormal
e_FontStyleUnderline
[in] | font_style | Font style. |
com.foxit.sdk.pdf.WatermarkTextProperties.setLine_space | ( | float | value | ) |
Set space between vertical center of lines, in line heights.
This value is used to specify the multiple of line heights for the space between vertical center of lines. Valid range: from 0 to 10 (not including 0 but including 10). If this value is above 10, 10 will be used as default for the text watermark.
[in] | line_space | Space between vertical center of lines, in line heights. |