Package com.itextpdf.svg.utils
Class TextRectangle
- java.lang.Object
-
- com.itextpdf.kernel.geom.Rectangle
-
- com.itextpdf.svg.utils.TextRectangle
-
- All Implemented Interfaces:
java.lang.Cloneable
public class TextRectangle extends Rectangle
A rectangle adapted for working with text elements.
-
-
Constructor Summary
Constructors Constructor Description TextRectangle(float x, float y, float width, float height, float textBaseLineYCoordinate)
Create new instance of text rectangle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Point
getTextBaseLineRightPoint()
Return 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 Detail
-
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 Detail
-
getTextBaseLineRightPoint
public Point getTextBaseLineRightPoint()
Return the far right point of the rectangle with y on the baseline.- Returns:
- the far right baseline point
-
-