Java com.itextpdf.text Rectangle fields, constructors, methods, implement or subclass

Example usage for Java com.itextpdf.text Rectangle fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.itextpdf.text Rectangle.

The text is from its open source code.

Field

intTOP
This represents one side of the border of the Rectangle.
intBOTTOM
This represents one side of the border of the Rectangle.
intLEFT
This represents one side of the border of the Rectangle.
intRIGHT
This represents one side of the border of the Rectangle.
intNO_BORDER
This represents a rectangle without borders.
intBOX
This represents a type of border.

Constructor

Rectangle(final float urx, final float ury)
Constructs a Rectangle -object starting from the origin (0, 0).
Rectangle(final float llx, final float lly, final float urx, final float ury)
Constructs a Rectangle -object.
Rectangle
Rectangle(final Rectangle rect)
Constructs a Rectangle -object.
Rectangle(com.itextpdf.awt.geom.Rectangle rect)
Constructs a Rectangle-object based on a com.itextpdf.awt.geom.Rectangle object
Rectangle(final float llx, final float lly, final float urx, final float ury, final int rotation)
Constructs a Rectangle-object.

Method

booleanequals(Object obj)
intgetBorder()
Returns the exact type of the border.
floatgetBottom()
Returns the lower left y-coordinate.
floatgetBottom(final float margin)
Returns the lower left y-coordinate, considering a given margin.
floatgetHeight()
Returns the height of the rectangle.
floatgetLeft()
Returns the lower left x-coordinate.
floatgetLeft(final float margin)
Returns the lower left x-coordinate, considering a given margin.
floatgetRight()
Returns the upper right x-coordinate.
floatgetRight(final float margin)
Returns the upper right x-coordinate, considering a given margin.
floatgetTop()
Returns the upper right y-coordinate.
floatgetTop(final float margin)
Returns the upper right y-coordinate, considering a given margin.
floatgetWidth()
Returns the width of the rectangle.
Rectanglerotate()
Rotates the rectangle.
voidsetBackgroundColor(final BaseColor backgroundColor)
Sets the backgroundcolor of the rectangle.
voidsetBorder(final int border)
Enables/Disables the border on the specified sides.
voidsetBorderColor(final BaseColor borderColor)
Sets the color of the border.
voidsetBorderWidth(final float borderWidth)
Sets the borderwidth of the table.
voidsetBottom(final float lly)
Sets the lower left y-coordinate.
voidsetLeft(final float llx)
Sets the lower left x-coordinate.
voidsetRight(final float urx)
Sets the upper right x-coordinate.
voidsetTop(final float ury)
Sets the upper right y-coordinate.
voidsetUseVariableBorders(final boolean useVariableBorders)
Sets a parameter indicating if the rectangle has variable borders