public class CPDFFreetextAttr extends CPDFAnnotAttrBase implements IAttributeCallback
The attribute was used when creating Freetext annotation
Modifier and Type | Method and Description |
---|---|
CPDFFreetextAnnotation.Alignment |
getAlignment()
Gets the alignment of Freetext annotation, more:
CPDFFreetextAnnotation.Alignment |
int |
getAlpha()
Gets the opacity of Strikeout annotation, opacity range 0-255
|
CPDFBorderStyle |
getBorderStyle()
Gets the border style of Circle annotation.
|
CPDFTextAttribute |
getTextAttribute()
Gets the text attribute of Freetext annotation, more:
CPDFTextAttribute |
void |
onload()
Loads the attribute of Freetext annotation, this method does not need to be called by user.
|
void |
onstore()
Saves the attribute of Freetext annotation, this method does not need to be called by user.
|
void |
setAlignment(CPDFFreetextAnnotation.Alignment alignment)
Sets the alignment of Freetext annotation.
|
void |
setAlpha(int alpha)
Sets the opacity of Freetext annotation.
|
void |
setBorderStyle(CPDFBorderStyle borderStyle)
Sets the border style of Circle annotation.
|
void |
setTextAttribute(CPDFTextAttribute textAttribute)
Sets the text attribute of Freetext annotation, more:
CPDFTextAttribute |
public int getAlpha()
public void setAlpha(int alpha)
alpha
- Opacity, range 0-255public CPDFTextAttribute getTextAttribute()
CPDFTextAttribute
CPDFTextAttribute
public void setTextAttribute(CPDFTextAttribute textAttribute)
CPDFTextAttribute
textAttribute
- Text attribute, more: CPDFTextAttribute
public CPDFFreetextAnnotation.Alignment getAlignment()
CPDFFreetextAnnotation.Alignment
public void setAlignment(CPDFFreetextAnnotation.Alignment alignment)
alignment
- Alignment of Freetext annotation.public CPDFBorderStyle getBorderStyle()
public void setBorderStyle(CPDFBorderStyle borderStyle)
borderStyle
- Border style of Circle annotation.public void onload()
onload
in interface IAttributeCallback
public void onstore()
onstore
in interface IAttributeCallback