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
FieldsModifier and TypeFieldDescriptionprivate float
The y coordinate of the line on which the text is located. -
Constructor Summary
ConstructorsConstructorDescriptionTextRectangle
(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
-
Field Details
-
textBaseLineYCoordinate
private float textBaseLineYCoordinateThe y coordinate of the line on which the text is located.
-
-
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 pointy
- the y coordinate of lower left pointwidth
- the width valueheight
- the height valuetextBaseLineYCoordinate
- 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
-