@JsonData
public interface TextInfo
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.util.List<java.awt.geom.Rectangle2D> |
getAreas()
Get the areas of the TextInfo.
|
java.awt.geom.Rectangle2D |
getBounds()
Returns the bounds of the whole text info, SCALED
|
float[] |
getCharWidth()
Returns the width of all characters of the text in pixel
|
double |
getHeight()
Returns the height in pixels
|
java.lang.String |
getLabel()
String representation for the content
|
int |
getPageIndex()
Get the pageIndex of the TextInfo
|
double |
getRotation()
Get the rotation of this element in radians
|
float |
getScale()
Get the scale of the BaseTextInfo
|
java.lang.String |
getText()
Returns the content of this text info
|
com.inet.pdfc.model.ElementType |
getType()
Get the type of this element
|
int |
getWhiteSpaceWidth()
Returns the width of a whitespace using the font in this
TextInfoImpl with the size of this TextInfo
multiplied by 20 and scaled. |
double |
getX()
Returns the x-coordinate of the element
|
double |
getY()
Returns the y-coordinate of the element
|
boolean |
isLeft()
Get the left of the TextInfo
|
void |
setScale(double scale)
Re-scale the bounding-boxes of characters to the given scale.
|
void |
setX(double x)
x cooridnates in unscaled page
|
void |
setY(double y)
y cooridnates in unscaled page
|
java.util.List<java.awt.geom.Rectangle2D> getAreas()
java.lang.String getText()
double getX()
void setX(double x)
x
- - the x to set, in unscaled page coordinatesdouble getY()
void setY(double y)
y
- - the y to set, in unscaled page coordinatesdouble getHeight()
boolean isLeft()
int getPageIndex()
java.lang.String getLabel()
double getRotation()
int getWhiteSpaceWidth()
TextInfoImpl
with the size of this TextInfo
multiplied by 20 and scaled.java.awt.geom.Rectangle2D getBounds()
float getScale()
void setScale(double scale)
scale
- the new scalecom.inet.pdfc.model.ElementType getType()
float[] getCharWidth()
Copyright © 2010-2022 by i-net software GmbH