public final class FreeTextAnnotation extends MarkupAnnotation
Represents a free text annotation that displays text directly on the page. Unlike an ordinary text annotation, a free text annotation has no open or closed state; instead of being displayed in a pop-up window, the text is always visible.
_disableUpdateAppearance
Constructor and Description |
---|
FreeTextAnnotation(IDocument document,
DefaultAppearance appearance)
Constructor to use with Generator.
|
FreeTextAnnotation(Page page,
Rectangle rect,
DefaultAppearance appearance)
Creates new FreeText annotation on the specified page.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
|
int |
getAnnotationType()
Gets type of annotation.
|
String |
getDefaultAppearance()
Gets the default appearance string to be used in formatting the text.
|
DefaultAppearance |
getDefaultAppearanceObject()
Object which represents default appearance of FreeText annotation.
|
String |
getDefaultStyle()
Gets a default style string.
|
int |
getEndingStyle()
Gets line ending style for line ending point.
|
int |
getIntent()
Gets the intent of the free text annotation.
|
int |
getJustification()
Gets a code specifying the form of quadding (justification) to be used in displaying the
annotation's text.
|
int |
getRotate()
Angle of annotation rotation.
|
int |
getStartingStyle()
Gets line ending style for line starting point.
|
TextStyle |
getTextStyle()
Gets or sets style of the text in appearance. when text style is changed, text appearance is
updated.
|
void |
setDefaultAppearance(String value)
Sets the default appearance string to be used in formatting the text.
|
void |
setDefaultStyle(String value)
Sets a default style string.
|
void |
setEndingStyle(int value)
Sets line ending style for line ending point.
|
void |
setIntent(int value)
Sets the intent of the free text annotation.
|
void |
setJustification(int value)
Sets a code specifying the form of quadding (justification) to be used in displaying the
annotation's text.
|
void |
setRotate(int value)
Angle of annotation rotation.
|
void |
setStartingStyle(int value)
Sets line ending style for line starting point.
|
void |
setTextStyle(TextStyle value)
Sets style of the text in appearance. when text style is changed, text appearance is updated.
|
getCreationDate, getInReplyTo, getOpacity, getPopup, getReplyType, getRichText, getSubject, getTitle, setInReplyTo, setOpacity, setPopup, setReplyType, setRichText, setSubject, setTitle
createAnnotation, flatten, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPageIndex, getPageIndex, getPdfActions, getRect, getRectangle, getStates, getWidth, initialize, isUpdateAppearanceOnConvert, isUseFontSubset, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setRect, setUpdateAppearanceOnConvert, setUseFontSubset, setWidth
deepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndex
public FreeTextAnnotation(IDocument document, DefaultAppearance appearance)
Constructor to use with Generator.
document
- Document where annotation will be created.appearance
- Default Appearancepublic FreeTextAnnotation(Page page, Rectangle rect, DefaultAppearance appearance)
Creates new FreeText annotation on the specified page.
page
- The document's page where annotation should be created.rect
- The annotation rectangle, defining the location of the annotation on the page.appearance
- The default appearance string to be used in formatting the text.public int getStartingStyle()
Gets line ending style for line starting point.
LineEnding
public void setStartingStyle(int value)
Sets line ending style for line starting point.
value
- LineEnding valueLineEnding
public int getEndingStyle()
Gets line ending style for line ending point.
LineEnding
public void setEndingStyle(int value)
Sets line ending style for line ending point.
value
- LineEnding valueLineEnding
public int getJustification()
Gets a code specifying the form of quadding (justification) to be used in displaying the annotation's text.
Justification
public void setJustification(int value)
Sets a code specifying the form of quadding (justification) to be used in displaying the annotation's text.
value
- int valueJustification
public void accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
accept
in class Annotation
visitor
- Visitor object.public String getDefaultAppearance()
Gets the default appearance string to be used in formatting the text.
public void setDefaultAppearance(String value)
Sets the default appearance string to be used in formatting the text.
value
- String valuepublic DefaultAppearance getDefaultAppearanceObject()
Object which represents default appearance of FreeText annotation.
public int getIntent()
Gets the intent of the free text annotation.
FreeTextIntent
public void setIntent(int value)
Sets the intent of the free text annotation.
value
- int valueFreeTextIntent
public String getDefaultStyle()
Gets a default style string.
public void setDefaultStyle(String value)
Sets a default style string.
value
- String valuepublic TextStyle getTextStyle()
Gets or sets style of the text in appearance. when text style is changed, text appearance is updated.
public void setTextStyle(TextStyle value)
Sets style of the text in appearance. when text style is changed, text appearance is updated.
value
- TextStyle objectpublic int getRotate()
Angle of annotation rotation.
Rotation
public void setRotate(int value)
Angle of annotation rotation.
value
- Rotation elementRotation
public int getAnnotationType()
Gets type of annotation.
getAnnotationType
in class Annotation
AnnotationType