public class CPDFLineAnnotation extends CPDFAnnotation
Modifier and Type | Class and Description |
---|---|
static class |
CPDFLineAnnotation.CPDFLineAnnotationAttr |
static class |
CPDFLineAnnotation.LineType
直线起点和终点类型
|
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) |
CPDFAnnotationUndoAttr |
getAnnotationAttr() |
int |
getBorderAlpha()
Gets fill opacity of line.
|
int |
getBorderColor()
Gets line color.
|
CPDFBorderStyle |
getBorderStyle()
Gets border style.
|
int |
getFillAlpha()
Gets fill opacity of line.
|
int |
getFillColor()
Gets fill color of line.
|
CPDFLineAnnotation.LineType |
getLineHeadType()
Gets the line style for the starting point of the line, more:
CPDFLineAnnotation.LineType |
android.graphics.PointF[] |
getLinePoints()
Gets start point and end point of the line.
|
CPDFLineAnnotation.LineType |
getLineTailType()
Gets the line style for the ending point of the line, more:
CPDFLineAnnotation.LineType |
android.graphics.RectF |
getRect()
Gets annotation rectangle.
|
boolean |
setBorderAlpha(int lineAlpha)
Sets line opacity.
|
boolean |
setBorderColor(int color)
Sets line color.
|
boolean |
setBorderStyle(CPDFBorderStyle borderStyle)
Sets border style.
|
boolean |
setFillAlpha(int fillAlpha)
Sets fill opacity of line.
|
boolean |
setFillColor(int color)
Sets fill color of line.
|
boolean |
setLinePoints(android.graphics.PointF start,
android.graphics.PointF end)
Sets start point and end point of the line.
|
boolean |
setLineType(CPDFLineAnnotation.LineType start,
CPDFLineAnnotation.LineType end)
Sets the line style for the starting point and ending point of the line, more:
CPDFLineAnnotation.LineType |
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, setBordEffectIntensity, setBordEffectType, setBorderWidth, setContent, setCreationDate, setFlags, setHidden, setLocked, setMarkedAnnotState, setName, setOnAnnotationChangedListener, setReadOnly, setRecentlyModifyDate, setReviewAnnotState, setRotation, setSourceRect, setTitle, setVertices, updateAp, updateApWithBitmap, updateApWithImage
public boolean setLinePoints(android.graphics.PointF start, android.graphics.PointF end)
start
- Start point of the line.end
- End point of the line.public android.graphics.PointF[] getLinePoints()
public boolean setLineType(CPDFLineAnnotation.LineType start, CPDFLineAnnotation.LineType end)
CPDFLineAnnotation.LineType
start
- Line style for the starting point, more: CPDFLineAnnotation.LineType
end
- Line style for the ending point, more: CPDFLineAnnotation.LineType
public CPDFLineAnnotation.LineType getLineHeadType()
CPDFLineAnnotation.LineType
CPDFLineAnnotation.LineType
public CPDFLineAnnotation.LineType getLineTailType()
CPDFLineAnnotation.LineType
CPDFLineAnnotation.LineType
public boolean setBorderColor(int color)
color
- Color value (0x00000000~0xFFFFFFFF)public int getBorderColor()
public boolean setFillColor(int color)
color
- Color value (0x00000000~0xFFFFFFFF)public int getFillColor()
public boolean setBorderAlpha(int lineAlpha)
lineAlpha
- Opacity value (0~255)public int getFillAlpha()
public boolean setFillAlpha(int fillAlpha)
fillAlpha
- Opacity value (0~255)public int getBorderAlpha()
public CPDFBorderStyle getBorderStyle()
public CPDFAnnotationUndoAttr getAnnotationAttr()
getAnnotationAttr
in class CPDFAnnotation
public void applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr)
applyAnnotationAttr
in class CPDFAnnotation
public boolean setBorderStyle(CPDFBorderStyle borderStyle)
borderStyle
- Border style.public boolean setRect(android.graphics.RectF rect)
CPDFPage.convertRectToPage(boolean, float, float, RectF)
.setRect
in class CPDFAnnotation
rect
- Rectangle on the page.public android.graphics.RectF getRect()
CPDFPage.convertRectToPage(boolean, float, float, RectF)
.getRect
in class CPDFAnnotation