Foxit PDF SDK
|
Public Member Functions | |
RichTextStyle (Font font, float text_size, int text_alignment, long text_color, boolean is_bold, boolean is_italic, boolean is_underline, boolean is_strikethrough, int mark_style) | |
Constructor, with parameters. More... | |
RichTextStyle () | |
Constructor. | |
RichTextStyle (RichTextStyle style) | |
Constructor, with another style object. More... | |
Font | getFont () |
Get a font used in rich text style. More... | |
boolean | getIs_bold () |
Get a boolean value which indicates whether to make text bold or not. More... | |
boolean | getIs_italic () |
Get a boolean value which indicates whether to italicize text or not. More... | |
boolean | getIs_strikethrough () |
Get a boolean value which indicates whether to cross text out with strike through or not. More... | |
boolean | getIs_underline () |
Get a boolean value which indicates whether to underline text or not. More... | |
int | getMark_style () |
Get corner mark style. More... | |
int | getText_alignment () |
Get alignment value. More... | |
long | getText_color () |
Get text color. More... | |
float | getText_size () |
Get text size. More... | |
void | set (Font font, float text_size, int text_alignment, long text_color, boolean is_bold, boolean is_italic, boolean is_underline, boolean is_strikethrough, int mark_style) |
Set value. More... | |
void | setFont (Font value) |
Set a font used in rich text style. More... | |
void | setIs_bold (boolean value) |
Set a boolean value which indicates whether to make text bold or not. More... | |
void | setIs_italic (boolean value) |
Set a boolean value which indicates whether to italicize text or not. More... | |
void | setIs_strikethrough (boolean value) |
Set a boolean value which indicates whether to cross text out with strike through or not. More... | |
void | setIs_underline (boolean value) |
Set a boolean value which indicates whether to underline text or not. More... | |
void | setMark_style (int value) |
Set corner mark style. More... | |
void | setText_alignment (int value) |
Set alignment value. More... | |
void | setText_color (long value) |
Set text color. More... | |
void | setText_size (float value) |
Set text size. More... | |
Static Public Attributes | |
static final int | e_CornerMarkNone = 1 |
Corner mark style: none. | |
static final int | e_CornerMarkSubscript = 3 |
Corner mark style: subscript. | |
static final int | e_CornerMarkSuperscript = 2 |
Corner mark style: superscript. | |
This class represents rich text style data, which is used to specify the style of rich text.
com.foxit.sdk.pdf.annots.RichTextStyle.RichTextStyle | ( | Font | font, |
float | text_size, | ||
int | text_alignment, | ||
long | text_color, | ||
boolean | is_bold, | ||
boolean | is_italic, | ||
boolean | is_underline, | ||
boolean | is_strikethrough, | ||
int | mark_style | ||
) |
Constructor, with parameters.
[in] | font | A valid font object. |
[in] | text_size | Text size. It should not be negative value. 0 means text will not be shown. |
[in] | text_alignment | Alignment value. Please refer to values starting from com.foxit.sdk.common.Constants.e_AlignmentLeft and this should be one of these values. |
[in] | text_color | Text color. Format: 0xRRGGBB. |
[in] | is_bold | A boolean value which indicates whether to make text bold or not. |
[in] | is_italic | A boolean value which indicates whether to italicize text or not. |
[in] | is_underline | A boolean value which indicates whether to underline text or not. |
[in] | is_strikethrough | A boolean value which indicates whether to cross text out with strike through or not. |
[in] | mark_style | Corner mark style which can be used to make text as superscript or subscript or not as any kind of corner mark. Please refer to values starting from com.foxit.sdk.pdf.annots.RichTextStyle.e_CornerMarkNone and this should be one of these values. |
com.foxit.sdk.pdf.annots.RichTextStyle.RichTextStyle | ( | RichTextStyle | style | ) |
Constructor, with another style object.
[in] | style | Another style object. |
com.foxit.sdk.pdf.annots.RichTextStyle.getFont | ( | ) |
Get a font used in rich text style.
com.foxit.sdk.pdf.annots.RichTextStyle.getIs_bold | ( | ) |
Get a boolean value which indicates whether to make text bold or not.
com.foxit.sdk.pdf.annots.RichTextStyle.getIs_italic | ( | ) |
Get a boolean value which indicates whether to italicize text or not.
com.foxit.sdk.pdf.annots.RichTextStyle.getIs_strikethrough | ( | ) |
Get a boolean value which indicates whether to cross text out with strike through or not.
com.foxit.sdk.pdf.annots.RichTextStyle.getIs_underline | ( | ) |
Get a boolean value which indicates whether to underline text or not.
com.foxit.sdk.pdf.annots.RichTextStyle.getMark_style | ( | ) |
Get corner mark style.
com.foxit.sdk.pdf.annots.RichTextStyle.getText_alignment | ( | ) |
Get alignment value.
com.foxit.sdk.pdf.annots.RichTextStyle.getText_color | ( | ) |
Get text color.
com.foxit.sdk.pdf.annots.RichTextStyle.getText_size | ( | ) |
Get text size.
void com.foxit.sdk.pdf.annots.RichTextStyle.set | ( | Font | font, |
float | text_size, | ||
int | text_alignment, | ||
long | text_color, | ||
boolean | is_bold, | ||
boolean | is_italic, | ||
boolean | is_underline, | ||
boolean | is_strikethrough, | ||
int | mark_style | ||
) |
Set value.
[in] | font | A valid font object. |
[in] | text_size | Text size. It should not be negative value. 0 means text will not be shown. |
[in] | text_alignment | Alignment value. Please refer to values starting from com.foxit.sdk.common.Constants.e_AlignmentLeft and this should be one of these values. |
[in] | text_color | Text color. Format: 0xRRGGBB. |
[in] | is_bold | A boolean value which indicates whether to make text bold or not. |
[in] | is_italic | A boolean value which indicates whether to italicize text or not. |
[in] | is_underline | A boolean value which indicates whether to underline text or not. |
[in] | is_strikethrough | A boolean value which indicates whether to cross text out with strike through or not. |
[in] | mark_style | Corner mark style which can be used to make text as superscript or subscript or not as any kind of corner mark. Please refer to values starting from com.foxit.sdk.pdf.annots.RichTextStyle.e_CornerMarkNone and this should be one of these values. |
com.foxit.sdk.pdf.annots.RichTextStyle.setFont | ( | Font | value | ) |
Set a font used in rich text style.
[in] | value | A font used in rich text style. It should be a valid font object. |
com.foxit.sdk.pdf.annots.RichTextStyle.setIs_bold | ( | boolean | value | ) |
Set a boolean value which indicates whether to make text bold or not.
[in] | value | A boolean value which indicates whether to make text bold or not. |
com.foxit.sdk.pdf.annots.RichTextStyle.setIs_italic | ( | boolean | value | ) |
Set a boolean value which indicates whether to italicize text or not.
[in] | value | A boolean value which indicates whether to italicize text or not. |
com.foxit.sdk.pdf.annots.RichTextStyle.setIs_strikethrough | ( | boolean | value | ) |
Set a boolean value which indicates whether to cross text out with strike through or not.
[in] | value | A boolean value which indicates whether to cross text out with strike through or not. |
com.foxit.sdk.pdf.annots.RichTextStyle.setIs_underline | ( | boolean | value | ) |
Set a boolean value which indicates whether to underline text or not.
[in] | value | A boolean value which indicates whether to underline text or not. |
com.foxit.sdk.pdf.annots.RichTextStyle.setMark_style | ( | int | value | ) |
Set corner mark style.
[in] | value | Corner mark style. Corner mark style which can be used to make text as superscript or subscript or not as any kind of corner mark. Please refer to values starting from com.foxit.sdk.pdf.annots.RichTextStyle.e_CornerMarkNone and this should be one of these values. |
com.foxit.sdk.pdf.annots.RichTextStyle.setText_alignment | ( | int | value | ) |
Set alignment value.
[in] | value | Alignment value. Please refer to values starting from com.foxit.sdk.common.Constants.e_AlignmentLeft and this should be one of these values. |
com.foxit.sdk.pdf.annots.RichTextStyle.setText_color | ( | long | value | ) |
Set text color.
[in] | value | Text color. Format: 0xRRGGBB. |
com.foxit.sdk.pdf.annots.RichTextStyle.setText_size | ( | float | value | ) |
Set text size.
[in] | value | Text size. It should not be negative value. 0 means text will not be shown. |