---
title: "Ellipse"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf.drawing/ellipse/"
product: "Aspose.PDF for Java API Reference"
description: "Represents ellipse."
---

**Inheritance:**
java.lang.Object, com.aspose.pdf.drawing.Shape com.aspose.pdf.drawing.Ellipse, com.aspose.pdf.drawing.Shape, com.aspose.pdf.drawing.Ellipse

**All Implemented Interfaces:**
IBoundsCheckableItem

```
public final class Ellipse extends Shape
```

Represents ellipse.

## Constructors

| Constructor | Description |
| --- | --- |
| [Ellipse](#Ellipse--) | For Internal usage only |
| [Ellipse](#Ellipse-double-double-double-double-) | Initializes a new instance of the {@code Ellipse} class. |

## Methods

| Method | Description |
| --- | --- |
| [checkBounds](#checkBounds-double-double-) | Checks if the item fits within the given container dimensions (inclusive). |
| [getBottom](#getBottom--) | Gets float value that indicates the bottom position of the ellipse. |
| [getHeight](#getHeight--) | Gets float value that indicates the height of the ellipse. |
| [getLeft](#getLeft--) | Gets float value that indicates the left position of the ellipse. |
| [getWidth](#getWidth--) | Gets float value that indicates the width of the ellipse. |
| [setBottom](#setBottom-double-) | Sets float value that indicates the bottom position of the ellipse. |
| [setHeight](#setHeight-double-) | Sets float value that indicates the height of the ellipse. |
| [setLeft](#setLeft-double-) | Sets float value that indicates the left position of the ellipse. |
| [setWidth](#setWidth-double-) | Gets float value that indicates the width of the ellipse. |

### Ellipse {#Ellipse--}
```
public Ellipse()
```

For Internal usage only

### Ellipse {#Ellipse-double-double-double-double-}
```
public Ellipse(double left, double bottom, double width, double height)
```

Initializes a new instance of the {@code Ellipse} class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| left |  | The left position of the ellipse. |
| bottom |  | The bottom position of the ellipse. |
| width |  | The width of the ellipse. |
| height |  | The height of the ellipse. |

### checkBounds {#checkBounds-double-double-}
```
public boolean checkBounds(double containerWidth, double containerHeight)
```

Checks if the item fits within the given container dimensions (inclusive).

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| containerWidth |  |  |
| containerHeight |  |  |

**Returns:**
True if fits; otherwise, false.

### getBottom {#getBottom--}
```
public double getBottom()
```

Gets float value that indicates the bottom position of the ellipse.

**Returns:**
value that indicates the bottom position of the ellipse.

### getHeight {#getHeight--}
```
public double getHeight()
```

Gets float value that indicates the height of the ellipse.

**Returns:**
value that indicates the height of the ellipse

### getLeft {#getLeft--}
```
public double getLeft()
```

Gets float value that indicates the left position of the ellipse.

**Returns:**
value that indicates the left position of the ellipse.

### getWidth {#getWidth--}
```
public double getWidth()
```

Gets float value that indicates the width of the ellipse.

**Returns:**
value that indicates the width of the ellipse.

### setBottom {#setBottom-double-}
```
public void setBottom(double value)
```

Sets float value that indicates the bottom position of the ellipse.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | that indicates the bottom position of the ellipse. |

### setHeight {#setHeight-double-}
```
public void setHeight(double value)
```

Sets float value that indicates the height of the ellipse.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | that indicates the height of the ellipse |

### setLeft {#setLeft-double-}
```
public void setLeft(double value)
```

Sets float value that indicates the left position of the ellipse.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | that indicates the left position of the ellipse. |

### setWidth {#setWidth-double-}
```
public void setWidth(double value)
```

Gets float value that indicates the width of the ellipse.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | that indicates the width of the ellipse. |
