# Quad Class

> Represents a quadrilateral in a program.

- Product: Adobe PDF Library 18
- Language: Java
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Quad
- Version index: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/llms.txt

```java
class Quad
```

**Namespace:** `com::datalogics::PDFL`

## Description

Represents a quadrilateral in a program. A quadrilateral is a polygon graphic that has four sides or edges and four corners, Bottom Left, Bottom Right, Top Left, and Top Right.

**Referenced by:** [`DocTextFinderQuadInfo`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/DocTextFinderQuadInfo.md), [`HighlightAnnotation`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/HighlightAnnotation.md), [`Quad`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Quad.md), [`QuadVector`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/QuadVector.md), [`Redaction`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Redaction.md), [`TextMarkupAnnotation`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/TextMarkupAnnotation.md), [`UnderlineAnnotation`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/UnderlineAnnotation.md), [`Word`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Word.md)

**Uses types:** [`Matrix`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Matrix.md), [`Point`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Point.md), [`Quad`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Quad.md), [`Rect`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Rect.md)

## Constructors

### Quad

```java
com.datalogics.PDFL.Quad.Quad()
```

*constructor*

Creates a Quad with all points at the origin.

### Quad

```java
com.datalogics.PDFL.Quad.Quad(Point nTopLeft, Point nTopRight, Point nBottomLeft, Point nBottomRight)
```

*constructor*

**Parameters**

- `nTopLeft` ([`Point`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Point.md)): The top left corner of the Quad.
- `nTopRight` ([`Point`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Point.md)): The top right corner of the Quad.
- `nBottomLeft` ([`Point`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Point.md)): The bottom left corner of the Quad.
- `nBottomRight` ([`Point`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Point.md)): The bottom right corner of the Quad.

Creates a Quad from a set of 4 points.

## Methods

### delete

```java
synchronized void com.datalogics.PDFL.Quad.delete(Boolean disposing)
```

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

```java
synchronized void com.datalogics.PDFL.Quad.delete()
```

**Returns:** `synchronized void`

### equals

```java
boolean com.datalogics.PDFL.Quad.equals(Object rhs)
```

**Parameters**

- `rhs` (`Object`)

**Returns:** `boolean`

### finalize

```java
void com.datalogics.PDFL.Quad.finalize()
```

*protected*

**Returns:** `void`

### getBottomLeft

```java
Point com.datalogics.PDFL.Quad.getBottomLeft()
```

**Returns:** [`Point`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Point.md)

Bottom left corner of the Quad.

### getBottomRight

```java
Point com.datalogics.PDFL.Quad.getBottomRight()
```

**Returns:** [`Point`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Point.md)

Bottom right corner of the Quad.

### getTopLeft

```java
Point com.datalogics.PDFL.Quad.getTopLeft()
```

**Returns:** [`Point`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Point.md)

Top left corner of the Quad.

### getTopRight

```java
Point com.datalogics.PDFL.Quad.getTopRight()
```

**Returns:** [`Point`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Point.md)

Top right corner of the Quad.

### toRect

```java
Rect com.datalogics.PDFL.Quad.toRect()
```

**Returns:** [`Rect`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Rect.md)

A Rect with the lower-left corner at BottomLeft and the upper-right corner at TopRight.

Returns a rectangle describing the same area as the quad.

### toString

```java
String com.datalogics.PDFL.Quad.toString()
```

**Returns:** `String`

A string in the format "[ TopLeft=(...), TopRight=(...), BottomLeft=(...), BottomRight=(...) ]".

Returns a UTF-8 string representation of the quad by calling each point's ToString function.

### transform

```java
Quad com.datalogics.PDFL.Quad.transform(Matrix arg0)
```

**Parameters**

- `arg0` ([`Matrix`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Matrix.md)): The transformation matrix to apply to each point of the Quad.

**Returns:** [`Quad`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Quad.md)

A new Quad with each point transformed by the given matrix.

Create a new quad from the results of a Transform on each point of the Quad.
