**Inheritance:**
java.lang.Object, [com.aspose.imaging.ObjectWithBounds](../../com.aspose.imaging/objectwithbounds)
```
public abstract class Shape extends ObjectWithBounds
```

The shape. A continuous set of points connected using a specific rule.
## Constructors

| Constructor | Description |
| --- | --- |
| [Shape()](#Shape--) |  |
## Methods

| Method | Description |
| --- | --- |
| [getCenter()](#getCenter--) | Gets the shape's center. |
| [getSegments()](#getSegments--) | Gets the shape segments. |
| [hasSegments()](#hasSegments--) | Gets a value indicating whether shape has segments. |
### Shape() {#Shape--}
```
public Shape()
```


### getCenter() {#getCenter--}
```
public abstract PointF getCenter()
```


Gets the shape's center.

**Returns:**
[PointF](../../com.aspose.imaging/pointf) - The shape's center.
### getSegments() {#getSegments--}
```
public abstract ShapeSegment[] getSegments()
```


Gets the shape segments.

**Returns:**
com.aspose.imaging.ShapeSegment[] - The shape segments.
### hasSegments() {#hasSegments--}
```
public abstract boolean hasSegments()
```


Gets a value indicating whether shape has segments.

**Returns:**
boolean - `True` if shape has segments; otherwise, `false`.
