public class CPDFEditTextSelections extends CPDFEditSelections
Constructor and Description |
---|
CPDFEditTextSelections(CPDFPageView pageView,
CPDFEditTextArea editTextArea,
java.util.List<CPDFEditSelection> list) |
Modifier and Type | Method and Description |
---|---|
void |
addStrikethrough() |
void |
addUnderline() |
CPDFEditTextArea.PDFEditAlignType |
getAlign()
Get the alignment of the last character within a text range or of a single character.
|
CPDFEditTextArea.PDFEditAlignType |
getAlignByRange()
Get the alignment within a text range where multiple alignments exist, return NULL.
|
int |
getColor()
Get the text color of the last character within a text range or of a single character, where the color is returned in the format of 0x00000000-0xFFFFFFFF.
|
int |
getColorByRange()
Get the text color within a text range, where the color is returned in the format of 0x00000000-0xFFFFFFFF.
|
java.lang.String |
getFontName()
Get the font name of the last character within a text range or of a single character.
|
java.lang.String |
getFontNameByRange()
Get the font name within the text range, return empty string if there are different fonts present in the text.
|
float |
getFontSize()
Get the font size of the last character within a text range or of a single character.
|
float |
getFontSizeByRange()
Get the font size of the text within a text range.
|
float |
getTransparancy()
Get the text transparancy of the last character within a text range or of a single character.
|
float |
getTransparancyByRange()
Get the text transparancy within a text range.
|
boolean |
isBold()
Determine whether the last character within a specified text range or a single character has bold formatting.
|
boolean |
isBoldByRange()
Determine whether all text within a specified text range has bold formatting.
|
boolean |
isItalic()
Determine whether the last character within a specified text range or a single character has italic formatting.
|
boolean |
isItalicByRange()
Determine whether all text within a specified text range has bold formatting.
|
void |
removeStrikethrough() |
void |
removeUnderline() |
void |
setAlign(CPDFEditTextArea.PDFEditAlignType alignType)
Sets the selected text alignment.
|
void |
setBold(boolean isBold)
Sets the selected bold or uBold.
|
void |
setColor(int color)
Sets the selected font color.
|
boolean |
setFontName(java.lang.String fontName)
Set text font
|
void |
setFontSize(float size)
Sets the selected font size.
|
void |
setFontStrokeWidth(int width)
Sets the selected font stroke width.
|
void |
setItalic(boolean isItalic)
Sets the selected italic or uItalic.
|
void |
setRenderingMode(CPDFEditTextArea.PDFEditTextRenderingMode mode)
Sets the selected rendering mode, eg: bold.
|
void |
setTransparancy(float tranceparancy)
Sets the selected text transparancy(0-255).
|
public CPDFEditTextSelections(CPDFPageView pageView, CPDFEditTextArea editTextArea, java.util.List<CPDFEditSelection> list)
public boolean setFontName(java.lang.String fontName)
public java.lang.String getFontName()
public java.lang.String getFontNameByRange()
public void setAlign(CPDFEditTextArea.PDFEditAlignType alignType)
public CPDFEditTextArea.PDFEditAlignType getAlign()
public CPDFEditTextArea.PDFEditAlignType getAlignByRange()
public void setColor(int color)
public int getColor()
public int getColorByRange()
public void setTransparancy(float tranceparancy)
public float getTransparancy()
public float getTransparancyByRange()
public void setFontSize(float size)
public float getFontSize()
public float getFontSizeByRange()
public void setItalic(boolean isItalic)
public void addUnderline()
public void removeUnderline()
public void addStrikethrough()
public void removeStrikethrough()
public boolean isItalic()
public boolean isItalicByRange()
public void setBold(boolean isBold)
public boolean isBold()
public boolean isBoldByRange()
public void setRenderingMode(CPDFEditTextArea.PDFEditTextRenderingMode mode)
public void setFontStrokeWidth(int width)