public class CPDFFreetextAnnotation extends CPDFAnnotation
Modifier and Type | Class and Description |
---|---|
static class |
CPDFFreetextAnnotation.Alignment
Text alignment.
|
CPDFAnnotation.AppearanceType, CPDFAnnotation.Flags, CPDFAnnotation.Type
annotPtr, apRotation, pdfPage
Modifier and Type | Method and Description |
---|---|
int |
getAlpha()
Gets opacity.
|
CPDFBorderStyle |
getBorderStyle()
Gets the border style, more:
CPDFBorderStyle |
java.lang.String |
getContent()
Gets content of FreeText annotation.
|
CPDFFreetextAnnotation.Alignment |
getFreetextAlignment()
Gets text alignment of Freetext.
|
CPDFTextAttribute |
getFreetextDa()
Gets Freetext font style.
|
RectF |
getRect()
Gets annotation rectangle.
|
boolean |
setAlpha(int alpha)
Sets opacity.
|
boolean |
setBorderStyle(CPDFBorderStyle borderStyle)
Sets the border style, more:
CPDFBorderStyle |
boolean |
setContent(java.lang.String content)
Sets content of FreeText annotation.
|
boolean |
setContentAndRect(java.lang.String content,
RectF rectF) |
boolean |
setFreetextAlignment(CPDFFreetextAnnotation.Alignment alignment)
Sets text alignment of Freetext.
|
boolean |
setFreetextDa(CPDFTextAttribute freetextDa)
Sets Freetext font style.
|
boolean |
setRect(RectF rectF)
Sets annotation rectangle.
|
boolean |
updateAp()
Updates annotation appearance.
|
addToPage, clearFilledRGBColor, clearFilledTransparency, close, getAppearanceByPixel, getApRotation, getBgRGBColor, getBorderRGBColor, getBorderWidth, getCreationDate, getFilledRGBColor, getFilledTransparency, getFlags, getName, getOverLayText, getRecentlyModifyDate, getRGBColor, getTitle, getTransparency, getType, hasAp, isAllowCorrectAnnotationAp, isHidden, isLocked, isReadOnly, isValid, removeAp, removeFromPage, setAllowCorrectAnnotationAp, setBgRGBColor, setBorderRGBColor, setBorderWidth, setCreationDate, setFilledRGBColor, setFilledTransparency, setFlags, setHidden, setLocked, setName, setOverLayText, setReadOnly, setRecentlyModifyDate, setRGBColor, setTitle, setTransparency, updateApWithBitmap, updateApWithImage
public boolean setFreetextDa(CPDFTextAttribute freetextDa)
freetextDa
- Font style.public CPDFTextAttribute getFreetextDa()
public boolean setFreetextAlignment(CPDFFreetextAnnotation.Alignment alignment)
alignment
- Text alignment.public CPDFFreetextAnnotation.Alignment getFreetextAlignment()
public boolean setAlpha(int alpha)
alpha
- Opacity value (0~255)public int getAlpha()
public boolean setRect(RectF rectF)
setRect
in class CPDFAnnotation
rectF
- Rectangle on the page.public boolean setContentAndRect(java.lang.String content, RectF rectF)
public RectF getRect()
getRect
in class CPDFAnnotation
public java.lang.String getContent()
getContent
in class CPDFAnnotation
public boolean setContent(java.lang.String content)
setContent
in class CPDFAnnotation
content
- Content of FreeText annotation.public CPDFBorderStyle getBorderStyle()
CPDFBorderStyle
getBorderStyle
in class CPDFAnnotation
CPDFBorderStyle
public boolean setBorderStyle(CPDFBorderStyle borderStyle)
CPDFBorderStyle
setBorderStyle
in class CPDFAnnotation
borderStyle
- Border style, more: CPDFBorderStyle
public boolean updateAp()
updateAp
in class CPDFAnnotation