public class CPDFTextAnnotation extends CPDFAnnotation
CPDFAnnotation.AppearanceType, CPDFAnnotation.Flags, CPDFAnnotation.Type
annotPtr, apRotation, pdfPage
Modifier and Type | Method and Description |
---|---|
int |
getAlpha()
Gets opacity.
|
int |
getColor()
Gets color.
|
java.lang.String |
getContent()
Gets annotation content.
|
RectF |
getRect()
Gets annotation rectangle.
|
boolean |
setAlpha(int alpha)
Sets opacity.
|
boolean |
setColor(int color)
Sets color.
|
boolean |
setContent(java.lang.String content)
Sets annotation content.
|
boolean |
setRect(RectF rect)
Sets annotation rectangle.
|
boolean |
updateAp()
Updates annotation appearance.
|
addToPage, clearFilledRGBColor, clearFilledTransparency, close, getAppearanceByPixel, getApRotation, getBgRGBColor, getBorderRGBColor, getBorderStyle, getBorderWidth, getCreationDate, getFilledRGBColor, getFilledTransparency, getFlags, getName, getOverLayText, getRecentlyModifyDate, getRGBColor, getTitle, getTransparency, getType, hasAp, isAllowCorrectAnnotationAp, isHidden, isLocked, isReadOnly, isValid, removeAp, removeFromPage, setAllowCorrectAnnotationAp, setBgRGBColor, setBorderRGBColor, setBorderStyle, setBorderWidth, setCreationDate, setFilledRGBColor, setFilledTransparency, setFlags, setHidden, setLocked, setName, setOverLayText, setReadOnly, setRecentlyModifyDate, setRGBColor, setTitle, setTransparency, updateApWithBitmap, updateApWithImage
public boolean setContent(java.lang.String content)
CPDFAnnotation
setContent
in class CPDFAnnotation
content
- Annotation content.public java.lang.String getContent()
CPDFAnnotation
getContent
in class CPDFAnnotation
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 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