public class CPDFFreetextAnnotation extends CPDFAnnotation
| Modifier and Type | Class and Description |
|---|---|
static class |
CPDFFreetextAnnotation.Alignment
Text alignment.
|
static class |
CPDFFreetextAnnotation.CPDFFreetextAnnotationAttr |
CPDFAnnotation.AppearanceType, CPDFAnnotation.BorderEffectIntensity, CPDFAnnotation.CPDFBorderEffectType, CPDFAnnotation.Flags, CPDFAnnotation.MarkState, CPDFAnnotation.MediaSourceType, CPDFAnnotation.ReviewState, CPDFAnnotation.Typeindex| Modifier and Type | Method and Description |
|---|---|
void |
applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr) |
int |
getAlpha()
Gets opacity.
|
CPDFAnnotationUndoAttr |
getAnnotationAttr() |
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.
|
android.graphics.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,
android.graphics.RectF rectF) |
boolean |
setFreetextAlignment(CPDFFreetextAnnotation.Alignment alignment)
Sets text alignment of Freetext.
|
boolean |
setFreetextDa(CPDFTextAttribute freetextDa)
Sets Freetext font style.
|
boolean |
setRect(android.graphics.RectF rectF)
Sets annotation rectangle.
|
addToPage, close, createReplyAnnotation, disableListenAttrChanged, enableListenAttrChanged, equal, equal, getAllReplyAnnotations, getAnnotIndexFromNative, getAnnotPtr, getAppearance, getAppearanceByPixel, getApRotation, getBordEffectIntensity, getBordEffectType, getBorderWidth, getCreationDate, getFlags, getMarkedAnnotState, getName, getRecentlyModifyDate, getReviewAnnotState, getRotateRectPoint, getRotation, getSourceRect, getTitle, getType, getVertices, hasAp, isAllowCorrectAnnotationAp, isHidden, isLocked, isReadOnly, isValid, moveAnnotIndex, removeAp, removeFromPage, removeFromPageIncludeReplyAnnot, setAllowCorrectAnnotationAp, setAnnotTop, setBordEffectIntensity, setBordEffectType, setBorderWidth, setCreationDate, setFlags, setHidden, setLocked, setMarkedAnnotState, setName, setOnAnnotationChangedListener, setReadOnly, setRecentlyModifyDate, setReviewAnnotState, setRotation, setSourceRect, setTitle, setVertices, updateAp, 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 CPDFAnnotationUndoAttr getAnnotationAttr()
getAnnotationAttr in class CPDFAnnotationpublic void applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr)
applyAnnotationAttr in class CPDFAnnotationpublic boolean setRect(android.graphics.RectF rectF)
CPDFPage.convertRectToPage(boolean, float, float, RectF).setRect in class CPDFAnnotationrectF - Rectangle on the page.public boolean setContentAndRect(java.lang.String content,
android.graphics.RectF rectF)
public android.graphics.RectF getRect()
CPDFPage.convertRectToPage(boolean, float, float, RectF).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()
CPDFBorderStyleCPDFBorderStylepublic boolean setBorderStyle(CPDFBorderStyle borderStyle)
CPDFBorderStyleborderStyle - Border style, more: CPDFBorderStyle