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(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.
|
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 or sets 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 |
getStartingStyle()
Gets or sets line ending style for line starting point.
|
TextStyle |
getTextStyle()
Gets or sets style of the text in appearance.
|
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) |
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 |
setStartingStyle(int value) |
void |
setTextStyle(TextStyle value)
Sets style of the text in appearance.
|
getCreationDate, getCreationDateInternal, 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, getPage, getPageIndex, getPageIndex, getRect, getStates, getWidth, initialize, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setRect, setWidth
deepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndex
public 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 or sets line ending style for line starting point.
public void setStartingStyle(int value)
public int getEndingStyle()
Gets or sets line ending style for line ending point.
public void setEndingStyle(int value)
public int getJustification()
Gets a code specifying the form of quadding (justification) to be used in displaying the annotation�s text.
public void setJustification(int value)
Sets a code specifying the form of quadding (justification) to be used in displaying the annotation�s text.
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.
public DefaultAppearance getDefaultAppearanceObject()
Object which represents default appearance of FreeText annotation.
public int getIntent()
Gets the intent of the free text annotation.
public void setIntent(int value)
Sets the intent of the free text annotation.
public String getDefaultStyle()
Gets a default style string.
public void setDefaultStyle(String value)
Sets a default style string.
public 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.
Copyright © 2020 Aspose. All Rights Reserved.