public class CPDFInkAnnotation extends CPDFAnnotation
Modifier and Type | Class and Description |
---|---|
static class |
CPDFInkAnnotation.CPDFInkAnnotationAttr |
CPDFAnnotation.AppearanceType, CPDFAnnotation.BorderEffectIntensity, CPDFAnnotation.CPDFBorderEffectType, CPDFAnnotation.Flags, CPDFAnnotation.MarkState, CPDFAnnotation.MediaSourceType, CPDFAnnotation.ReviewState, CPDFAnnotation.Type
index
Modifier and Type | Method and Description |
---|---|
void |
applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr) |
int |
getAlpha()
Gets opacity.
|
CPDFAnnotationUndoAttr |
getAnnotationAttr() |
float |
getBorderWidth()
Gets border width of ink annotation.
|
int |
getColor()
Gets color.
|
android.graphics.PointF[][] |
getInkPath()
Gets ink path.
|
android.graphics.RectF |
getRect()
Gets annotation rectangle.
|
boolean |
setAlpha(int alpha)
Sets opacity.
|
boolean |
setBorderWidth(float borderWidth)
Sets border width of ink annotation.
|
boolean |
setColor(int color)
Sets color.
|
boolean |
setInkPath(android.graphics.PointF[][] path)
Sets ink path.
|
boolean |
setRect(android.graphics.RectF rect)
Sets annotation rectangle.
|
addToPage, close, createReplyAnnotation, disableListenAttrChanged, enableListenAttrChanged, equal, equal, getAllReplyAnnotations, getAnnotIndexFromNative, getAnnotPtr, getAppearance, getAppearanceByPixel, getApRotation, getBordEffectIntensity, getBordEffectType, 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, setBordEffectIntensity, setBordEffectType, setContent, setCreationDate, setFlags, setHidden, setLocked, setMarkedAnnotState, setName, setOnAnnotationChangedListener, setReadOnly, setRecentlyModifyDate, setReviewAnnotState, setRotation, setSourceRect, setTitle, setVertices, updateAp, updateApWithBitmap, updateApWithImage
public boolean setInkPath(android.graphics.PointF[][] path)
path
- Points collection on the path, path is two-dimensional array, the first dimension represents all coordinate points in one path, the second dimension represents all ink path.public android.graphics.PointF[][] getInkPath()
public 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 float getBorderWidth()
getBorderWidth
in class CPDFAnnotation
public boolean setBorderWidth(float borderWidth)
setBorderWidth
in class CPDFAnnotation
borderWidth
- Border width of ink annotation.public android.graphics.RectF getRect()
CPDFPage.convertRectToPage(boolean, float, float, RectF)
.getRect
in class CPDFAnnotation
public CPDFAnnotationUndoAttr getAnnotationAttr()
getAnnotationAttr
in class CPDFAnnotation
public void applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr)
applyAnnotationAttr
in class CPDFAnnotation
public boolean setRect(android.graphics.RectF rect)
CPDFPage.convertRectToPage(boolean, float, float, RectF)
.setRect
in class CPDFAnnotation
rect
- Rectangle on the page.