public class TextInfo extends Object
Constructor and Description |
---|
TextInfo()
Creates a new TextInfo instance.
|
TextInfo(String text, List<Float> bbox)
Deprecated.
since 1.0.1. Use
TextInfo(String, Rectangle) instead
|
TextInfo(String text, com.itextpdf.kernel.geom.Rectangle bbox)
Creates a new TextInfo instance.
|
TextInfo(String text, com.itextpdf.kernel.geom.Rectangle bboxRect, List<Float> bbox)
Deprecated.
since 1.0.1. Use
TextInfo(String, Rectangle) instead
|
TextInfo(TextInfo textInfo)
Creates a new TextInfo instance from existing one.
|
Modifier and Type | Method and Description |
---|---|
List<Float> |
getBbox()
Deprecated.
since 1.0.1. Use
getBboxRect() instead
|
com.itextpdf.kernel.geom.Rectangle |
getBboxRect()
Gets bbox coordinates.
|
String |
getText()
Gets text element.
|
void |
setBbox(List<Float> bbox)
Deprecated.
since 1.0.1. Use
setBboxRect(Rectangle) instead
|
void |
setBboxRect(com.itextpdf.kernel.geom.Rectangle bbox)
Sets text bbox.
|
void |
setText(String newText)
Sets text element.
|
public TextInfo()
TextInfo
instance.
public TextInfo(TextInfo textInfo)
TextInfo
instance from existing one.
textInfo
- to create from
public TextInfo(String text, com.itextpdf.kernel.geom.Rectangle bbox)
TextInfo
instance.
text
- any text
bbox
- Rectangle
describing text bbox
@Deprecated public TextInfo(String text, List<Float> bbox)
TextInfo(String, Rectangle)
instead
TextInfo
instance.
text
- any text
bbox
- List
of bbox parameters
@Deprecated public TextInfo(String text, com.itextpdf.kernel.geom.Rectangle bboxRect, List<Float> bbox)
TextInfo(String, Rectangle)
instead
TextInfo
instance.
text
- any text
bboxRect
- Rectangle
describing text bbox
bbox
- List
of bbox parameters
public String getText()
public void setText(String newText)
newText
- retrieved text
public com.itextpdf.kernel.geom.Rectangle getBboxRect()
Rectangle
describing text bbox
public void setBboxRect(com.itextpdf.kernel.geom.Rectangle bbox)
bbox
- Rectangle
describing text bbox
@Deprecated public List<Float> getBbox()
getBboxRect()
instead
List
of bbox parameters
@Deprecated public void setBbox(List<Float> bbox)
setBboxRect(Rectangle)
instead
bbox
- List
of bbox parameters
Copyright © 1998–2021 iText Group NV. All rights reserved.