Uses of Class
com.itextpdf.kernel.geom.Rectangle
Packages that use Rectangle
Package
Description
-
Uses of Rectangle in com.itextpdf.barcodes
Methods in com.itextpdf.barcodes that return RectangleModifier and TypeMethodDescriptionBarcode128.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.Barcode39.getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy.BarcodeCodabar.getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy.BarcodeDataMatrix.getBarcodeSize()
BarcodeDataMatrix.getBarcodeSize
(float moduleHeight, float moduleWidth) Gets the barcode sizeBarcodeEAN.getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy.BarcodeEANSUPP.getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy.BarcodeInter25.getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy.BarcodeMSI.getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy.BarcodePDF417.getBarcodeSize()
BarcodePostnet.getBarcodeSize()
BarcodeQRCode.getBarcodeSize()
Gets the size of the barcode gridBarcodeQRCode.getBarcodeSize
(float moduleSize) Gets the barcode sizeBarcode128.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
.Barcode39.placeBarcode
(PdfCanvas canvas, Color barColor, Color textColor) Places the barcode in aPdfCanvas
.BarcodeCodabar.placeBarcode
(PdfCanvas canvas, Color barColor, Color textColor) Places the barcode in aPdfCanvas
.BarcodeDataMatrix.placeBarcode
(PdfCanvas canvas, Color foreground) BarcodeDataMatrix.placeBarcode
(PdfCanvas canvas, Color foreground, float moduleSide) BarcodeEAN.placeBarcode
(PdfCanvas canvas, Color barColor, Color textColor) Places the barcode in aPdfCanvas
.BarcodeEANSUPP.placeBarcode
(PdfCanvas canvas, Color barColor, Color textColor) Places the barcode in aPdfCanvas
.BarcodeInter25.placeBarcode
(PdfCanvas canvas, Color barColor, Color textColor) Places the barcode in aPdfCanvas
.BarcodeMSI.placeBarcode
(PdfCanvas canvas, Color barColor, Color textColor) Places the barcode in aPdfCanvas
.BarcodePDF417.placeBarcode
(PdfCanvas canvas, Color foreground) BarcodePDF417.placeBarcode
(PdfCanvas canvas, Color foreground, float moduleWidth, float moduleHeight) BarcodePostnet.placeBarcode
(PdfCanvas canvas, Color barColor, Color textColor) BarcodeQRCode.placeBarcode
(PdfCanvas canvas, Color foreground) BarcodeQRCode.placeBarcode
(PdfCanvas canvas, Color foreground, float moduleSide) * Places the barcode in aPdfCanvas
. -
Uses of Rectangle in com.itextpdf.forms.fields
Methods in com.itextpdf.forms.fields that return RectangleModifier and TypeMethodDescriptionprotected Rectangle
PdfFormAnnotation.getRect
(PdfDictionary field) Gets aRectangle
that matches the current size and position of this form field.TerminalFormFieldBuilder.getWidgetRectangle()
Gets rectangle which defines widget's placement.Methods in com.itextpdf.forms.fields with parameters of type RectangleModifier and TypeMethodDescriptionRadioFormFieldBuilder.createRadioButton
(String appearanceName, Rectangle rectangle) Creates radio button form field instance based on provided parameters.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 RectangleModifier and TypeMethodDescriptionprotected 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 rectangleMethods in com.itextpdf.forms.form.renderer with parameters of type RectangleModifier and TypeMethodDescriptionprotected 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 rectangle -
Uses of Rectangle in com.itextpdf.forms.form.renderer.checkboximpl
Methods in com.itextpdf.forms.form.renderer.checkboximpl with parameters of type RectangleModifier and TypeMethodDescriptionvoid
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. -
Uses of Rectangle in com.itextpdf.forms.util
Methods in com.itextpdf.forms.util with parameters of type RectangleModifier and TypeMethodDescriptionstatic float
FontSizeUtil.approximateFontSizeToFitSingleLine
(PdfFont localFont, Rectangle bBox, 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.kernel.colors.gradients
Methods in com.itextpdf.kernel.colors.gradients with parameters of type RectangleModifier and TypeMethodDescriptionAbstractLinearGradientBuilder.buildColor
(Rectangle targetBoundingBox, AffineTransform contextTransform, PdfDocument document) Builds theColor
object representing the linear gradient with specified configuration that fills the target bounding box.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.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.geomMethods in com.itextpdf.kernel.geom that return RectangleModifier and TypeMethodDescriptionRectangle.applyMargins
(float topIndent, float rightIndent, float bottomIndent, float leftIndent, boolean reverse) Change the rectangle according the specified margins.static Rectangle
Rectangle.calculateBBox
(List<Point> points) Calculates the bounding box of passed points.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.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.decreaseHeight
(float extra) Decreases the height of rectangle by the given value.Rectangle.decreaseWidth
(float extra) Decreases the width of rectangle by the given value.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.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.increaseHeight
(float extra) Increases the height of rectangle by the given value.Rectangle.increaseWidth
(float extra) Increases the width of rectangle by the given value.Rectangle.moveDown
(float move) Decreases the y coordinate.Rectangle.moveLeft
(float move) Decreases the x coordinate.Rectangle.moveRight
(float move) Increases the x coordinate.Rectangle.moveUp
(float move) Increases the y coordinate.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.setHeight
(float height) Sets the height of rectangle.Rectangle.setWidth
(float width) Sets the width of rectangle.Rectangle.setX
(float x) Sets the X coordinate of lower left point.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 RectangleModifier and TypeMethodDescriptionRectangle.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 RectangleModifier and TypeMethodDescriptionboolean
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.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
Check if this rectangle and the passed rectangle overlapboolean
Check if this rectangle and the passed rectangle overlapvoid
Appends a rectangle to the current path as a complete subpath.Constructors in com.itextpdf.kernel.geom with parameters of type Rectangle -
Uses of Rectangle in com.itextpdf.kernel.pdf
Methods in com.itextpdf.kernel.pdf that return RectangleModifier and TypeMethodDescriptionPdfPage.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.PdfDictionary.getAsRectangle
(PdfName key) Returns the value associated to this key as a 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.PdfPage.getCropBox()
Gets theRectangle
specified by page's CropBox, that defines the visible region of default user space.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 printedPdfPage.getPageSize()
Gets page size, defined by media box object.PdfPage.getPageSizeWithRotation()
Gets page size, considering page rotation.PdfPage.getTrimBox()
Gets theRectangle
object specified by page's TrimBox object, that define the intended dimensions of the finished page after trimming.PdfArray.toRectangle()
Returns the first four elements of this array as a PdfArray.Methods in com.itextpdf.kernel.pdf with parameters of type RectangleModifier and TypeMethodDescriptionSets 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.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.setCropBox
(Rectangle rectangle) Sets the CropBox object, that defines the visible region of default user space.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.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 -
Uses of Rectangle in com.itextpdf.kernel.pdf.annot
Methods in com.itextpdf.kernel.pdf.annot that return RectangleModifier and TypeMethodDescriptionPdf3DAnnotation.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 RectangleModifier and TypeMethodDescriptionstatic 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.setViewBox
(Rectangle viewBox) Sets the 3D view box, which is the rectangular area in which the 3D artwork shall be drawn.Constructors in com.itextpdf.kernel.pdf.annot with parameters of type RectangleModifierConstructorDescriptionPdf3DAnnotation
(Rectangle rect, PdfObject artwork) Creates aPdf3DAnnotation
instance.protected
PdfAnnotation
(Rectangle rect) PdfCaretAnnotation
(Rectangle rect) PdfCircleAnnotation
(Rectangle rect) PdfFileAttachmentAnnotation
(Rectangle rect, PdfFileSpec file) PdfFreeTextAnnotation
(Rectangle rect, PdfString contents) Creates new instancePdfInkAnnotation
(Rectangle rect) PdfInkAnnotation
(Rectangle rect, PdfArray inkList) PdfLineAnnotation
(Rectangle rect, float[] line) Creates aPdfLineAnnotation
instance.PdfLinkAnnotation
(Rectangle rect) Creates a newPdfLinkAnnotation
instance based onRectangle
instance, that define the location of the annotation on the page in default user space units.protected
PdfMarkupAnnotation
(Rectangle rect) PdfPopupAnnotation
(Rectangle rect) PdfPrinterMarkAnnotation
(Rectangle rect, PdfFormXObject appearanceStream) PdfRedactAnnotation
(Rectangle rect) PdfScreenAnnotation
(Rectangle rect) PdfSoundAnnotation
(Rectangle rect, PdfStream sound) Creates a new Sound annotation.PdfSoundAnnotation
(PdfDocument document, Rectangle rect, InputStream soundStream, float sampleRate, PdfName encoding, int channels, int sampleSizeInBits) Creates a sound annotation.PdfSquareAnnotation
(Rectangle rect) PdfStampAnnotation
(Rectangle rect) PdfTextAnnotation
(Rectangle rect) PdfTextMarkupAnnotation
(Rectangle rect, PdfName subtype, float[] quadPoints) PdfTrapNetworkAnnotation
(Rectangle rect, PdfFormXObject appearanceStream) Creates aPdfTrapNetworkAnnotation
instance.PdfWidgetAnnotation
(Rectangle rect) -
Uses of Rectangle in com.itextpdf.kernel.pdf.canvas
Methods in com.itextpdf.kernel.pdf.canvas with parameters of type RectangleModifier and TypeMethodDescriptionPdfCanvas.addImageFittedIntoRectangle
(ImageData image, Rectangle rect, boolean asInline) CreatesPdfImageXObject
from image and fitted into specific rectangle on canvas.PdfCanvas.addXObjectFittedIntoRectangle
(PdfXObject xObject, Rectangle rect) AddsPdfXObject
fitted into specific rectangle on canvas.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 RectangleModifier and TypeMethodDescriptionvoid
void
void
Performs configurable drawing operations related to specific region coordinates on a canvas.void
-
Uses of Rectangle in com.itextpdf.kernel.pdf.canvas.parser.filter
Constructors in com.itextpdf.kernel.pdf.canvas.parser.filter with parameters of type RectangleModifierConstructorDescriptionTextRegionEventFilter
(Rectangle filterRect) Constructs a filter instance. -
Uses of Rectangle in com.itextpdf.kernel.pdf.canvas.parser.listener
Methods in com.itextpdf.kernel.pdf.canvas.parser.listener that return RectangleModifier and TypeMethodDescriptionCharacterRenderInfo.getBoundingBox()
DefaultPdfTextLocation.getRectangle()
IPdfTextLocation.getRectangle()
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 RectangleModifier and TypeMethodDescriptionRegexBasedLocationExtractionStrategy.toRectangles
(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 RectangleConstructors in com.itextpdf.kernel.pdf.canvas.parser.listener with parameters of type Rectangle -
Uses of Rectangle in com.itextpdf.kernel.pdf.colorspace
Methods in com.itextpdf.kernel.pdf.colorspace that return RectangleModifier and TypeMethodDescriptionPdfPattern.Tiling.getBBox()
Gets the pattern cell's bounding box.Methods in com.itextpdf.kernel.pdf.colorspace with parameters of type RectangleModifier and TypeMethodDescriptionvoid
Sets the pattern cell's bounding box.Constructors in com.itextpdf.kernel.pdf.colorspace with parameters of type RectangleModifierConstructorDescriptionCreates a new Tiling instance.Creates a new Tiling instance.Creates a new Tiling instance.Creates a new Tiling instance. -
Uses of Rectangle in com.itextpdf.kernel.pdf.xobject
Methods in com.itextpdf.kernel.pdf.xobject that return RectangleModifier and TypeMethodDescriptionstatic 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 RectangleModifierConstructorDescriptionPdfFormXObject
(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 RectangleModifier and TypeMethodDescriptionCompareTool.compareByContent
(String outPdf, String cmpPdf, String outPath, String differenceImagePrefix, Map<Integer, List<Rectangle>> ignoredAreas) Compares two PDF documents by content starting from page dictionaries and then recursively comparing corresponding objects which are referenced from them.CompareTool.compareByContent
(String outPdf, String cmpPdf, String outPath, String differenceImagePrefix, Map<Integer, List<Rectangle>> ignoredAreas, byte[] outPass, byte[] cmpPass) This method overload is used to compare two encrypted PDF documents.CompareTool.compareVisually
(String outPdf, String cmpPdf, String outPath, String differenceImagePrefix, Map<Integer, List<Rectangle>> ignoredAreas) Compares two documents visually. -
Uses of Rectangle in com.itextpdf.layout
Fields in com.itextpdf.layout declared as RectangleModifier and TypeFieldDescriptionprotected Rectangle[]
ColumnDocumentRenderer.columns
protected Rectangle
Canvas.rootArea
Methods in com.itextpdf.layout that return RectangleModifier and TypeMethodDescriptionDocument.getPageEffectiveArea
(PageSize pageSize) Returns the area that will actually be used to write on the page, given the current margins.Canvas.getRootArea()
Gets the root area rectangle.Constructors in com.itextpdf.layout with parameters of type RectangleModifierConstructorDescriptionCreates a new Canvas to manipulate a specific content stream, which might be for example a page orPdfFormXObject
stream.Creates a new Canvas to manipulate a specific document and page.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 RectangleModifier and TypeMethodDescriptionvoid
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 RectangleFields in com.itextpdf.layout.layout with type parameters of type RectangleMethods in com.itextpdf.layout.layout that return RectangleMethods in com.itextpdf.layout.layout that return types with arguments of type RectangleModifier and TypeMethodDescriptionLayoutContext.getFloatRendererAreas()
Gets list ofRectangle
objects.Methods in com.itextpdf.layout.layout with parameters of type RectangleConstructors in com.itextpdf.layout.layout with parameters of type RectangleModifierConstructorDescriptionLayoutArea
(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 RectangleModifierConstructorDescriptionLayoutContext
(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, List<Rectangle> floatedRendererAreas) Creates the layout context.LayoutContext
(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, List<Rectangle> floatedRendererAreas, boolean clippedHeight) Creates the layout context.LineLayoutContext
(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, List<Rectangle> floatedRendererAreas, boolean clippedHeight) Creates the context for content of a line. -
Uses of Rectangle in com.itextpdf.layout.margincollapse
Methods in com.itextpdf.layout.margincollapse with parameters of type RectangleModifier and TypeMethodDescriptionvoid
MarginsCollapseHandler.endChildMarginsHandling
(Rectangle layoutBox) This method shall be called after child occupied area is included into parent occupied area.void
MarginsCollapseHandler.endMarginsCollapse
(Rectangle layoutBox) 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 RectangleModifier and TypeMethodDescriptionstatic 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 RectangleModifier and TypeMethodDescriptionBackgroundRepeat.prepareRectangleToDrawingAndGetWhitespace
(Rectangle imageRectangle, Rectangle backgroundArea, BackgroundSize backgroundSize) Prepares the image rectangle for drawing. -
Uses of Rectangle in com.itextpdf.layout.renderer
Methods in com.itextpdf.layout.renderer that return RectangleModifier and TypeMethodDescriptionAbstractRenderer.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) 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) 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 on the given rectangleprotected Rectangle
ImageRenderer.applyPaddings
(Rectangle rect, UnitValue[] paddings, boolean reverse) TableRenderer.applyPaddings
(Rectangle rect, boolean reverse) protected Rectangle
TableRenderer.applyPaddings
(Rectangle rect, UnitValue[] paddings, boolean reverse) protected 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
(List<Point> points) Calculates bounding box around points.protected Rectangle
AbstractRenderer.getBackgroundArea
(Rectangle occupiedAreaWithMargins) Evaluate the actual backgroundprotected Rectangle
TextRenderer.getBackgroundArea
(Rectangle occupiedAreaWithMargins) AbstractRenderer.getBorderAreaBBox()
Gets the border box of a renderer.ImageRenderer.getBorderAreaBBox()
AbstractRenderer.getInnerAreaBBox()
AbstractRenderer.getOccupiedAreaBBox()
Gets the bounding box that contains all content written to theDrawContext
by thisIRenderer
.BlockRenderer.getOccupiedAreaBBox()
Methods in com.itextpdf.layout.renderer that return types with arguments of type RectangleModifier and TypeMethodDescriptionAbstractRenderer.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 RectangleModifier and TypeMethodDescriptionprotected void
AbstractRenderer.alignChildHorizontally
(IRenderer childRenderer, Rectangle currentArea) protected void
AbstractRenderer.applyAbsolutePosition
(Rectangle parentRect) 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) 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) 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 on the given rectangleprotected Rectangle
ImageRenderer.applyPaddings
(Rectangle rect, UnitValue[] paddings, boolean reverse) 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.protected 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 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) static PdfFormXObject
AbstractRenderer.createXObject
(AbstractLinearGradientBuilder linearGradientBuilder, Rectangle xObjectArea, PdfDocument document) Create aPdfFormXObject
with the given area and containing a linear gradient inside.protected void
TableRenderer.extendLastRow
(CellRenderer[] lastRow, Rectangle freeBox) protected Rectangle
AbstractRenderer.getBackgroundArea
(Rectangle occupiedAreaWithMargins) Evaluate the actual backgroundprotected Rectangle
TextRenderer.getBackgroundArea
(Rectangle occupiedAreaWithMargins) AbstractRenderer.rectangleToPointsList
(Rectangle rect) -
Uses of Rectangle in com.itextpdf.signatures
Methods in com.itextpdf.signatures that return RectangleModifier and TypeMethodDescriptionPdfSignatureAppearance.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 RectangleModifier and TypeMethodDescriptionPdfSignatureAppearance.setPageRect
(Rectangle pageRect) Sets the rectangle that represent the position and dimension of the signature field in the page.Constructors in com.itextpdf.signatures with parameters of type RectangleModifierConstructorDescriptionprotected
PdfSignatureAppearance
(PdfDocument document, Rectangle pageRect, int pageNumber) Creates a PdfSignatureAppearance. -
Uses of Rectangle in com.itextpdf.styledxmlparser.css.page
Methods in com.itextpdf.styledxmlparser.css.page that return RectangleModifier and TypeMethodDescriptionPageMarginBoxContextNode.getContainingBlockForMarginBox()
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 RectangleModifier and TypeMethodDescriptionvoid
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.renderers
Methods in com.itextpdf.svg.renderers that return RectangleModifier and TypeMethodDescriptionSvgDrawContext.getCurrentViewPort()
Get the current viewbox.ISvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) Calculates the current object bounding box.SvgDrawContext.getRootViewPort()
Get the viewbox which is the root viewport for the current document.Methods in com.itextpdf.svg.renderers with parameters of type RectangleModifier and TypeMethodDescriptionvoid
SvgDrawContext.addViewPort
(Rectangle viewPort) Adds a viewbox to the context.ISvgPaintServer.createColor
(SvgDrawContext context, Rectangle objectBoundingBox, float objectBoundingBoxMargin, float parentOpacity) Creates theColor
that represents the corresponding paint server for specified object box. -
Uses of Rectangle in com.itextpdf.svg.renderers.impl
Methods in com.itextpdf.svg.renderers.impl that return RectangleModifier and TypeMethodDescriptionClipPathSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) DefsSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) EllipseSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) GroupSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) ImageSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) LinearGradientSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) LineSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) MarkerSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) PathSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) PatternSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) PdfRootSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) PolylineSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) RectangleSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) StopSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) SvgTagSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) SymbolSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) TextLeafSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) TextSvgBranchRenderer.getObjectBoundingBox
(SvgDrawContext context) TextSvgTSpanBranchRenderer.getObjectBoundingBox
(SvgDrawContext context) UseSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) Methods in com.itextpdf.svg.renderers.impl with parameters of type RectangleModifier and TypeMethodDescriptionLinearGradientSvgNodeRenderer.createColor
(SvgDrawContext context, Rectangle objectBoundingBox, float objectBoundingBoxMargin, float parentOpacity) PatternSvgNodeRenderer.createColor
(SvgDrawContext context, Rectangle objectBoundingBox, float objectBoundingBoxMargin, float parentOpacity) -
Uses of Rectangle in com.itextpdf.svg.renderers.path
Methods in com.itextpdf.svg.renderers.path that return RectangleModifier and TypeMethodDescriptionIPathShape.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 RectangleModifier and TypeMethodDescriptionAbstractPathShape.getPathShapeRectangle
(Point lastPoint) Get bounding rectangle of the current path shape.CurveTo.getPathShapeRectangle
(Point lastPoint) EllipticalCurveTo.getPathShapeRectangle
(Point lastPoint) QuadraticCurveTo.getPathShapeRectangle
(Point lastPoint) -
Uses of Rectangle in com.itextpdf.svg.utils
Subclasses of Rectangle in com.itextpdf.svg.utilsModifier and TypeClassDescriptionclass
A rectangle adapted for working with text elements.