Uses of Class
com.itextpdf.kernel.geom.Rectangle
-
-
Uses of Rectangle in com.itextpdf.barcodes
Methods in com.itextpdf.barcodes that return Rectangle Modifier and Type Method Description Rectangle
Barcode128. getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy.abstract Rectangle
Barcode1D. getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy.abstract Rectangle
Barcode2D. getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy.Rectangle
Barcode39. getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy.Rectangle
BarcodeCodabar. getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy.Rectangle
BarcodeDataMatrix. getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy.Rectangle
BarcodeDataMatrix. getBarcodeSize(float moduleHeight, float moduleWidth)
Gets the barcode sizeRectangle
BarcodeEAN. getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy.Rectangle
BarcodeEANSUPP. getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy.Rectangle
BarcodeInter25. getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy.Rectangle
BarcodeMSI. getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy.Rectangle
BarcodePDF417. getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy.Rectangle
BarcodePostnet. getBarcodeSize()
Rectangle
BarcodeQRCode. getBarcodeSize()
Gets the size of the barcode gridRectangle
BarcodeQRCode. getBarcodeSize(float moduleSize)
Gets the barcode sizeRectangle
Barcode128. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.abstract Rectangle
Barcode1D. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.abstract Rectangle
Barcode2D. placeBarcode(PdfCanvas canvas, Color foreground)
Places the barcode in aPdfCanvas
.Rectangle
Barcode39. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeCodabar. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeDataMatrix. placeBarcode(PdfCanvas canvas, Color foreground)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeDataMatrix. placeBarcode(PdfCanvas canvas, Color foreground, float moduleSide)
Places the barcode in a PdfCanvasRectangle
BarcodeEAN. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeEANSUPP. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeInter25. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeMSI. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodePDF417. placeBarcode(PdfCanvas canvas, Color foreground)
Places the barcode in aPdfCanvas
.Rectangle
BarcodePDF417. placeBarcode(PdfCanvas canvas, Color foreground, float moduleWidth, float moduleHeight)
Places the barcode in aPdfCanvas
.Rectangle
BarcodePostnet. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Rectangle
BarcodeQRCode. placeBarcode(PdfCanvas canvas, Color foreground)
Rectangle
BarcodeQRCode. placeBarcode(PdfCanvas canvas, Color foreground, float moduleSide)
* Places the barcode in aPdfCanvas
. -
Uses of Rectangle in com.itextpdf.forms
Methods in com.itextpdf.forms with parameters of type Rectangle Modifier and Type Method Description private AffineTransform
PdfAcroForm. calcFieldAppTransformToAnnotRect(PdfFormXObject xObject, Rectangle annotBBox)
-
Uses of Rectangle in com.itextpdf.forms.fields
Fields in com.itextpdf.forms.fields declared as Rectangle Modifier and Type Field Description private Rectangle
TerminalFormFieldBuilder. widgetRectangle
Rectangle which defines widget placement.Methods in com.itextpdf.forms.fields that return Rectangle Modifier and Type Method Description private Rectangle
PdfFormAnnotation. applyRotation(int fieldRotation, Rectangle rectangle)
protected Rectangle
PdfFormAnnotation. getRect(PdfDictionary field)
Gets aRectangle
that matches the current size and position of this form field.Rectangle
TerminalFormFieldBuilder. getWidgetRectangle()
Gets rectangle which defines widget's placement.Methods in com.itextpdf.forms.fields with parameters of type Rectangle Modifier and Type Method Description private Rectangle
PdfFormAnnotation. applyRotation(int fieldRotation, Rectangle rectangle)
PdfFormAnnotation
RadioFormFieldBuilder. createRadioButton(java.lang.String appearanceName, Rectangle rectangle)
Creates radio button form field instance based on provided parameters.private static boolean
PdfFormAnnotation. isFieldInvisible(Rectangle rect)
Gets the visibility status of the signature.private void
PdfFormAnnotation. setModelElementProperties(Rectangle rectangle)
T
TerminalFormFieldBuilder. setWidgetRectangle(Rectangle widgetRectangle)
Sets rectangle which defines widget's placement. -
Uses of Rectangle in com.itextpdf.forms.form.renderer
Methods in com.itextpdf.forms.form.renderer that return Rectangle Modifier and Type Method Description protected Rectangle
CheckBoxRenderer. applyBorderBox(Rectangle rect, Border[] borders, boolean reverse)
Applies the given border box (borders) on the given rectangleprotected Rectangle
RadioRenderer. applyBorderBox(Rectangle rect, Border[] borders, boolean reverse)
Applies the given border box (borders) on the given rectangleprotected Rectangle
CheckBoxRenderer. applyPaddings(Rectangle rect, UnitValue[] paddings, boolean reverse)
Applies given paddings to the given rectangle.Methods in com.itextpdf.forms.form.renderer with parameters of type Rectangle Modifier and Type Method Description private void
SignatureAppearanceRenderer. adjustChildrenLayout(SignatureAppearanceRenderer.DisplayOption displayOption, Rectangle signatureRect, Rectangle descriptionRect, int pageNum)
(package private) void
AbstractTextFieldRenderer. adjustNumberOfContentLines(java.util.List<LineRenderer> lines, Rectangle bBox, float height)
Adjust number of content lines.(package private) void
AbstractTextFieldRenderer. adjustNumberOfContentLines(java.util.List<LineRenderer> lines, Rectangle bBox, int rows)
Adjust number of content lines.private static void
AbstractTextFieldRenderer. adjustNumberOfContentLines(java.util.List<LineRenderer> lines, Rectangle bBox, int linesNumber, float height)
protected Rectangle
CheckBoxRenderer. applyBorderBox(Rectangle rect, Border[] borders, boolean reverse)
Applies the given border box (borders) on the given rectangleprotected Rectangle
RadioRenderer. applyBorderBox(Rectangle rect, Border[] borders, boolean reverse)
Applies the given border box (borders) on the given rectangleprotected Rectangle
CheckBoxRenderer. applyPaddings(Rectangle rect, UnitValue[] paddings, boolean reverse)
Applies given paddings to the given rectangle.(package private) void
AbstractOneLineTextFieldRenderer. cropContentLines(java.util.List<LineRenderer> lines, Rectangle bBox)
Crops the content lines.private void
TextAreaRenderer. cropContentLines(java.util.List<LineRenderer> lines, Rectangle bBox)
(package private) float
AbstractTextFieldRenderer. getHeightRowsBased(java.util.List<LineRenderer> lines, Rectangle bBox, int rows)
private void
SignatureAppearanceRenderer. relayoutImage(Rectangle signatureRect, int pageNum)
private void
SignatureAppearanceRenderer. relayoutParagraph(IRenderer renderer, Rectangle rect, int pageNum)
-
Uses of Rectangle in com.itextpdf.forms.form.renderer.checkboximpl
Methods in com.itextpdf.forms.form.renderer.checkboximpl with parameters of type Rectangle Modifier and Type Method Description private float
PdfCheckBoxRenderingStrategy. calculateFontSize(CheckBoxRenderer checkBoxRenderer, PdfFont fontContainingSymbols, java.lang.String text, Rectangle rectangle, float borderWidth)
void
HtmlCheckBoxRenderingStrategy. drawCheckBoxContent(DrawContext drawContext, CheckBoxRenderer checkBoxRenderer, Rectangle rectangle)
Draws a check box icon.void
ICheckBoxRenderingStrategy. drawCheckBoxContent(DrawContext drawContext, CheckBoxRenderer checkBoxRenderer, Rectangle rectangle)
Draws a check box icon.void
PdfACheckBoxRenderingStrategy. drawCheckBoxContent(DrawContext drawContext, CheckBoxRenderer checkBoxRenderer, Rectangle rectangle)
Draws a check box icon.void
PdfCheckBoxRenderingStrategy. drawCheckBoxContent(DrawContext drawContext, CheckBoxRenderer checkBoxRenderer, Rectangle rectangle)
Draws a check box icon.private static void
PdfACheckBoxRenderingStrategy. drawIcon(CheckBoxType type, PdfCanvas canvas1, Rectangle rectangle)
private void
PdfCheckBoxRenderingStrategy. drawZapfdingbatsIcon(PdfFont fontContainingSymbols, java.lang.String text, float fontSize, Rectangle rectangle, PdfCanvas canvas)
-
Uses of Rectangle in com.itextpdf.forms.util
Methods in com.itextpdf.forms.util with parameters of type Rectangle Modifier and Type Method Description static float
FontSizeUtil. approximateFontSizeToFitSingleLine(PdfFont localFont, Rectangle bBox, java.lang.String value, float minValue, float borderWidth)
Calculates the font size that will fit the text in the given rectangle. -
Uses of Rectangle in com.itextpdf.forms.xfdf
Methods in com.itextpdf.forms.xfdf that return Rectangle Modifier and Type Method Description (package private) static Rectangle
XfdfObjectUtils. convertRectFromString(java.lang.String rectString)
Converts a string containing 2 or 4 float values into aRectangle
.Methods in com.itextpdf.forms.xfdf with parameters of type Rectangle Modifier and Type Method Description (package private) void
AnnotObject. addAttribute(java.lang.String name, Rectangle value)
(package private) static java.lang.String
XfdfObjectUtils. convertRectToString(Rectangle rect)
Converts a Rectangle to a string containing 4 float values. -
Uses of Rectangle in com.itextpdf.kernel.colors.gradients
Methods in com.itextpdf.kernel.colors.gradients with parameters of type Rectangle Modifier and Type Method Description private static Point[]
StrategyBasedLinearGradientBuilder. buildCentralRotationCoordinates(Rectangle targetBoundingBox, double angle)
Color
AbstractLinearGradientBuilder. buildColor(Rectangle targetBoundingBox, AffineTransform contextTransform, PdfDocument document)
Builds theColor
object representing the linear gradient with specified configuration that fills the target bounding box.private static Point[]
StrategyBasedLinearGradientBuilder. buildCoordinates(Rectangle targetBoundingBox, AffineTransform transformation)
private static Point[]
StrategyBasedLinearGradientBuilder. buildCoordinatesWithGradientStrategy(Rectangle targetBoundingBox, StrategyBasedLinearGradientBuilder.GradientStrategy gradientStrategy)
private static Point[]
StrategyBasedLinearGradientBuilder. buildToCornerCoordinates(Rectangle targetBoundingBox, Point gradientCenterLineRightCorner)
private static PdfAxialShading
AbstractLinearGradientBuilder. createAxialShading(Point[] baseCoordinatesVector, java.util.List<GradientColorStop> stops, GradientSpreadMethod spreadMethod, Rectangle targetBoundingBox)
protected static double[]
AbstractLinearGradientBuilder. evaluateCoveringDomain(Point[] coords, Rectangle toCover)
Evaluates the minimal domain that covers the box with vector normals.protected AffineTransform
AbstractLinearGradientBuilder. getCurrentSpaceToGradientVectorSpaceTransformation(Rectangle targetBoundingBox, AffineTransform contextTransform)
Returns the current space to gradient vector space transformations that should be applied to the shading color.AffineTransform
LinearGradientBuilder. getCurrentSpaceToGradientVectorSpaceTransformation(Rectangle targetBoundingBox, AffineTransform contextTransform)
protected abstract Point[]
AbstractLinearGradientBuilder. getGradientVector(Rectangle targetBoundingBox, AffineTransform contextTransform)
Returns the base gradient vector in gradient vector space.Point[]
LinearGradientBuilder. getGradientVector(Rectangle targetBoundingBox, AffineTransform contextTransform)
protected Point[]
StrategyBasedLinearGradientBuilder. getGradientVector(Rectangle targetBoundingBox, AffineTransform contextTransform)
-
Uses of Rectangle in com.itextpdf.kernel.geom
Subclasses of Rectangle in com.itextpdf.kernel.geom Modifier and Type Class Description class
PageSize
Methods in com.itextpdf.kernel.geom that return Rectangle Modifier and Type Method Description Rectangle
Rectangle. applyMargins(float topIndent, float rightIndent, float bottomIndent, float leftIndent, boolean reverse)
Change the rectangle according the specified margins.static Rectangle
Rectangle. calculateBBox(java.util.List<Point> points)
Calculates the bounding box of passed points.Rectangle
PageSize. clone()
Creates a "deep copy" of this PageSize, meaning the object returned by this method will be independent of the object being cloned.Rectangle
Rectangle. clone()
Creates a "deep copy" of this rectangle, meaning the object returned by this method will be independent of the object being cloned.static Rectangle
Rectangle. createBoundingRectangleFromQuadPoint(PdfArray quadPoints)
Create the bounding rectangle for the given array of quadpoints.Rectangle
Rectangle. decreaseHeight(float extra)
Decreases the height of rectangle by the given value.Rectangle
Rectangle. decreaseWidth(float extra)
Decreases the width of rectangle by the given value.Rectangle
LineSegment. getBoundingRectangle()
Computes the bounding rectangle for this line segment.static Rectangle
Rectangle. getCommonRectangle(Rectangle... rectangles)
Calculates the common rectangle which includes all the input rectangles.Rectangle
Rectangle. getIntersection(Rectangle rect)
Get the rectangle representation of the intersection between this rectangle and the passed rectanglestatic Rectangle
Rectangle. getRectangleOnRotatedPage(Rectangle rect, PdfPage page)
Gets the rectangle as it looks on the rotated page and returns the rectangle in coordinates relevant to the true page origin.Rectangle
Rectangle. increaseHeight(float extra)
Increases the height of rectangle by the given value.Rectangle
Rectangle. increaseWidth(float extra)
Increases the width of rectangle by the given value.Rectangle
Rectangle. moveDown(float move)
Decreases the y coordinate.Rectangle
Rectangle. moveLeft(float move)
Decreases the x coordinate.Rectangle
Rectangle. moveRight(float move)
Increases the x coordinate.Rectangle
Rectangle. moveUp(float move)
Increases the y coordinate.Rectangle
Rectangle. setBbox(float llx, float lly, float urx, float ury)
Sets the rectangle by the coordinates, specifying its lower left and upper right points.Rectangle
Rectangle. setHeight(float height)
Sets the height of rectangle.Rectangle
Rectangle. setWidth(float width)
Sets the width of rectangle.Rectangle
Rectangle. setX(float x)
Sets the X coordinate of lower left point.Rectangle
Rectangle. setY(float y)
Sets the Y coordinate of lower left point.Methods in com.itextpdf.kernel.geom that return types with arguments of type Rectangle Modifier and Type Method Description static java.util.List<Rectangle>
Rectangle. createBoundingRectanglesFromQuadPoint(PdfArray quadPoints)
Create a list of bounding rectangles from an 8 x n array of Quadpoints.Methods in com.itextpdf.kernel.geom with parameters of type Rectangle Modifier and Type Method Description boolean
Rectangle. contains(Rectangle rect)
Check if this rectangle contains the passed rectangle.boolean
Rectangle. equalsWithEpsilon(Rectangle that)
Compares instance of this rectangle with given deviation equals to 0.0001boolean
Rectangle. equalsWithEpsilon(Rectangle that, float eps)
Compares instance of this rectangle with given deviation.static Rectangle
Rectangle. getCommonRectangle(Rectangle... rectangles)
Calculates the common rectangle which includes all the input rectangles.Rectangle
Rectangle. getIntersection(Rectangle rect)
Get the rectangle representation of the intersection between this rectangle and the passed rectanglestatic Rectangle
Rectangle. getRectangleOnRotatedPage(Rectangle rect, PdfPage page)
Gets the rectangle as it looks on the rotated page and returns the rectangle in coordinates relevant to the true page origin.boolean
Rectangle. overlaps(Rectangle rect)
Check if this rectangle and the passed rectangle overlapboolean
Rectangle. overlaps(Rectangle rect, float epsilon)
Check if this rectangle and the passed rectangle overlapvoid
Path. rectangle(Rectangle rect)
Appends a rectangle to the current path as a complete subpath.Constructors in com.itextpdf.kernel.geom with parameters of type Rectangle Constructor Description PageSize(Rectangle box)
Rectangle(Rectangle rect)
Creates the copy of givenRectangle
-
Uses of Rectangle in com.itextpdf.kernel.pdf
Methods in com.itextpdf.kernel.pdf that return Rectangle Modifier and Type Method Description Rectangle
PdfPage. getArtBox()
Gets theRectangle
object specified by page's ArtBox, that define the extent of the page’s meaningful content (including potential white space) as intended by the page’s creator.Rectangle
PdfDictionary. getAsRectangle(PdfName key)
Returns the value associated to this key as a Rectangle.Rectangle
PdfPage. getBleedBox()
Gets theRectangle
object specified by page's BleedBox, that define the region to which the contents of the page shall be clipped when output in a production environment.Rectangle
PdfPage. getCropBox()
Gets theRectangle
specified by page's CropBox, that defines the visible region of default user space.Rectangle
PdfPage. getMediaBox()
GetsRectangle
object specified by page's Media Box, that defines the boundaries of the physical medium on which the page shall be displayed or printedRectangle
PdfPage. getPageSize()
Gets page size, defined by media box object.Rectangle
PdfPage. getPageSizeWithRotation()
Gets page size, considering page rotation.Rectangle
PdfPage. getTrimBox()
Gets theRectangle
object specified by page's TrimBox object, that define the intended dimensions of the finished page after trimming.Rectangle
PdfArray. toRectangle()
Returns the first four elements of this array as a PdfArray.Methods in com.itextpdf.kernel.pdf with parameters of type Rectangle Modifier and Type Method Description PdfPage
PdfPage. setArtBox(Rectangle rectangle)
Sets the ArtBox object, that define the extent of the page’s meaningful content (including potential white space) as intended by the page’s creator.PdfPage
PdfPage. setBleedBox(Rectangle rectangle)
Sets the BleedBox object, that defines the region to which the contents of the page shall be clipped when output in a production environment.PdfPage
PdfPage. setCropBox(Rectangle rectangle)
Sets the CropBox object, that defines the visible region of default user space.PdfPage
PdfPage. setMediaBox(Rectangle rectangle)
Sets the Media Box object, that defines the boundaries of the physical medium on which the page shall be displayed or printed.PdfPage
PdfPage. setTrimBox(Rectangle rectangle)
Sets the TrimBox object, that define the intended dimensions of the finished page after trimming.Constructors in com.itextpdf.kernel.pdf with parameters of type Rectangle Constructor Description PdfArray(Rectangle rectangle)
Create a new PdfArray. -
Uses of Rectangle in com.itextpdf.kernel.pdf.annot
Methods in com.itextpdf.kernel.pdf.annot that return Rectangle Modifier and Type Method Description Rectangle
Pdf3DAnnotation. getViewBox()
Gets the 3D view box, which is the rectangular area in which the 3D artwork shall be drawn.Methods in com.itextpdf.kernel.pdf.annot with parameters of type Rectangle Modifier and Type Method Description static PdfTextMarkupAnnotation
PdfTextMarkupAnnotation. createHighLight(Rectangle rect, float[] quadPoints)
Creates a text markup annotation of highlight style subtype.static PdfPolyGeomAnnotation
PdfPolyGeomAnnotation. createPolygon(Rectangle rect, float[] vertices)
static PdfPolyGeomAnnotation
PdfPolyGeomAnnotation. createPolyLine(Rectangle rect, float[] vertices)
static PdfTextMarkupAnnotation
PdfTextMarkupAnnotation. createSquiggly(Rectangle rect, float[] quadPoints)
Creates a text markup annotation of squiggly-underline type.static PdfTextMarkupAnnotation
PdfTextMarkupAnnotation. createStrikeout(Rectangle rect, float[] quadPoints)
Creates a text markup annotation of strikeout style subtype.static PdfTextMarkupAnnotation
PdfTextMarkupAnnotation. createUnderline(Rectangle rect, float[] quadPoints)
Creates a text markup annotation of underline style subtype.Pdf3DAnnotation
Pdf3DAnnotation. setViewBox(Rectangle viewBox)
Sets the 3D view box, which is the rectangular area in which the 3D artwork shall be drawn. -
Uses of Rectangle in com.itextpdf.kernel.pdf.canvas
Methods in com.itextpdf.kernel.pdf.canvas with parameters of type Rectangle Modifier and Type Method Description private PdfCanvas
PdfCanvas. addFormFittedIntoRectangle(PdfFormXObject form, Rectangle rect)
AddsPdfFormXObject
fitted into specific rectangle on canvas.PdfXObject
PdfCanvas. addImageFittedIntoRectangle(ImageData image, Rectangle rect, boolean asInline)
CreatesPdfImageXObject
from image and fitted into specific rectangle on canvas.private PdfCanvas
PdfCanvas. addImageFittedIntoRectangle(PdfImageXObject image, Rectangle rect)
AddsPdfImageXObject
fitted into specific rectangle on canvas.PdfCanvas
PdfCanvas. addXObjectFittedIntoRectangle(PdfXObject xObject, Rectangle rect)
AddsPdfXObject
fitted into specific rectangle on canvas.PdfCanvas
PdfCanvas. rectangle(Rectangle rectangle)
Draws a rectangle. -
Uses of Rectangle in com.itextpdf.kernel.pdf.canvas.draw
Methods in com.itextpdf.kernel.pdf.canvas.draw with parameters of type Rectangle Modifier and Type Method Description void
DashedLine. draw(PdfCanvas canvas, Rectangle drawArea)
void
DottedLine. draw(PdfCanvas canvas, Rectangle drawArea)
void
ILineDrawer. draw(PdfCanvas canvas, Rectangle drawArea)
Performs configurable drawing operations related to specific region coordinates on a canvas.void
SolidLine. draw(PdfCanvas canvas, Rectangle drawArea)
-
Uses of Rectangle in com.itextpdf.kernel.pdf.canvas.parser.filter
Fields in com.itextpdf.kernel.pdf.canvas.parser.filter declared as Rectangle Modifier and Type Field Description private Rectangle
TextRegionEventFilter. filterRect
Constructors in com.itextpdf.kernel.pdf.canvas.parser.filter with parameters of type Rectangle Constructor Description TextRegionEventFilter(Rectangle filterRect)
Constructs a filter instance. -
Uses of Rectangle in com.itextpdf.kernel.pdf.canvas.parser.listener
Fields in com.itextpdf.kernel.pdf.canvas.parser.listener declared as Rectangle Modifier and Type Field Description private Rectangle
CharacterRenderInfo. boundingBox
private Rectangle
DefaultPdfTextLocation. rectangle
private Rectangle
TextMarginFinder. textRectangle
Methods in com.itextpdf.kernel.pdf.canvas.parser.listener that return Rectangle Modifier and Type Method Description Rectangle
CharacterRenderInfo. getBoundingBox()
Rectangle
DefaultPdfTextLocation. getRectangle()
Rectangle
IPdfTextLocation. getRectangle()
Rectangle
TextMarginFinder. getTextRectangle()
Returns the common text rectangle, containing all the text found in the stream so far, otnull
, if no text has been found yet.Methods in com.itextpdf.kernel.pdf.canvas.parser.listener that return types with arguments of type Rectangle Modifier and Type Method Description protected java.util.List<Rectangle>
RegexBasedLocationExtractionStrategy. toRectangles(java.util.List<CharacterRenderInfo> cris)
ConvertsCharacterRenderInfo
objects toRectangle
s This method is protected and not final so that custom implementations can choose to override it.Methods in com.itextpdf.kernel.pdf.canvas.parser.listener with parameters of type Rectangle Modifier and Type Method Description DefaultPdfTextLocation
DefaultPdfTextLocation. setRectangle(Rectangle rectangle)
Sets text rectangle (occupied area) for this pdf text location.Constructors in com.itextpdf.kernel.pdf.canvas.parser.listener with parameters of type Rectangle Constructor Description DefaultPdfTextLocation(Rectangle rect, java.lang.String text)
Creates new pdf text location. -
Uses of Rectangle in com.itextpdf.kernel.pdf.colorspace
Methods in com.itextpdf.kernel.pdf.colorspace that return Rectangle Modifier and Type Method Description Rectangle
PdfPattern.Tiling. getBBox()
Gets the pattern cell's bounding box.Methods in com.itextpdf.kernel.pdf.colorspace with parameters of type Rectangle Modifier and Type Method Description void
PdfPattern.Tiling. setBBox(Rectangle bbox)
Sets the pattern cell's bounding box.Constructors in com.itextpdf.kernel.pdf.colorspace with parameters of type Rectangle Constructor Description Tiling(Rectangle bbox)
Creates a new Tiling instance.Tiling(Rectangle bbox, boolean colored)
Creates a new Tiling instance.Tiling(Rectangle bbox, float xStep, float yStep)
Creates a new Tiling instance.Tiling(Rectangle bbox, float xStep, float yStep, boolean colored)
Creates a new Tiling instance. -
Uses of Rectangle in com.itextpdf.kernel.pdf.xobject
Methods in com.itextpdf.kernel.pdf.xobject that return Rectangle Modifier and Type Method Description static Rectangle
PdfFormXObject. calculateBBoxMultipliedByMatrix(PdfFormXObject form)
Calculates the coordinates of the xObject BBox multiplied by the Matrix field.static Rectangle
PdfXObject. calculateProportionallyFitRectangleWithHeight(PdfXObject xObject, float x, float y, float height)
Calculates a rectangle with the specified coordinates and height, and the width is calculated in such a way that the original proportions of the xObject do not change.static Rectangle
PdfXObject. calculateProportionallyFitRectangleWithWidth(PdfXObject xObject, float x, float y, float width)
Calculates a rectangle with the specified coordinates and width, and the height is calculated in such a way that the original proportions of the xObject do not change.Constructors in com.itextpdf.kernel.pdf.xobject with parameters of type Rectangle Constructor Description PdfFormXObject(Rectangle bBox)
Creates a new instance of Form XObject. -
Uses of Rectangle in com.itextpdf.kernel.utils
Method parameters in com.itextpdf.kernel.utils with type arguments of type Rectangle Modifier and Type Method Description java.lang.String
CompareTool. compareByContent(java.lang.String outPdf, java.lang.String cmpPdf, java.lang.String outPath, java.lang.String differenceImagePrefix, java.util.Map<java.lang.Integer,java.util.List<Rectangle>> ignoredAreas)
Compares two PDF documents by content starting from page dictionaries and then recursively comparing corresponding objects which are referenced from them.java.lang.String
CompareTool. compareByContent(java.lang.String outPdf, java.lang.String cmpPdf, java.lang.String outPath, java.lang.String differenceImagePrefix, java.util.Map<java.lang.Integer,java.util.List<Rectangle>> ignoredAreas, byte[] outPass, byte[] cmpPass)
This method overload is used to compare two encrypted PDF documents.private java.lang.String
CompareTool. compareByContent(java.lang.String outPath, java.lang.String differenceImagePrefix, java.util.Map<java.lang.Integer,java.util.List<Rectangle>> ignoredAreas)
java.lang.String
CompareTool. compareVisually(java.lang.String outPdf, java.lang.String cmpPdf, java.lang.String outPath, java.lang.String differenceImagePrefix, java.util.Map<java.lang.Integer,java.util.List<Rectangle>> ignoredAreas)
Compares two documents visually.private java.lang.String
CompareTool. compareVisually(java.lang.String outPath, java.lang.String differenceImagePrefix, java.util.Map<java.lang.Integer,java.util.List<Rectangle>> ignoredAreas)
private java.lang.String
CompareTool. compareVisually(java.lang.String outPath, java.lang.String differenceImagePrefix, java.util.Map<java.lang.Integer,java.util.List<Rectangle>> ignoredAreas, java.util.List<java.lang.Integer> equalPages)
private java.lang.String
CompareTool. compareVisuallyAndCombineReports(java.lang.String compareByFailContentReason, java.lang.String outPath, java.lang.String differenceImagePrefix, java.util.Map<java.lang.Integer,java.util.List<Rectangle>> ignoredAreas, java.util.List<java.lang.Integer> equalPages)
private void
CompareTool. createIgnoredAreasPdfs(java.lang.String outPath, java.util.Map<java.lang.Integer,java.util.List<Rectangle>> ignoredAreas)
-
Uses of Rectangle in com.itextpdf.kernel.utils.annotationsflattening
Methods in com.itextpdf.kernel.utils.annotationsflattening with parameters of type Rectangle Modifier and Type Method Description private static float[]
AbstractTextMarkupAnnotationFlattener. convertFloatToQuadPoints(Rectangle rectangle)
-
Uses of Rectangle in com.itextpdf.layout
Fields in com.itextpdf.layout declared as Rectangle Modifier and Type Field Description protected Rectangle[]
ColumnDocumentRenderer. columns
protected Rectangle
Canvas. rootArea
Methods in com.itextpdf.layout that return Rectangle Modifier and Type Method Description Rectangle
Document. getPageEffectiveArea(PageSize pageSize)
Returns the area that will actually be used to write on the page, given the current margins.Rectangle
Canvas. getRootArea()
Gets the root area rectangle.Constructors in com.itextpdf.layout with parameters of type Rectangle Constructor Description Canvas(PdfCanvas pdfCanvas, Rectangle rootArea)
Creates a new Canvas to manipulate a specific content stream, which might be for example a page orPdfFormXObject
stream.Canvas(PdfCanvas pdfCanvas, Rectangle rootArea, boolean immediateFlush)
Creates a new Canvas to manipulate a specific document and page.Canvas(PdfPage page, Rectangle rootArea)
Creates a new Canvas to manipulate a specific page content stream.ColumnDocumentRenderer(Document document, boolean immediateFlush, Rectangle[] columns)
Creates a ColumnDocumentRenderer whose elements need not be flushed immediately.ColumnDocumentRenderer(Document document, Rectangle[] columns)
Creates a ColumnDocumentRenderer. -
Uses of Rectangle in com.itextpdf.layout.borders
Methods in com.itextpdf.layout.borders with parameters of type Rectangle Modifier and Type Method Description void
Border. draw(PdfCanvas canvas, Rectangle rectangle)
Draw borders around the target rectangle.protected void
Border. drawDiscontinuousBorders(PdfCanvas canvas, Rectangle boundingRectangle, float[] horizontalRadii, float[] verticalRadii, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
Perform drawing operations to draw discontinuous borders. -
Uses of Rectangle in com.itextpdf.layout.layout
Fields in com.itextpdf.layout.layout declared as Rectangle Modifier and Type Field Description protected Rectangle
LayoutArea. bBox
The area's bounding boxFields in com.itextpdf.layout.layout with type parameters of type Rectangle Modifier and Type Field Description protected java.util.List<Rectangle>
LayoutContext. floatRendererAreas
The list ofRectangle
objects.Methods in com.itextpdf.layout.layout that return Rectangle Modifier and Type Method Description Rectangle
LayoutArea. getBBox()
Gets thebox
which bounds the area.Methods in com.itextpdf.layout.layout that return types with arguments of type Rectangle Modifier and Type Method Description java.util.List<Rectangle>
LayoutContext. getFloatRendererAreas()
Gets list ofRectangle
objects.Methods in com.itextpdf.layout.layout with parameters of type Rectangle Modifier and Type Method Description void
LayoutArea. setBBox(Rectangle bbox)
Sets thebox
which bounds the area.Constructors in com.itextpdf.layout.layout with parameters of type Rectangle Constructor Description LayoutArea(int pageNumber, Rectangle bBox)
Creates the area for contentlayouting
.RootLayoutArea(int pageNumber, Rectangle bBox)
Creates the root layout area.Constructor parameters in com.itextpdf.layout.layout with type arguments of type Rectangle Constructor Description LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, java.util.List<Rectangle> floatedRendererAreas)
Creates the layout context.LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, java.util.List<Rectangle> floatedRendererAreas, boolean clippedHeight)
Creates the layout context.LineLayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, java.util.List<Rectangle> floatedRendererAreas, boolean clippedHeight)
Creates the context for content of a line. -
Uses of Rectangle in com.itextpdf.layout.margincollapse
Fields in com.itextpdf.layout.margincollapse declared as Rectangle Modifier and Type Field Description private Rectangle
MarginsCollapseHandler. backupLayoutBox
Methods in com.itextpdf.layout.margincollapse with parameters of type Rectangle Modifier and Type Method Description private void
MarginsCollapseHandler. addNotYetAppliedTopMargin(Rectangle layoutBox)
private void
MarginsCollapseHandler. applyBottomMargin(Rectangle box, float bottomIndent)
private void
MarginsCollapseHandler. applySelfCollapsedKidMarginWithClearance(Rectangle layoutBox)
private void
MarginsCollapseHandler. applyTopMargin(Rectangle box, float topIndent)
void
MarginsCollapseHandler. endChildMarginsHandling(Rectangle layoutBox)
This method shall be called after child occupied area is included into parent occupied area.void
MarginsCollapseHandler. endMarginsCollapse(Rectangle layoutBox)
private void
MarginsCollapseHandler. prepareBoxForLayoutAttempt(Rectangle layoutBox, int childIndex, boolean childIsBlockElement)
private void
MarginsCollapseHandler. processUsedChildBufferSpaceOnTop(Rectangle layoutBox)
private void
MarginsCollapseHandler. restoreLayoutBoxAfterFailedLayoutAttempt(Rectangle layoutBox)
MarginsCollapseInfo
MarginsCollapseHandler. startChildMarginsHandling(IRenderer child, Rectangle layoutBox)
void
MarginsCollapseHandler. startMarginsCollapse(Rectangle parentBBox)
-
Uses of Rectangle in com.itextpdf.layout.minmaxwidth
Methods in com.itextpdf.layout.minmaxwidth with parameters of type Rectangle Modifier and Type Method Description static double
RotationMinMaxWidth. calculateRotatedWidth(Rectangle area, double angle)
Utility method for calculating rotated width of area in a similar way to other calculations in this class. -
Uses of Rectangle in com.itextpdf.layout.properties
Methods in com.itextpdf.layout.properties with parameters of type Rectangle Modifier and Type Method Description Point
BackgroundRepeat. prepareRectangleToDrawingAndGetWhitespace(Rectangle imageRectangle, Rectangle backgroundArea, BackgroundSize backgroundSize)
Prepares the image rectangle for drawing.private Point
BackgroundRepeat. processSpaceValueAndCalculateWhitespace(Rectangle imageRectangle, Rectangle backgroundArea)
-
Uses of Rectangle in com.itextpdf.layout.renderer
Fields in com.itextpdf.layout.renderer declared as Rectangle Modifier and Type Field Description private Rectangle
GridSizer. actualBBox
private Rectangle
ImageRenderer. initialOccupiedAreaBBox
private Rectangle
GridCell. layoutArea
private Rectangle
FlexItemInfo. rectangle
Fields in com.itextpdf.layout.renderer with type parameters of type Rectangle Modifier and Type Field Description (package private) java.util.List<Rectangle>
RootRenderer. floatRendererAreas
private java.util.List<Rectangle>
RootRendererAreaStateHandler. storedNextFloatRenderAreas
private java.util.List<Rectangle>
RootRendererAreaStateHandler. storedPreviousFloatRenderAreas
Methods in com.itextpdf.layout.renderer that return Rectangle Modifier and Type Method Description private Rectangle
AbstractRenderer. applyBackgroundBoxProperty(Rectangle rectangle, BackgroundBox clip)
Rectangle
AbstractRenderer. applyBorderBox(Rectangle rect, boolean reverse)
Applies the border box of the renderer on the given rectangle If the border of a certain side is null, the side will remain as it was.protected Rectangle
AbstractRenderer. applyBorderBox(Rectangle rect, Border[] borders, boolean reverse)
Applies the given border box (borders) on the given rectangleprotected Rectangle
CellRenderer. applyBorderBox(Rectangle rect, Border[] borders, boolean reverse)
protected Rectangle
TableRenderer. applyBorderBox(Rectangle rect, Border[] borders, boolean reverse)
Rectangle
AbstractRenderer. applyMargins(Rectangle rect, boolean reverse)
Applies margins of the renderer on the given rectangleprotected Rectangle
AbstractRenderer. applyMargins(Rectangle rect, UnitValue[] margins, boolean reverse)
Applies given margins on the given rectangleprotected Rectangle
CellRenderer. applyMargins(Rectangle rect, UnitValue[] margins, boolean reverse)
(package private) Rectangle
AbstractRenderer. applyMarginsBordersPaddings(Rectangle rect, boolean reverse)
Applies margins, borders and paddings of the renderer on the given rectangle.Rectangle
AbstractRenderer. applyPaddings(Rectangle rect, boolean reverse)
Applies paddings of the renderer on the given rectangleprotected Rectangle
AbstractRenderer. applyPaddings(Rectangle rect, UnitValue[] paddings, boolean reverse)
Applies given paddings to the given rectangle.protected Rectangle
ImageRenderer. applyPaddings(Rectangle rect, UnitValue[] paddings, boolean reverse)
Rectangle
TableRenderer. applyPaddings(Rectangle rect, boolean reverse)
protected Rectangle
TableRenderer. applyPaddings(Rectangle rect, UnitValue[] paddings, boolean reverse)
private Rectangle
TableRenderer. applySingleSpacing(Rectangle rect, float spacing, boolean isHorizontal, boolean reverse)
Applies the given horizontal or vertical spacing on the given rectangleprivate Rectangle
TableRenderer. applySpacing(Rectangle rect, float horizontalSpacing, float verticalSpacing, boolean reverse)
Applies the given spacings on the given rectangleprotected Rectangle
CellRenderer. applySpacings(Rectangle rect, boolean reverse)
Applies spacings on the given rectangle.protected Rectangle
CellRenderer. applySpacings(Rectangle rect, float[] spacings, boolean reverse)
Applies given spacings on the given rectangle.protected Rectangle
AbstractRenderer. calculateAbsolutePdfBBox()
Calculates the bounding box of the content in the coordinate system of the pdf entity on which content is placed, e.g.protected Rectangle
AbstractRenderer. calculateBBox(java.util.List<Point> points)
Calculates bounding box around points.private static Rectangle[]
FloatingHelper. findLastLeftAndRightBoxes(Rectangle layoutBox, java.util.List<Rectangle> yLevelBoxes)
private static Rectangle
InlineVerticalAlignmentHelper. getAdjustedArea(IRenderer renderer)
protected Rectangle
AbstractRenderer. getBackgroundArea(Rectangle occupiedAreaWithMargins)
Evaluate the actual backgroundprotected Rectangle
TextRenderer. getBackgroundArea(Rectangle occupiedAreaWithMargins)
Rectangle
AbstractRenderer. getBorderAreaBBox()
Gets the border box of a renderer.Rectangle
ImageRenderer. getBorderAreaBBox()
private Rectangle
DocumentRenderer. getCurrentPageEffectiveArea(PageSize pageSize)
Rectangle
AbstractRenderer. getInnerAreaBBox()
(package private) Rectangle
GridCell. getLayoutArea()
Rectangle
AbstractRenderer. getOccupiedAreaBBox()
Gets the bounding box that contains all content written to theDrawContext
by thisIRenderer
.Rectangle
BlockRenderer. getOccupiedAreaBBox()
Rectangle
FlexItemInfo. getRectangle()
(package private) static Rectangle
FloatingHelper. includeChildFloatsInOccupiedArea(java.util.List<Rectangle> floatRendererAreas, Rectangle occupiedAreaBbox, java.util.Set<Rectangle> nonChildFloatingRendererAreas)
(package private) Rectangle
BlockRenderer. recalculateLayoutBoxBeforeChildLayout(Rectangle layoutBox, IRenderer childRenderer, Rectangle initialLayoutBox)
(package private) Rectangle
FlexContainerRenderer. recalculateLayoutBoxBeforeChildLayout(Rectangle layoutBox, IRenderer childRenderer, Rectangle initialLayoutBox)
Rectangle
FlexUtil.FlexItemCalculationInfo. toRectangle()
Methods in com.itextpdf.layout.renderer that return types with arguments of type Rectangle Modifier and Type Method Description private static java.util.List<Rectangle>
FloatingHelper. getBoxesAtYLevel(java.util.List<Rectangle> floatRendererAreas, float currY)
java.util.List<Rectangle>
AbstractRenderer. initElementAreas(LayoutArea area)
Gets all rectangles that thisIRenderer
can draw upon in the given area.Methods in com.itextpdf.layout.renderer with parameters of type Rectangle Modifier and Type Method Description private static void
FloatingHelper. adjustBlockAreaAccordingToFloatRenderers(java.util.List<Rectangle> floatRendererAreas, Rectangle layoutBox, float blockWidth, boolean isFloatLeft)
(package private) static float
FloatingHelper. adjustBlockFormattingContextLayoutBox(BlockRenderer renderer, java.util.List<Rectangle> floatRendererAreas, Rectangle parentBBox, float blockWidth, float clearHeightCorrection)
private static void
FloatingHelper. adjustBoxForFloatRight(Rectangle layoutBox, float blockWidth)
private void
TableRenderer. adjustCaptionAndFixOccupiedArea(Rectangle layoutBox, float verticalBorderSpacing)
If there is some space left, we will move the caption up, because initially the caption is at the very bottom of the area.(package private) static java.lang.Float
FloatingHelper. adjustFloatedBlockLayoutBox(AbstractRenderer renderer, Rectangle parentBBox, java.lang.Float blockWidth, java.util.List<Rectangle> floatRendererAreas, FloatPropertyValue floatPropertyValue, OverflowPropertyValue overflowX)
(package private) static void
FloatingHelper. adjustFloatedTableLayoutBox(TableRenderer tableRenderer, Rectangle layoutBox, float tableWidth, java.util.List<Rectangle> floatRendererAreas, FloatPropertyValue floatPropertyValue)
private void
TableRenderer. adjustFooterAndFixOccupiedArea(Rectangle layoutBox, float verticalBorderSpacing)
If there is some space left, we will move the footer up, because initially the footer is at the very bottom of the area.(package private) static float
FloatingHelper. adjustLayoutBoxAccordingToFloats(java.util.List<Rectangle> floatRendererAreas, Rectangle layoutBox, java.lang.Float boxWidth, float clearHeightCorrection, MarginsCollapseHandler marginsCollapseHandler)
(package private) static void
FloatingHelper. adjustLineAreaAccordingToFloats(java.util.List<Rectangle> floatRendererAreas, Rectangle layoutBox)
private void
LineRenderer. adjustLineOnFloatPlaced(Rectangle layoutBox, int childPos, FloatPropertyValue kidFloatPropertyVal, Rectangle justPlacedFloatBox)
private void
AbstractRenderer. adjustPositionedRendererLayoutBoxWidth(IRenderer renderer, Rectangle fullBbox, java.lang.Float left, java.lang.Float right)
(package private) static LayoutArea
FloatingHelper. adjustResultOccupiedAreaForFloatAndClear(IRenderer renderer, java.util.List<Rectangle> floatRendererAreas, Rectangle parentBBox, float clearHeightCorrection, boolean marginsCollapsingEnabled)
(package private) static LayoutArea
FloatingHelper. adjustResultOccupiedAreaForFloatAndClear(IRenderer renderer, java.util.List<Rectangle> floatRendererAreas, Rectangle parentBBox, float clearHeightCorrection, float bfcHeightCorrection, boolean marginsCollapsingEnabled)
protected void
AbstractRenderer. alignChildHorizontally(IRenderer childRenderer, Rectangle currentArea)
protected void
AbstractRenderer. applyAbsolutePosition(Rectangle parentRect)
private static void
FlexUtil. applyAlignContent(java.util.List<java.util.List<FlexUtil.FlexItemCalculationInfo>> lines, FlexContainerRenderer renderer, java.lang.Float crossSize, Rectangle layoutBox)
private Rectangle
AbstractRenderer. applyBackgroundBoxProperty(Rectangle rectangle, BackgroundBox clip)
Rectangle
AbstractRenderer. applyBorderBox(Rectangle rect, boolean reverse)
Applies the border box of the renderer on the given rectangle If the border of a certain side is null, the side will remain as it was.protected Rectangle
AbstractRenderer. applyBorderBox(Rectangle rect, Border[] borders, boolean reverse)
Applies the given border box (borders) on the given rectangleprotected Rectangle
CellRenderer. applyBorderBox(Rectangle rect, Border[] borders, boolean reverse)
protected Rectangle
TableRenderer. applyBorderBox(Rectangle rect, Border[] borders, boolean reverse)
protected TableBorders
CollapsedTableBorders. applyBottomTableBorder(Rectangle occupiedBox, Rectangle layoutBox, boolean reverse)
protected TableBorders
CollapsedTableBorders. applyBottomTableBorder(Rectangle occupiedBox, Rectangle layoutBox, boolean isEmpty, boolean force, boolean reverse)
protected TableBorders
SeparatedTableBorders. applyBottomTableBorder(Rectangle occupiedBox, Rectangle layoutBox, boolean reverse)
protected TableBorders
SeparatedTableBorders. applyBottomTableBorder(Rectangle occupiedBox, Rectangle layoutBox, boolean isEmpty, boolean force, boolean reverse)
protected abstract TableBorders
TableBorders. applyBottomTableBorder(Rectangle occupiedBox, Rectangle layoutBox, boolean reverse)
protected abstract TableBorders
TableBorders. applyBottomTableBorder(Rectangle occupiedBox, Rectangle layoutBox, boolean isEmpty, boolean force, boolean reverse)
protected TableBorders
CollapsedTableBorders. applyCellIndents(Rectangle box, float topIndent, float rightIndent, float bottomIndent, float leftIndent, boolean reverse)
protected TableBorders
SeparatedTableBorders. applyCellIndents(Rectangle box, float topIndent, float rightIndent, float bottomIndent, float leftIndent, boolean reverse)
protected abstract TableBorders
TableBorders. applyCellIndents(Rectangle box, float topIndent, float rightIndent, float bottomIndent, float leftIndent, boolean reverse)
(package private) static void
FloatingHelper. applyClearance(Rectangle layoutBox, MarginsCollapseHandler marginsCollapseHandler, float clearHeightAdjustment, boolean isFloat)
private void
TableRenderer. applyFixedXOrYPosition(boolean isXPosition, Rectangle layoutBox)
protected TableBorders
CollapsedTableBorders. applyLeftAndRightTableBorder(Rectangle layoutBox, boolean reverse)
protected TableBorders
SeparatedTableBorders. applyLeftAndRightTableBorder(Rectangle layoutBox, boolean reverse)
protected abstract TableBorders
TableBorders. applyLeftAndRightTableBorder(Rectangle layoutBox, boolean reverse)
Rectangle
AbstractRenderer. applyMargins(Rectangle rect, boolean reverse)
Applies margins of the renderer on the given rectangleprotected Rectangle
AbstractRenderer. applyMargins(Rectangle rect, UnitValue[] margins, boolean reverse)
Applies given margins on the given rectangleprotected Rectangle
CellRenderer. applyMargins(Rectangle rect, UnitValue[] margins, boolean reverse)
(package private) void
TableRenderer. applyMarginsAndPaddingsAndCalculateColumnWidths(Rectangle layoutBox)
(package private) Rectangle
AbstractRenderer. applyMarginsBordersPaddings(Rectangle rect, boolean reverse)
Applies margins, borders and paddings of the renderer on the given rectangle.(package private) boolean
BlockRenderer. applyMaxHeight(Rectangle parentBBox, java.lang.Float blockMaxHeight, MarginsCollapseHandler marginsCollapseHandler, boolean isCellRenderer, boolean wasParentsHeightClipped, OverflowPropertyValue overflowY)
(package private) AbstractRenderer
BlockRenderer. applyMinHeight(OverflowPropertyValue overflowY, Rectangle layoutBox)
Rectangle
AbstractRenderer. applyPaddings(Rectangle rect, boolean reverse)
Applies paddings of the renderer on the given rectangleprotected Rectangle
AbstractRenderer. applyPaddings(Rectangle rect, UnitValue[] paddings, boolean reverse)
Applies given paddings to the given rectangle.protected Rectangle
ImageRenderer. applyPaddings(Rectangle rect, UnitValue[] paddings, boolean reverse)
Rectangle
TableRenderer. applyPaddings(Rectangle rect, boolean reverse)
protected Rectangle
TableRenderer. applyPaddings(Rectangle rect, UnitValue[] paddings, boolean reverse)
protected void
BlockRenderer. applyRotationLayout(Rectangle layoutBox)
This method rotates content of the renderer and calculates correct occupied area for the rotated element.private Rectangle
TableRenderer. applySingleSpacing(Rectangle rect, float spacing, boolean isHorizontal, boolean reverse)
Applies the given horizontal or vertical spacing on the given rectangleprivate Rectangle
TableRenderer. applySpacing(Rectangle rect, float horizontalSpacing, float verticalSpacing, boolean reverse)
Applies the given spacings on the given rectangleprotected Rectangle
CellRenderer. applySpacings(Rectangle rect, boolean reverse)
Applies spacings on the given rectangle.protected Rectangle
CellRenderer. applySpacings(Rectangle rect, float[] spacings, boolean reverse)
Applies given spacings on the given rectangle.private void
ParagraphRenderer. applyTextAlignment(TextAlignment textAlignment, LineLayoutResult result, LineRenderer processedRenderer, Rectangle layoutBox, java.util.List<Rectangle> floatRendererAreas, boolean onlyOverflowedFloatsLeft, float lineIndent)
protected TableBorders
CollapsedTableBorders. applyTopTableBorder(Rectangle occupiedBox, Rectangle layoutBox, boolean reverse)
protected TableBorders
CollapsedTableBorders. applyTopTableBorder(Rectangle occupiedBox, Rectangle layoutBox, boolean isEmpty, boolean force, boolean reverse)
protected TableBorders
SeparatedTableBorders. applyTopTableBorder(Rectangle occupiedBox, Rectangle layoutBox, boolean reverse)
protected TableBorders
SeparatedTableBorders. applyTopTableBorder(Rectangle occupiedBox, Rectangle layoutBox, boolean isEmpty, boolean force, boolean reverse)
protected abstract TableBorders
TableBorders. applyTopTableBorder(Rectangle occupiedBox, Rectangle layoutBox, boolean reverse)
protected abstract TableBorders
TableBorders. applyTopTableBorder(Rectangle occupiedBox, Rectangle layoutBox, boolean isEmpty, boolean force, boolean reverse)
(package private) void
BlockRenderer. applyWidth(Rectangle parentBBox, java.lang.Float blockWidth, OverflowPropertyValue overflowX)
private void
MulticolRenderer. applyWidth(Rectangle parentBbox, float originalWidth)
private MulticolRenderer.MulticolLayoutResult
MulticolRenderer. balanceContentAndLayoutColumns(LayoutContext prelayoutContext, Rectangle actualBbox)
static java.util.List<java.util.List<FlexItemInfo>>
FlexUtil. calculateChildrenRectangles(Rectangle flexContainerBBox, FlexContainerRenderer flexContainerRenderer)
Performs flex layout algorithm.(package private) static float
FloatingHelper. calculateClearHeightCorrection(IRenderer renderer, java.util.List<Rectangle> floatRendererAreas, Rectangle parentBBox)
private void
ImageRenderer. calculateImageDimensions(Rectangle layoutBox, AffineTransform t, PdfXObject xObject)
(package private) static java.lang.Float
FloatingHelper. calculateLineShiftUnderFloats(java.util.List<Rectangle> floatRendererAreas, Rectangle layoutBox)
private static float
FloatingHelper. calculateLowestFloatBottom(boolean isLeftOrBoth, boolean isRightOrBoth, float lowestFloatBottom, Rectangle[] lastLeftAndRightBoxes, java.util.List<Rectangle> floatRendererAreas)
private static float
InlineVerticalAlignmentHelper. calculateOffset(IRenderer renderer, Rectangle cBBox, InlineVerticalAlignment alignment, float baseline, float textTop, float textBottom, float leading, float xHeight, Rectangle pBBox)
private float[]
AbstractRenderer. calculateRadii(BorderRadius[] radii, Rectangle area, boolean horizontal)
Calculates the element corner's border radii.private float
LineRenderer. calculateTab(Rectangle layoutBox, float curWidth, TabStop tabStop, java.util.List<IRenderer> affectedRenderers, IRenderer tabRenderer)
Calculates and sets tab size with the account of the element that is next in the line after the tab.private boolean
AbstractRenderer. clipArea(DrawContext drawContext, Rectangle outerBorderBox, boolean clipOuter, boolean clipInner, boolean considerBordersBeforeOuterClipping, boolean considerBordersBeforeInnerClipping)
protected boolean
AbstractRenderer. clipBackgroundArea(DrawContext drawContext, Rectangle outerBorderBox)
protected boolean
AbstractRenderer. clipBackgroundArea(DrawContext drawContext, Rectangle outerBorderBox, boolean considerBordersBeforeClipping)
protected boolean
AbstractRenderer. clipBorderArea(DrawContext drawContext, Rectangle outerBorderBox)
private static Grid
GridContainerRenderer. constructGrid(GridContainerRenderer renderer, Rectangle actualBBox)
(package private) void
BlockRenderer. correctFixedLayout(Rectangle layoutBox)
private void
TableRenderer. correctLayoutedCellsOccupiedAreas(LayoutResult[] splits, int row, int[] targetOverflowRowIndex, java.lang.Float blockMinHeight, Rectangle layoutBox, java.util.List<java.lang.Boolean> rowsHasCellWithSetHeight, boolean isLastRenderer, boolean processBigRowspan, boolean skip)
static PdfFormXObject
AbstractRenderer. createXObject(AbstractLinearGradientBuilder linearGradientBuilder, Rectangle xObjectArea, PdfDocument document)
Create aPdfFormXObject
with the given area and containing a linear gradient inside.(package private) void
BlockRenderer. decreaseLayoutBoxAfterChildPlacement(Rectangle layoutBox, LayoutResult result, IRenderer childRenderer)
(package private) void
FlexContainerRenderer. decreaseLayoutBoxAfterChildPlacement(Rectangle layoutBox, LayoutResult result, IRenderer childRenderer)
(package private) void
FlexContainerRenderer. decreaseLayoutBoxAfterChildPlacementColumnLayout(Rectangle layoutBox, IRenderer childRenderer)
(package private) void
FlexContainerRenderer. decreaseLayoutBoxAfterChildPlacementRowLayout(Rectangle layoutBox, LayoutResult result, IRenderer childRenderer)
private java.lang.Float
MulticolRenderer. determineHeight(Rectangle parentBBox)
private void
AbstractRenderer. drawBackgroundImage(BackgroundImage backgroundImage, DrawContext drawContext, Rectangle backgroundArea)
private boolean
AbstractRenderer. drawBackgroundImagesList(java.util.List<BackgroundImage> backgroundImagesList, boolean backgroundAreaIsClipped, DrawContext drawContext, Rectangle backgroundArea)
private void
AbstractRenderer. drawColorBackground(Background background, DrawContext drawContext, Rectangle colorBackgroundArea)
private static void
AbstractRenderer. drawPdfXObject(Rectangle imageRectangle, BackgroundImage backgroundImage, DrawContext drawContext, PdfXObject backgroundXObject, Rectangle backgroundArea, Rectangle originBackgroundArea)
private static void
AbstractRenderer. drawPdfXObjectHorizontally(Rectangle imageRectangle, BackgroundImage backgroundImage, DrawContext drawContext, PdfXObject backgroundXObject, Rectangle backgroundArea, boolean firstDraw, float xWhitespace)
protected void
TableRenderer. extendLastRow(CellRenderer[] lastRow, Rectangle freeBox)
private static Rectangle[]
FloatingHelper. findLastLeftAndRightBoxes(Rectangle layoutBox, java.util.List<Rectangle> yLevelBoxes)
protected TableBorders
CollapsedTableBorders. fixHeaderOccupiedArea(Rectangle occupiedBox, Rectangle layoutBox)
protected TableBorders
SeparatedTableBorders. fixHeaderOccupiedArea(Rectangle occupiedBox, Rectangle layoutBox)
protected abstract TableBorders
TableBorders. fixHeaderOccupiedArea(Rectangle occupiedBox, Rectangle layoutBox)
(package private) void
BlockRenderer. fixOccupiedAreaIfOverflowedX(OverflowPropertyValue overflowX, Rectangle layoutBox)
(package private) void
FlexContainerRenderer. fixOccupiedAreaIfOverflowedX(OverflowPropertyValue overflowX, Rectangle layoutBox)
(package private) void
BlockRenderer. fixOccupiedAreaIfOverflowedY(OverflowPropertyValue overflowY, Rectangle layoutBox)
protected Rectangle
AbstractRenderer. getBackgroundArea(Rectangle occupiedAreaWithMargins)
Evaluate the actual backgroundprotected Rectangle
TextRenderer. getBackgroundArea(Rectangle occupiedAreaWithMargins)
private static LayoutContext
GridContainerRenderer. getCellLayoutContext(LayoutContext layoutContext, Rectangle actualBBox, GridCell cell)
private static java.lang.Float[]
FlexUtil. getCrossSizes(FlexContainerRenderer renderer, Rectangle layoutBox)
private static java.lang.Float
RotationUtils. getLayoutRotatedWidth(AbstractRenderer renderer, float availableWidth, Rectangle previousBBox, double angle)
(package private) static float
FlexUtil. getMainSize(FlexContainerRenderer renderer, Rectangle layoutBox)
(package private) static void
FlexUtil. handleAlignContentStretch(FlexContainerRenderer flexContainerRenderer, java.util.List<java.util.List<FlexUtil.FlexItemCalculationInfo>> lines, java.lang.Float crossSize, java.util.List<java.lang.Float> lineCrossSizes, Rectangle layoutBox)
(package private) static Rectangle
FloatingHelper. includeChildFloatsInOccupiedArea(java.util.List<Rectangle> floatRendererAreas, Rectangle occupiedAreaBbox, java.util.Set<Rectangle> nonChildFloatingRendererAreas)
(package private) boolean
LineRenderer. isForceOverflowForTextRendererPartialResult(IRenderer childRenderer, boolean wasXOverflowChanged, OverflowPropertyValue oldXOverflow, LayoutContext layoutContext, Rectangle layoutBox, boolean wasParentsHeightClipped)
Checks if the word that's been split when has been layouted on this line can fit the next line without splitting.private MulticolRenderer.MulticolLayoutResult
MulticolRenderer. layoutColumnsAndReturnOverflowRenderer(LayoutContext preLayoutContext, Rectangle actualBBox, float workingHeight)
private GridContainerRenderer.GridLayoutResult
GridContainerRenderer. layoutGrid(LayoutContext layoutContext, Rectangle actualBBox, Grid grid)
protected MulticolRenderer.MulticolLayoutResult
MulticolRenderer. layoutInColumns(LayoutContext layoutContext, Rectangle actualBBox)
Layouts multicol in the passed area.(package private) void
AbstractRenderer. preparePositionedRendererAndAreaForLayout(IRenderer childPositionedRenderer, Rectangle fullBbox, Rectangle parentBbox)
(package private) LayoutResult
BlockRenderer. processNotFullChildResult(LayoutContext layoutContext, java.util.Map<java.lang.Integer,IRenderer> waitingFloatsSplitRenderers, java.util.List<IRenderer> waitingOverflowFloatRenderers, boolean wasHeightClipped, java.util.List<Rectangle> floatRendererAreas, boolean marginsCollapsingEnabled, float clearHeightCorrection, Border[] borders, UnitValue[] paddings, java.util.List<Rectangle> areas, int currentAreaPos, Rectangle layoutBox, java.util.Set<Rectangle> nonChildFloatingRendererAreas, IRenderer causeOfNothing, boolean anythingPlaced, int childPos, LayoutResult result)
(package private) LayoutResult
FlexContainerRenderer. processNotFullChildResult(LayoutContext layoutContext, java.util.Map<java.lang.Integer,IRenderer> waitingFloatsSplitRenderers, java.util.List<IRenderer> waitingOverflowFloatRenderers, boolean wasHeightClipped, java.util.List<Rectangle> floatRendererAreas, boolean marginsCollapsingEnabled, float clearHeightCorrection, Border[] borders, UnitValue[] paddings, java.util.List<Rectangle> areas, int currentAreaPos, Rectangle layoutBox, java.util.Set<Rectangle> nonChildFloatingRendererAreas, IRenderer causeOfNothing, boolean anythingPlaced, int childPos, LayoutResult result)
(package private) Rectangle
BlockRenderer. recalculateLayoutBoxBeforeChildLayout(Rectangle layoutBox, IRenderer childRenderer, Rectangle initialLayoutBox)
(package private) Rectangle
FlexContainerRenderer. recalculateLayoutBoxBeforeChildLayout(Rectangle layoutBox, IRenderer childRenderer, Rectangle initialLayoutBox)
(package private) void
BlockRenderer. recalculateOccupiedAreaAfterChildLayout(Rectangle resultBBox, java.lang.Float blockMaxHeight)
(package private) void
FlexContainerRenderer. recalculateOccupiedAreaAfterChildLayout(Rectangle resultBBox, java.lang.Float blockMaxHeight)
protected java.util.List<Point>
AbstractRenderer. rectangleToPointsList(Rectangle rect)
private static java.util.List<java.lang.Float>
FlexUtil. retrieveCurrentPageLineCrossSizes(FlexContainerRenderer flexContainerRenderer, java.util.List<java.util.List<FlexUtil.FlexItemCalculationInfo>> lines, java.util.List<java.lang.Float> lineCrossSizes, java.lang.Float crossSize, Rectangle layoutBox)
private java.util.List<IRenderer>
FlexContainerRenderer. retrieveRenderersToOverflow(Rectangle flexContainerBBox)
(package private) MarginsCollapseInfo
BlockRenderer. startChildMarginsHandling(IRenderer childRenderer, Rectangle layoutBox, MarginsCollapseHandler marginsCollapseHandler)
(package private) MarginsCollapseInfo
FlexContainerRenderer. startChildMarginsHandling(IRenderer childRenderer, Rectangle layoutBox, MarginsCollapseHandler marginsCollapseHandler)
private void
AbstractRenderer. updateMinHeightForAbsolutelyPositionedRenderer(IRenderer renderer, Rectangle parentRendererBox, java.lang.Float top, java.lang.Float bottom)
Method parameters in com.itextpdf.layout.renderer with type arguments of type Rectangle Modifier and Type Method Description private static void
FloatingHelper. adjustBlockAreaAccordingToFloatRenderers(java.util.List<Rectangle> floatRendererAreas, Rectangle layoutBox, float blockWidth, boolean isFloatLeft)
(package private) static float
FloatingHelper. adjustBlockFormattingContextLayoutBox(BlockRenderer renderer, java.util.List<Rectangle> floatRendererAreas, Rectangle parentBBox, float blockWidth, float clearHeightCorrection)
(package private) static java.lang.Float
FloatingHelper. adjustFloatedBlockLayoutBox(AbstractRenderer renderer, Rectangle parentBBox, java.lang.Float blockWidth, java.util.List<Rectangle> floatRendererAreas, FloatPropertyValue floatPropertyValue, OverflowPropertyValue overflowX)
(package private) static void
FloatingHelper. adjustFloatedTableLayoutBox(TableRenderer tableRenderer, Rectangle layoutBox, float tableWidth, java.util.List<Rectangle> floatRendererAreas, FloatPropertyValue floatPropertyValue)
(package private) static float
FloatingHelper. adjustLayoutBoxAccordingToFloats(java.util.List<Rectangle> floatRendererAreas, Rectangle layoutBox, java.lang.Float boxWidth, float clearHeightCorrection, MarginsCollapseHandler marginsCollapseHandler)
(package private) static void
FloatingHelper. adjustLineAreaAccordingToFloats(java.util.List<Rectangle> floatRendererAreas, Rectangle layoutBox)
(package private) static LayoutArea
FloatingHelper. adjustResultOccupiedAreaForFloatAndClear(IRenderer renderer, java.util.List<Rectangle> floatRendererAreas, Rectangle parentBBox, float clearHeightCorrection, boolean marginsCollapsingEnabled)
(package private) static LayoutArea
FloatingHelper. adjustResultOccupiedAreaForFloatAndClear(IRenderer renderer, java.util.List<Rectangle> floatRendererAreas, Rectangle parentBBox, float clearHeightCorrection, float bfcHeightCorrection, boolean marginsCollapsingEnabled)
private void
ParagraphRenderer. applyTextAlignment(TextAlignment textAlignment, LineLayoutResult result, LineRenderer processedRenderer, Rectangle layoutBox, java.util.List<Rectangle> floatRendererAreas, boolean onlyOverflowedFloatsLeft, float lineIndent)
(package private) static float
FloatingHelper. calculateClearHeightCorrection(IRenderer renderer, java.util.List<Rectangle> floatRendererAreas, Rectangle parentBBox)
(package private) static java.lang.Float
FloatingHelper. calculateLineShiftUnderFloats(java.util.List<Rectangle> floatRendererAreas, Rectangle layoutBox)
private static float
FloatingHelper. calculateLowestFloatBottom(boolean isLeftOrBoth, boolean isRightOrBoth, float lowestFloatBottom, Rectangle[] lastLeftAndRightBoxes, java.util.List<Rectangle> floatRendererAreas)
private static Rectangle[]
FloatingHelper. findLastLeftAndRightBoxes(Rectangle layoutBox, java.util.List<Rectangle> yLevelBoxes)
private static java.util.List<Rectangle>
FloatingHelper. getBoxesAtYLevel(java.util.List<Rectangle> floatRendererAreas, float currY)
(package private) static Rectangle
FloatingHelper. includeChildFloatsInOccupiedArea(java.util.List<Rectangle> floatRendererAreas, Rectangle occupiedAreaBbox, java.util.Set<Rectangle> nonChildFloatingRendererAreas)
(package private) static Rectangle
FloatingHelper. includeChildFloatsInOccupiedArea(java.util.List<Rectangle> floatRendererAreas, Rectangle occupiedAreaBbox, java.util.Set<Rectangle> nonChildFloatingRendererAreas)
(package private) static void
FloatingHelper. includeChildFloatsInOccupiedArea(java.util.List<Rectangle> floatRendererAreas, IRenderer renderer, java.util.Set<Rectangle> nonChildFloatingRendererAreas)
(package private) static void
FloatingHelper. includeChildFloatsInOccupiedArea(java.util.List<Rectangle> floatRendererAreas, IRenderer renderer, java.util.Set<Rectangle> nonChildFloatingRendererAreas)
(package private) LayoutResult
BlockRenderer. processNotFullChildResult(LayoutContext layoutContext, java.util.Map<java.lang.Integer,IRenderer> waitingFloatsSplitRenderers, java.util.List<IRenderer> waitingOverflowFloatRenderers, boolean wasHeightClipped, java.util.List<Rectangle> floatRendererAreas, boolean marginsCollapsingEnabled, float clearHeightCorrection, Border[] borders, UnitValue[] paddings, java.util.List<Rectangle> areas, int currentAreaPos, Rectangle layoutBox, java.util.Set<Rectangle> nonChildFloatingRendererAreas, IRenderer causeOfNothing, boolean anythingPlaced, int childPos, LayoutResult result)
(package private) LayoutResult
FlexContainerRenderer. processNotFullChildResult(LayoutContext layoutContext, java.util.Map<java.lang.Integer,IRenderer> waitingFloatsSplitRenderers, java.util.List<IRenderer> waitingOverflowFloatRenderers, boolean wasHeightClipped, java.util.List<Rectangle> floatRendererAreas, boolean marginsCollapsingEnabled, float clearHeightCorrection, Border[] borders, UnitValue[] paddings, java.util.List<Rectangle> areas, int currentAreaPos, Rectangle layoutBox, java.util.Set<Rectangle> nonChildFloatingRendererAreas, IRenderer causeOfNothing, boolean anythingPlaced, int childPos, LayoutResult result)
(package private) static void
FloatingHelper. removeFloatsAboveRendererBottom(java.util.List<Rectangle> floatRendererAreas, IRenderer renderer)
Constructors in com.itextpdf.layout.renderer with parameters of type Rectangle Constructor Description FlexItemInfo(AbstractRenderer renderer, Rectangle rectangle)
GridSizer(Grid grid, java.util.List<GridValue> templateColumns, java.util.List<GridValue> templateRows, GridValue columnAutoWidth, GridValue rowAutoHeight, float columnGap, float rowGap, Rectangle actualBBox)
Creates new grid sizer instance. -
Uses of Rectangle in com.itextpdf.signatures
Fields in com.itextpdf.signatures declared as Rectangle Modifier and Type Field Description private Rectangle
SignerProperties. pageRect
Methods in com.itextpdf.signatures that return Rectangle Modifier and Type Method Description Rectangle
SignerProperties. getPageRect()
Provides the rectangle that represent the position and dimension of the signature field in the page.protected Rectangle
PdfSigner. getWidgetRectangle(PdfWidgetAnnotation widget)
Get the rectangle associated to the provided widget.Methods in com.itextpdf.signatures with parameters of type Rectangle Modifier and Type Method Description SignerProperties
SignerProperties. setPageRect(Rectangle pageRect)
Sets the rectangle that represent the position and dimension of the signature field in the page. -
Uses of Rectangle in com.itextpdf.styledxmlparser.css.page
Fields in com.itextpdf.styledxmlparser.css.page declared as Rectangle Modifier and Type Field Description private Rectangle
PageMarginBoxContextNode. containingBlockForMarginBox
private Rectangle
PageMarginBoxContextNode. pageMarginBoxRectangle
Methods in com.itextpdf.styledxmlparser.css.page that return Rectangle Modifier and Type Method Description Rectangle
PageMarginBoxContextNode. getContainingBlockForMarginBox()
Rectangle
PageMarginBoxContextNode. getPageMarginBoxRectangle()
Gets the rectangle in which page margin box contents should be shown.Methods in com.itextpdf.styledxmlparser.css.page with parameters of type Rectangle Modifier and Type Method Description void
PageMarginBoxContextNode. setContainingBlockForMarginBox(Rectangle containingBlockForMarginBox)
Sets the containing block rectangle for the margin box, which is used for calculating some of the margin box properties relative values.void
PageMarginBoxContextNode. setPageMarginBoxRectangle(Rectangle pageMarginBoxRectangle)
Sets the rectangle in which page margin box contents are shown. -
Uses of Rectangle in com.itextpdf.svg.processors.impl
Fields in com.itextpdf.svg.processors.impl declared as Rectangle Modifier and Type Field Description private Rectangle
SvgConverterProperties. customViewport
Methods in com.itextpdf.svg.processors.impl that return Rectangle Modifier and Type Method Description Rectangle
SvgConverterProperties. getCustomViewport()
Gets the custom viewport of SVG.Methods in com.itextpdf.svg.processors.impl with parameters of type Rectangle Modifier and Type Method Description void
SvgConverterProperties. setCustomViewport(Rectangle customViewport)
Sets the custom viewport of SVG. -
Uses of Rectangle in com.itextpdf.svg.renderers
Fields in com.itextpdf.svg.renderers declared as Rectangle Modifier and Type Field Description private Rectangle
SvgDrawContext. customViewport
Fields in com.itextpdf.svg.renderers with type parameters of type Rectangle Modifier and Type Field Description private java.util.Deque<Rectangle>
SvgDrawContext. viewports
Methods in com.itextpdf.svg.renderers that return Rectangle Modifier and Type Method Description Rectangle
SvgDrawContext. getCurrentViewPort()
Get the current viewbox.Rectangle
SvgDrawContext. getCustomViewport()
Gets the custom viewport of SVG.Rectangle
ISvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Calculates the current object bounding box.Rectangle
SvgDrawContext. getRootViewPort()
Get the viewbox which is the root viewport for the current document.Methods in com.itextpdf.svg.renderers with parameters of type Rectangle Modifier and Type Method Description void
SvgDrawContext. addViewPort(Rectangle viewPort)
Adds a viewbox to the context.private void
SvgImageRenderer. calculateRelativeSizedSvgSize(SvgImage svgImage, Rectangle layoutBox)
Color
ISvgPaintServer. createColor(SvgDrawContext context, Rectangle objectBoundingBox, float objectBoundingBoxMargin, float parentOpacity)
Creates theColor
that represents the corresponding paint server for specified object box.void
SvgDrawContext. setCustomViewport(Rectangle customViewport)
Sets the custom viewport of SVG. -
Uses of Rectangle in com.itextpdf.svg.renderers.impl
Fields in com.itextpdf.svg.renderers.impl declared as Rectangle Modifier and Type Field Description private Rectangle
TextSvgBranchRenderer. objectBoundingBox
Methods in com.itextpdf.svg.renderers.impl that return Rectangle Modifier and Type Method Description private Rectangle
PatternSvgNodeRenderer. calculateAppliedViewBox(Rectangle viewBox, double xStep, double yStep)
private Rectangle
PatternSvgNodeRenderer. calculateOriginalPatternRectangle(SvgDrawContext context, boolean isObjectBoundingBoxInPatternUnits)
(package private) Rectangle
AbstractContainerSvgNodeRenderer. calculateViewPort(SvgDrawContext context)
Calculate the viewport based on the context.(package private) static Rectangle
PdfRootSvgNodeRenderer. calculateViewPort(SvgDrawContext context)
private static Rectangle
AbstractBranchSvgNodeRenderer. getBBoxAccordingToVisibleOverflow(SvgDrawContext context)
When in the svg elementoverflow
isvisible
the corresponding formXObject should have a BBox (form XObject’s bounding box; see PDF 32000-1:2008 - 8.10.2 Form Dictionaries) that should cover the entire svg space (page in pdf) in order to be able to show parts of the element which are outside the current element viewPort.private static Rectangle
TextSvgBranchRenderer. getCommonRectangleWithAnchor(Rectangle commonRect, Rectangle textChunkRect, float absoluteX, java.lang.String textAnchorValue)
Adjust absolutely positioned text chunk (shift it to the start of view port, apply text anchor) and merge it with the common text rectangle.Rectangle
AbstractSvgNodeRenderer. getCurrentViewBox(SvgDrawContext context)
Gets the viewbox from the first parent element which can define it.Rectangle
ClipPathSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
DefsSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
EllipseSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
GroupSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
ImageSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
LinearGradientSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
LineSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
MarkerSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
PathSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
PatternSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
PdfRootSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
PolylineSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
RectangleSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
StopSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
SvgTagSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
SymbolSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
TextLeafSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
TextSvgBranchRenderer. getObjectBoundingBox(SvgDrawContext context)
Rectangle
UseSvgNodeRenderer. getObjectBoundingBox(SvgDrawContext context)
Methods in com.itextpdf.svg.renderers.impl with parameters of type Rectangle Modifier and Type Method Description (package private) void
AbstractBranchSvgNodeRenderer. calculateAndApplyViewBox(SvgDrawContext context, float[] values, Rectangle currentViewPort)
private Rectangle
PatternSvgNodeRenderer. calculateAppliedViewBox(Rectangle viewBox, double xStep, double yStep)
Color
LinearGradientSvgNodeRenderer. createColor(SvgDrawContext context, Rectangle objectBoundingBox, float objectBoundingBoxMargin, float parentOpacity)
Color
PatternSvgNodeRenderer. createColor(SvgDrawContext context, Rectangle objectBoundingBox, float objectBoundingBoxMargin, float parentOpacity)
private static PdfPattern.Tiling
PatternSvgNodeRenderer. createColoredTilingPatternInstance(AffineTransform patternAffineTransform, Rectangle bbox, double xStep, double yStep)
private PdfPattern.Tiling
PatternSvgNodeRenderer. createTilingPattern(SvgDrawContext context, Rectangle objectBoundingBox)
private static Rectangle
TextSvgBranchRenderer. getCommonRectangleWithAnchor(Rectangle commonRect, Rectangle textChunkRect, float absoluteX, java.lang.String textAnchorValue)
Adjust absolutely positioned text chunk (shift it to the start of view port, apply text anchor) and merge it with the common text rectangle.private AffineTransform
LinearGradientSvgNodeRenderer. getGradientTransformToUserSpaceOnUse(Rectangle objectBoundingBox, boolean isObjectBoundingBox)
private static AffineTransform
PatternSvgNodeRenderer. getTransformToUserSpaceOnUse(Rectangle objectBoundingBox)
-
Uses of Rectangle in com.itextpdf.svg.renderers.path
Methods in com.itextpdf.svg.renderers.path that return Rectangle Modifier and Type Method Description Rectangle
IPathShape. getPathShapeRectangle(Point lastPoint)
Get bounding rectangle of the current path shape. -
Uses of Rectangle in com.itextpdf.svg.renderers.path.impl
Methods in com.itextpdf.svg.renderers.path.impl that return Rectangle Modifier and Type Method Description Rectangle
AbstractPathShape. getPathShapeRectangle(Point lastPoint)
Get bounding rectangle of the current path shape.Rectangle
CurveTo. getPathShapeRectangle(Point lastPoint)
Rectangle
EllipticalCurveTo. getPathShapeRectangle(Point lastPoint)
Rectangle
QuadraticCurveTo. getPathShapeRectangle(Point lastPoint)
-
Uses of Rectangle in com.itextpdf.svg.utils
Subclasses of Rectangle in com.itextpdf.svg.utils Modifier and Type Class Description class
TextRectangle
A rectangle adapted for working with text elements.Methods in com.itextpdf.svg.utils that return Rectangle Modifier and Type Method Description static Rectangle
SvgCoordinateUtils. applyViewBox(Rectangle viewBox, Rectangle currentViewPort, java.lang.String align, java.lang.String meetOrSlice)
Returns the viewBox received after scaling and displacement given preserveAspectRatio.static Rectangle
SvgCssUtils. extractWidthAndHeight(ISvgNodeRenderer svgRenderer, float em, SvgDrawContext context)
Extract width and height of the passed SVGNodeRenderer, defaulting toSvgDrawContext.getCustomViewport()
if either one is not present.Methods in com.itextpdf.svg.utils with parameters of type Rectangle Modifier and Type Method Description static Rectangle
SvgCoordinateUtils. applyViewBox(Rectangle viewBox, Rectangle currentViewPort, java.lang.String align, java.lang.String meetOrSlice)
Returns the viewBox received after scaling and displacement given preserveAspectRatio.private static double
SvgCoordinateUtils. getScaleWidthHeight(Rectangle viewBox, Rectangle currentViewPort, java.lang.String meetOrSlice)
-
Uses of Rectangle in com.itextpdf.svg.xobject
Constructors in com.itextpdf.svg.xobject with parameters of type Rectangle Constructor Description SvgImageXObject(Rectangle bBox, ISvgProcessorResult result, ResourceResolver resourceResolver)
Creates a new instance of Form XObject for the SVG image.
-