public class CPDFFreetextAnnotation extends CPDFAnnotation
| Modifier and Type | Class and Description |
|---|---|
static class |
CPDFFreetextAnnotation.Alignment
Text alignment.
|
CPDFAnnotation.AppearanceType, CPDFAnnotation.Flags, CPDFAnnotation.TypeannotPtr, apRotation, pdfPage| Modifier and Type | Method and Description |
|---|---|
int |
getAlpha()
Gets opacity.
|
CPDFBorderStyle |
getBorderStyle()
Gets the border style, more:
CPDFBorderStyle |
java.lang.String |
getContent()
Gets content of FreeText annotation.
|
CPDFFreetextAnnotation.Alignment |
getFreetextAlignment()
Gets text alignment of Freetext.
|
CPDFTextAttribute |
getFreetextDa()
Gets Freetext font style.
|
RectF |
getRect()
Gets annotation rectangle.
|
boolean |
setAlpha(int alpha)
Sets opacity.
|
boolean |
setBorderStyle(CPDFBorderStyle borderStyle)
Sets the border style, more:
CPDFBorderStyle |
boolean |
setContent(java.lang.String content)
Sets content of FreeText annotation.
|
boolean |
setContentAndRect(java.lang.String content,
RectF rectF) |
boolean |
setFreetextAlignment(CPDFFreetextAnnotation.Alignment alignment)
Sets text alignment of Freetext.
|
boolean |
setFreetextDa(CPDFTextAttribute freetextDa)
Sets Freetext font style.
|
boolean |
setRect(RectF rectF)
Sets annotation rectangle.
|
boolean |
updateAp()
Updates annotation appearance.
|
addToPage, clearFilledRGBColor, clearFilledTransparency, close, getAppearanceByPixel, getApRotation, getBgRGBColor, getBorderRGBColor, getBorderWidth, getCreationDate, getFilledRGBColor, getFilledTransparency, getFlags, getName, getOverLayText, getRecentlyModifyDate, getRGBColor, getTitle, getTransparency, getType, hasAp, isAllowCorrectAnnotationAp, isHidden, isLocked, isReadOnly, isValid, removeAp, removeFromPage, setAllowCorrectAnnotationAp, setBgRGBColor, setBorderRGBColor, setBorderWidth, setCreationDate, setFilledRGBColor, setFilledTransparency, setFlags, setHidden, setLocked, setName, setOverLayText, setReadOnly, setRecentlyModifyDate, setRGBColor, setTitle, setTransparency, updateApWithBitmap, updateApWithImagepublic boolean setFreetextDa(CPDFTextAttribute freetextDa)
freetextDa - Font style.public CPDFTextAttribute getFreetextDa()
public boolean setFreetextAlignment(CPDFFreetextAnnotation.Alignment alignment)
alignment - Text alignment.public CPDFFreetextAnnotation.Alignment getFreetextAlignment()
public boolean setAlpha(int alpha)
alpha - Opacity value (0~255)public int getAlpha()
public boolean setRect(RectF rectF)
setRect in class CPDFAnnotationrectF - Rectangle on the page.public boolean setContentAndRect(java.lang.String content,
RectF rectF)
public RectF getRect()
getRect in class CPDFAnnotationpublic java.lang.String getContent()
getContent in class CPDFAnnotationpublic boolean setContent(java.lang.String content)
setContent in class CPDFAnnotationcontent - Content of FreeText annotation.public CPDFBorderStyle getBorderStyle()
CPDFBorderStylegetBorderStyle in class CPDFAnnotationCPDFBorderStylepublic boolean setBorderStyle(CPDFBorderStyle borderStyle)
CPDFBorderStylesetBorderStyle in class CPDFAnnotationborderStyle - Border style, more: CPDFBorderStylepublic boolean updateAp()
updateAp in class CPDFAnnotation