Package com.itextpdf.svg.utils
Class TextRectangle
java.lang.Object
com.itextpdf.kernel.geom.Rectangle
com.itextpdf.svg.utils.TextRectangle
- All Implemented Interfaces:
-
Cloneable
A rectangle adapted for working with text elements.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTextRectangle
(float x, float y, float width, float height, float textBaseLineYCoordinate) Create new instance of text rectangle. -
Method Summary
Modifier and TypeMethodDescriptionReturn the far right point of the rectangle with y on the baseline.Methods inherited from class com.itextpdf.kernel.geom.Rectangle
applyMargins, calculateBBox, clone, contains, createBoundingRectangleFromQuadPoint, createBoundingRectanglesFromQuadPoint, decreaseHeight, decreaseWidth, equalsWithEpsilon, equalsWithEpsilon, getBottom, getCommonRectangle, getHeight, getIntersection, getLeft, getRectangleOnRotatedPage, getRight, getTop, getWidth, getX, getY, increaseHeight, increaseWidth, intersectsLine, moveDown, moveLeft, moveRight, moveUp, overlaps, overlaps, setBbox, setHeight, setWidth, setX, setY, toPointsArray, toString
-
Constructor Details
-
TextRectangle
public TextRectangle(float x, float y, float width, float height, float textBaseLineYCoordinate) Create new instance of text rectangle.- Parameters:
-
x
- the x coordinate of lower left point -
y
- the y coordinate of lower left point -
width
- the width value -
height
- the height value -
textBaseLineYCoordinate
- the y coordinate of the line on which the text is located.
-
-
Method Details
-
getTextBaseLineRightPoint
Return the far right point of the rectangle with y on the baseline.- Returns:
- the far right baseline point
-