public abstract class Annotation extends BaseParagraph
Class representing annotation object.
Modifier and Type | Field and Description |
---|---|
boolean |
_disableUpdateAppearance |
Modifier and Type | Method and Description |
---|---|
abstract void |
accept(AnnotationSelector visitor)
Accepts visitor for annotation processing.
|
void |
flatten()
Places annotation contents directly on the page,
annotation object will be removed.
|
String |
getActiveState()
Gets current annotation appearance state.
|
int |
getAlignment()
Deprecated.
|
AppearanceDictionary |
getAppearance()
Gets appearance dictionary of the annotation.
|
Border |
getBorder()
Gets annotation border characteristics.
|
Characteristics |
getCharacteristics()
Gets annotation characteristics.
|
Color |
getColor()
Gets annotation color.
|
String |
getContents()
Gets or sets annotation text.
|
com.aspose.pdf.engine.data.IPdfDictionary |
getEngineDict() |
com.aspose.pdf.engine.data.IPdfObject |
getEngineObj() |
int |
getFlags()
Returns flags of the a.
|
String |
getFullName()
Gets full qualified name of the annotation.
|
double |
getHeight()
Gets or sets height of the annotation.
|
int |
getHorizontalAlignment_Annotation_New()
Gets or sets text alignmennt for annotation.
|
Date |
getModified() |
com.aspose.ms.System.DateTime |
getModifiedInternal()
Gets date and time when annotation was recently modified.
|
String |
getName()
Gets or sets annotation name on the page.
|
XForm |
getNormalAppearance()
Gets normal appearance.
|
Page |
getPage()
Gets the page object with which this annotation is associated.
|
int |
getPageIndex()
Gets index of page which contains annotation.
|
int |
getPageIndex(Annotation annotation) |
Rectangle |
getRect()
Gets or sets annotation rectangle.
|
AppearanceDictionary |
getStates()
Gets appearance dictionary of annotation.
|
double |
getWidth()
Gets or sets width of the annotation.
|
void |
initialize(IDocument doc) |
void |
setActiveState(String value)
Sets current annotation appearance state.
|
void |
setAlignment(int value)
Deprecated.
|
void |
setBorder(Border value)
Sets annotation border characteristics.
|
void |
setColor(Color value)
Sets annotation color.
|
void |
setContents(String value) |
void |
setFlags(int value)
Sets flags of the annotation.
|
void |
setHeight(double value)
Sets annotation height.
|
void |
setHorizontalAlignment_Annotation_New(int value)
Sets value of horizontal alignment.
|
void |
setModified(Date value) |
void |
setModifiedInternal(Object value)
Sets date and time when annotation was recently modified.
|
void |
setName(String value) |
void |
setRect(Rectangle value) |
void |
setWidth(double value)
Sets width of the annotation.
|
deepClone, getMargin, isKeptWithNext, isKeptWithNext, setHorizontalAlignment, setMargin, setVerticalAlignment
public void initialize(IDocument doc)
public com.aspose.pdf.engine.data.IPdfObject getEngineObj()
public com.aspose.pdf.engine.data.IPdfDictionary getEngineDict()
public XForm getNormalAppearance()
Gets normal appearance.
public int getFlags()
public void setFlags(int value)
value
- New flags value.public Page getPage()
Gets the page object with which this annotation is associated.
public double getWidth()
Gets or sets width of the annotation.
public void setWidth(double value)
value
- New width value.public double getHeight()
Gets or sets height of the annotation.
public void setHeight(double value)
value
- New annotation height.public Rectangle getRect()
Gets or sets annotation rectangle.
public void setRect(Rectangle value)
public String getContents()
Gets or sets annotation text.
public void setContents(String value)
public String getName()
Gets or sets annotation name on the page.
public void setName(String value)
public com.aspose.ms.System.DateTime getModifiedInternal()
Gets date and time when annotation was recently modified.
public Date getModified()
public void setModifiedInternal(Object value)
Sets date and time when annotation was recently modified.
value
- Date and time of annotation modification.public void setModified(Date value)
public Color getColor()
Gets annotation color.
public void setColor(Color value)
Sets annotation color.
value
- New color.public Border getBorder()
Gets annotation border characteristics. Border
public void setBorder(Border value)
Sets annotation border characteristics. Border
value
- New annotation border characteristics.public String getActiveState()
Gets current annotation appearance state.
public void setActiveState(String value)
Sets current annotation appearance state.
value
- New active state value.public Characteristics getCharacteristics()
Gets annotation characteristics.
public AppearanceDictionary getStates()
Gets appearance dictionary of annotation.
@Deprecated public int getAlignment()
Gets or sets text alignmennt for annotation.
@Deprecated public void setAlignment(int value)
Sets text alignmennt for annotation.
value
- New annotation text alignment.public int getHorizontalAlignment_Annotation_New()
Gets or sets text alignmennt for annotation.
public void setHorizontalAlignment_Annotation_New(int value)
Sets value of horizontal alignment.
value
- New horizontal alignment.public abstract void accept(AnnotationSelector visitor)
Accepts visitor for annotation processing.
visitor
- Visitor for annotation processing.public void flatten()
Places annotation contents directly on the page, annotation object will be removed.
public String getFullName()
Gets full qualified name of the annotation.
public AppearanceDictionary getAppearance()
Gets appearance dictionary of the annotation.
public int getPageIndex()
Gets index of page which contains annotation.
public int getPageIndex(Annotation annotation)
Copyright © 2017 Aspose. All Rights Reserved.