Package com.evopdf
Class TextNoteElement
java.lang.Object
com.evopdf.PageElement
com.evopdf.TextNoteElement
Represents a text annotation in the PDF page
-
Constructor Summary
ConstructorsConstructorDescriptionTextNoteElement
(RectangleFloat linkRectangle, String text) Constructs a text note element -
Method Summary
Modifier and TypeMethodDescriptionGets the text note element rectangle in PDF pagenoteIcon()
Gets the text note icon in PDF documentboolean
open()
Gets the default annotation statusvoid
setLinkRectangle
(RectangleFloat linkRectangle) Sets the text note element rectangle in PDF pagevoid
setNoteIcon
(TextNoteIcon icon) Sets the text note icon in PDF documentvoid
setOpen
(boolean open) Sets the default annotation status.void
Sets the annotation texttext()
Gets the annotation text
-
Constructor Details
-
TextNoteElement
Constructs a text note element- Parameters:
linkRectangle
- The link rectangle in pagetext
- The text annotation
-
-
Method Details
-
linkRectangle
Gets the text note element rectangle in PDF page- Returns:
- the text note element rectangle in PDF page
-
setLinkRectangle
Sets the text note element rectangle in PDF page- Parameters:
linkRectangle
- the text note element rectangle in PDF page
-
text
Gets the annotation text- Returns:
- the annotation text
-
setText
Sets the annotation text- Parameters:
text
- the annotation text
-
open
public boolean open()Gets the default annotation status- Returns:
- the default annotation status
-
setOpen
public void setOpen(boolean open) Sets the default annotation status. Default value is false and the annotation is closed- Parameters:
open
- the default annotation status
-
noteIcon
Gets the text note icon in PDF document- Returns:
- the text note icon in PDF document
-
setNoteIcon
Sets the text note icon in PDF document- Parameters:
icon
- the text note icon in PDF document
-