public class CPDFLineAnnotation extends CPDFAnnotation
| Modifier and Type | Class and Description |
|---|---|
static class |
CPDFLineAnnotation.LineType
直线起点和终点类型
|
CPDFAnnotation.AppearanceType, CPDFAnnotation.Flags, CPDFAnnotation.TypeannotPtr, apRotation, pdfPage| Modifier and Type | Method and Description |
|---|---|
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 |
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 |
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(PointF start,
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(RectF rect)
Sets annotation rectangle.
|
boolean |
updateAp()
Updates annotation appearance.
|
addToPage, clearFilledRGBColor, clearFilledTransparency, close, getAppearanceByPixel, getApRotation, getBgRGBColor, getBorderRGBColor, getBorderWidth, getContent, getCreationDate, getFilledRGBColor, getFilledTransparency, getFlags, getName, getOverLayText, getRecentlyModifyDate, getRGBColor, getTitle, getTransparency, getType, hasAp, isAllowCorrectAnnotationAp, isHidden, isLocked, isReadOnly, isValid, removeAp, removeFromPage, setAllowCorrectAnnotationAp, setBgRGBColor, setBorderRGBColor, setBorderWidth, setContent, setCreationDate, setFilledRGBColor, setFilledTransparency, setFlags, setHidden, setLocked, setName, setOverLayText, setReadOnly, setRecentlyModifyDate, setRGBColor, setTitle, setTransparency, updateApWithBitmap, updateApWithImagepublic boolean setLinePoints(PointF start, PointF end)
start - Start point of the line.end - End point of the line.public PointF[] getLinePoints()
public boolean setLineType(CPDFLineAnnotation.LineType start, CPDFLineAnnotation.LineType end)
CPDFLineAnnotation.LineTypestart - Line style for the starting point, more: CPDFLineAnnotation.LineTypeend - Line style for the ending point, more: CPDFLineAnnotation.LineTypepublic CPDFLineAnnotation.LineType getLineHeadType()
CPDFLineAnnotation.LineTypeCPDFLineAnnotation.LineTypepublic CPDFLineAnnotation.LineType getLineTailType()
CPDFLineAnnotation.LineTypeCPDFLineAnnotation.LineTypepublic 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()
getBorderStyle in class CPDFAnnotationpublic boolean setBorderStyle(CPDFBorderStyle borderStyle)
setBorderStyle in class CPDFAnnotationborderStyle - Border style.public boolean setRect(RectF rect)
setRect in class CPDFAnnotationrect - Rectangle on the page.public RectF getRect()
getRect in class CPDFAnnotationpublic boolean updateAp()
updateAp in class CPDFAnnotation