public class CPDFSquareAnnotation extends CPDFAnnotation
| Modifier and Type | Class and Description |
|---|---|
static class |
CPDFSquareAnnotation.CPDFSquareAnnotationAttr |
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) |
CPDFAnnotationUndoAttr |
getAnnotationAttr() |
int |
getBorderAlpha()
Gets border opacity.
|
int |
getBorderColor()
Gets border color.
|
CPDFBorderStyle |
getBorderStyle()
Gets the border style, more:
CPDFBorderStyle |
int |
getFillAlpha()
Gets background opacity.
|
int |
getFillColor()
Gets background color.
|
android.graphics.RectF |
getRect()
Gets annotation rectangle.
|
boolean |
setBordEffectIntensity(CPDFAnnotation.BorderEffectIntensity intensity) |
boolean |
setBordEffectType(CPDFAnnotation.CPDFBorderEffectType type) |
boolean |
setBorderAlpha(int lineAlpha)
Sets border opacity.
|
boolean |
setBorderColor(int color)
Sets border color.
|
boolean |
setBorderStyle(CPDFBorderStyle borderStyle)
Sets border style, more:
CPDFBorderStyle |
boolean |
setFillAlpha(int bgAlpha)
Sets background opacity.
|
boolean |
setFillColor(int color)
Sets filled color.
|
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, getContent, getCreationDate, getFlags, getMarkedAnnotState, getName, getRecentlyModifyDate, getReviewAnnotState, getRotateRectPoint, getRotation, getSourceRect, getTitle, getType, getVertices, hasAp, isAllowCorrectAnnotationAp, isHidden, isLocked, isReadOnly, isValid, moveAnnotIndex, removeAp, removeFromPage, removeFromPageIncludeReplyAnnot, setAllowCorrectAnnotationAp, setAnnotTop, setBorderWidth, setContent, setCreationDate, setFlags, setHidden, setLocked, setMarkedAnnotState, setName, setOnAnnotationChangedListener, setReadOnly, setRecentlyModifyDate, setReviewAnnotState, setRotation, setSourceRect, setTitle, setVertices, updateAp, updateApWithBitmap, updateApWithImagepublic boolean setBorderColor(int color)
color - Color value (0x00000000~0xFFFFFFFF)public int getBorderColor()
public boolean setBorderAlpha(int lineAlpha)
lineAlpha - Opacity value (0~255)public int getBorderAlpha()
public boolean setFillColor(int color)
color - Color value (0x00000000~0xFFFFFFFF)public int getFillColor()
public boolean setFillAlpha(int bgAlpha)
bgAlpha - Opacity value(0~255)public int getFillAlpha()
public boolean setBordEffectType(CPDFAnnotation.CPDFBorderEffectType type)
setBordEffectType in class CPDFAnnotationpublic boolean setBordEffectIntensity(CPDFAnnotation.BorderEffectIntensity intensity)
setBordEffectIntensity in class CPDFAnnotationpublic CPDFAnnotationUndoAttr getAnnotationAttr()
getAnnotationAttr in class CPDFAnnotationpublic void applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr)
applyAnnotationAttr in class CPDFAnnotationpublic 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 boolean setBorderStyle(CPDFBorderStyle borderStyle)
CPDFBorderStyleborderStyle - Border style, more: CPDFBorderStylepublic CPDFBorderStyle getBorderStyle()
CPDFBorderStyleCPDFBorderStyle