**Inheritance:**
java.lang.Object

**All Implemented Interfaces:**
[com.aspose.imaging.fileformats.cmx.objectmodel.specs.ICmxObjectSpec](../../com.aspose.imaging.fileformats.cmx.objectmodel.specs/icmxobjectspec)
```
public class CmxRectangleSpec implements ICmxObjectSpec
```

Represents geometric info specified for a rectangle.
## Constructors

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

| Method | Description |
| --- | --- |
| [getCenterX()](#getCenterX--) | Gets the X coordinate for the center of the rectangle. |
| [setCenterX(float value)](#setCenterX-float-) | Sets the X coordinate for the center of the rectangle. |
| [getCenterY()](#getCenterY--) | Gets the Y coordinate for the center of the rectangle. |
| [setCenterY(float value)](#setCenterY-float-) | Sets the Y coordinate for the center of the rectangle. |
| [getWidth()](#getWidth--) | Gets the width of the rectangle. |
| [setWidth(float value)](#setWidth-float-) | Sets the width of the rectangle. |
| [getHeight()](#getHeight--) | Gets the height of the rectangle. |
| [setHeight(float value)](#setHeight-float-) | Sets the height of the rectangle. |
| [getRadius()](#getRadius--) | Gets the radius of rounded rectangle corners. |
| [setRadius(float value)](#setRadius-float-) | Sets the radius of rounded rectangle corners. |
| [getAngle()](#getAngle--) | Gets the angle of rotation of the rectangle. |
| [setAngle(float value)](#setAngle-float-) | Sets the angle of rotation of the rectangle. |
| [toString()](#toString--) | Returns a String that represents this instance. |
| [equals(Object o)](#equals-java.lang.Object-) | Check if objects are equal. |
| [hashCode()](#hashCode--) | Get hash code of the current object. |
### CmxRectangleSpec() {#CmxRectangleSpec--}
```
public CmxRectangleSpec()
```


### getCenterX() {#getCenterX--}
```
public final float getCenterX()
```


Gets the X coordinate for the center of the rectangle. Measures in common document distance units.

**Returns:**
float - the X coordinate for the center of the rectangle.
### setCenterX(float value) {#setCenterX-float-}
```
public final void setCenterX(float value)
```


Sets the X coordinate for the center of the rectangle. Measures in common document distance units.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | the X coordinate for the center of the rectangle. |

### getCenterY() {#getCenterY--}
```
public final float getCenterY()
```


Gets the Y coordinate for the center of the rectangle. Measures in common document distance units.

**Returns:**
float - the Y coordinate for the center of the rectangle.
### setCenterY(float value) {#setCenterY-float-}
```
public final void setCenterY(float value)
```


Sets the Y coordinate for the center of the rectangle. Measures in common document distance units.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | the Y coordinate for the center of the rectangle. |

### getWidth() {#getWidth--}
```
public final float getWidth()
```


Gets the width of the rectangle. Measures in common document distance units.

**Returns:**
float - the width of the rectangle.
### setWidth(float value) {#setWidth-float-}
```
public final void setWidth(float value)
```


Sets the width of the rectangle. Measures in common document distance units.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | the width of the rectangle. |

### getHeight() {#getHeight--}
```
public final float getHeight()
```


Gets the height of the rectangle. Measures in common document distance units.

**Returns:**
float - the height of the rectangle.
### setHeight(float value) {#setHeight-float-}
```
public final void setHeight(float value)
```


Sets the height of the rectangle. Measures in common document distance units.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | the height of the rectangle. |

### getRadius() {#getRadius--}
```
public final float getRadius()
```


Gets the radius of rounded rectangle corners. If its value is `0` then the rectangle has not rounded corners. Measures in common document distance units.

**Returns:**
float - the radius of rounded rectangle corners.
### setRadius(float value) {#setRadius-float-}
```
public final void setRadius(float value)
```


Sets the radius of rounded rectangle corners. If its value is `0` then the rectangle has not rounded corners. Measures in common document distance units.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | the radius of rounded rectangle corners. |

### getAngle() {#getAngle--}
```
public final float getAngle()
```


Gets the angle of rotation of the rectangle. Measures in radians.

**Returns:**
float - the angle of rotation of the rectangle.
### setAngle(float value) {#setAngle-float-}
```
public final void setAngle(float value)
```


Sets the angle of rotation of the rectangle. Measures in radians.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | the angle of rotation of the rectangle. |

### toString() {#toString--}
```
public String toString()
```


Returns a String that represents this instance.

**Returns:**
java.lang.String - A String that represents this instance.
### equals(Object o) {#equals-java.lang.Object-}
```
public boolean equals(Object o)
```


Check if objects are equal.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| o | java.lang.Object | The other object. |

**Returns:**
boolean - The equality comparison result.
### hashCode() {#hashCode--}
```
public int hashCode()
```


Get hash code of the current object.

**Returns:**
int - The hash code.
