public class CPDFSquareAnnotation extends CPDFAnnotation
CPDFAnnotation.AppearanceType, CPDFAnnotation.Flags, CPDFAnnotation.Type
annotPtr, apRotation, pdfPage
Modifier and Type | Method and Description |
---|---|
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.
|
RectF |
getRect()
Gets annotation rectangle.
|
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(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 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 setRect(RectF rect)
setRect
in class CPDFAnnotation
rect
- Rectangle on the page.public RectF getRect()
getRect
in class CPDFAnnotation
public boolean setBorderStyle(CPDFBorderStyle borderStyle)
CPDFBorderStyle
setBorderStyle
in class CPDFAnnotation
borderStyle
- Border style, more: CPDFBorderStyle
public CPDFBorderStyle getBorderStyle()
CPDFBorderStyle
getBorderStyle
in class CPDFAnnotation
CPDFBorderStyle
public boolean updateAp()
updateAp
in class CPDFAnnotation