public class CPDFLineAnnotation extends CPDFAnnotation
Modifier and Type | Class and Description |
---|---|
static class |
CPDFLineAnnotation.LineType
直线起点和终点类型
|
CPDFAnnotation.AppearanceType, CPDFAnnotation.Flags, CPDFAnnotation.Type
annotPtr, 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, updateApWithImage
public 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.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()
getBorderStyle
in class CPDFAnnotation
public boolean setBorderStyle(CPDFBorderStyle borderStyle)
setBorderStyle
in class CPDFAnnotation
borderStyle
- Border style.public boolean setRect(RectF rect)
setRect
in class CPDFAnnotation
rect
- Rectangle on the page.public RectF getRect()
getRect
in class CPDFAnnotation
public boolean updateAp()
updateAp
in class CPDFAnnotation