public class PageTextArea extends PageArea
An instance of PageTextArea class is used as return value of the following methods:
Parser.getTextAreas()Parser.getTextAreas(PageTextAreaOptions)Parser.getTextAreas(int)Parser.getTextAreas(int, PageTextAreaOptions)Also an instance of PageTextArea class is used as value of PageArea property.
See the usage examples there.
The text area can be single or composite. In the first case it contains a text which is bounded by a rectangular area. In the second case it contains other text areas; text and table properties are calculated by child text areas.
| Constructor and Description |
|---|
PageTextArea(Iterable<PageTextArea> areas,
Page page)
Initializes a new instance of the
PageTextArea class. |
PageTextArea(String text,
Double baseLine,
TextStyle textStyle,
Page page,
Rectangle rectangle)
Initializes a new instance of the
PageTextArea class. |
PageTextArea(String text,
Page page,
Rectangle rectangle)
Initializes a new instance of the
PageTextArea class. |
| Modifier and Type | Method and Description |
|---|---|
List<PageTextArea> |
getAreas()
Gets the collection of child text page areas.
|
double |
getBaseLine()
Gets the base line.
|
String |
getText()
Gets the text.
|
TextStyle |
getTextStyle()
Gets the text style such as font size, font name an so on.
|
getPage, getRectangle, setRectanglepublic PageTextArea(String text, Page page, Rectangle rectangle)
PageTextArea class.text - The value of the text.page - The page that contains the text area.rectangle - The rectangular area that contains the text area.public PageTextArea(String text, Double baseLine, TextStyle textStyle, Page page, Rectangle rectangle)
PageTextArea class.text - The value of the text.baseLine - The base line of the text.textStyle - The style of the text.page - The page that contains the text area.rectangle - The rectangular area that contains the text area.public PageTextArea(Iterable<PageTextArea> areas, Page page)
PageTextArea class.areas - The collecton of child text page areas.page - The page that contains the text area.public String getText()
public double getBaseLine()
public TextStyle getTextStyle()
TextStyle class that represents the text style.public List<PageTextArea> getAreas()
Copyright © 2026. All rights reserved.