public class CPDFTextAnnotation extends CPDFAnnotation
| Modifier and Type | Class and Description |
|---|---|
static class |
CPDFTextAnnotation.CPDFTextAnnotationAttr |
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() |
int |
getColor()
Gets color.
|
java.lang.String |
getContent()
Gets annotation content.
|
android.graphics.RectF |
getRect()
Gets annotation rectangle.
|
boolean |
setAlpha(int alpha)
Sets opacity.
|
boolean |
setColor(int color)
Sets color.
|
boolean |
setContent(java.lang.String content)
Sets annotation content.
|
boolean |
setRect(android.graphics.RectF rect)
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 setContent(java.lang.String content)
CPDFAnnotationsetContent in class CPDFAnnotationcontent - Annotation content.public java.lang.String getContent()
CPDFAnnotationgetContent in class CPDFAnnotationpublic boolean setColor(int color)
color - Color value (0x00000000~0xFFFFFFFF)public int getColor()
public boolean setAlpha(int alpha)
alpha - Opacity value (0~255)public int getAlpha()
public boolean setRect(android.graphics.RectF rect)
CPDFPage.convertRectToPage(boolean, float, float, RectF).setRect in class CPDFAnnotationrect - Rectangle on the page.public android.graphics.RectF getRect()
CPDFPage.convertRectToPage(boolean, float, float, RectF).getRect in class CPDFAnnotationpublic CPDFAnnotationUndoAttr getAnnotationAttr()
getAnnotationAttr in class CPDFAnnotationpublic void applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr)
applyAnnotationAttr in class CPDFAnnotation