**Inheritance:**
java.lang.Object
```
public class CdrGradient
```

The cdr gradient
## Constructors

| Constructor | Description |
| --- | --- |
| [CdrGradient()](#CdrGradient--) | Initializes a new instance of the [CdrGradient](../../com.aspose.imaging.fileformats.cdr.types/cdrgradient) class. |
## Methods

| Method | Description |
| --- | --- |
| [getType()](#getType--) | Gets the type. |
| [setType(int value)](#setType-int-) | Sets the type. |
| [getMode()](#getMode--) | Gets the mode. |
| [setMode(int value)](#setMode-int-) | Sets the mode. |
| [getAngle()](#getAngle--) | Gets the angle. |
| [setAngle(double value)](#setAngle-double-) | Sets the angle. |
| [getMidPoint()](#getMidPoint--) | Gets the midpoint. |
| [setMidPoint(double value)](#setMidPoint-double-) | Sets the midpoint. |
| [getEdgeOffset()](#getEdgeOffset--) | Gets the edge offset. |
| [setEdgeOffset(int value)](#setEdgeOffset-int-) | Sets the edge offset. |
| [getCenterXOffset()](#getCenterXOffset--) | Gets the center x offset. |
| [setCenterXOffset(int value)](#setCenterXOffset-int-) | Sets the center x offset. |
| [getCenterYOffset()](#getCenterYOffset--) | Gets the center y offset. |
| [setCenterYOffset(int value)](#setCenterYOffset-int-) | Sets the center y offset. |
| [getStops()](#getStops--) | Gets the stops. |
| [setStops(List<CdrGradientStop> value)](#setStops-java.util.List-com.aspose.imaging.fileformats.cdr.types.CdrGradientStop--) | Sets the stops. |
### CdrGradient() {#CdrGradient--}
```
public CdrGradient()
```


Initializes a new instance of the [CdrGradient](../../com.aspose.imaging.fileformats.cdr.types/cdrgradient) class.

### getType() {#getType--}
```
public final int getType()
```


Gets the type.

**Returns:**
int - the type.
### setType(int value) {#setType-int-}
```
public final void setType(int value)
```


Sets the type.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the type. |

### getMode() {#getMode--}
```
public final int getMode()
```


Gets the mode.

**Returns:**
int - the mode.
### setMode(int value) {#setMode-int-}
```
public final void setMode(int value)
```


Sets the mode.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the mode. |

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


Gets the angle.

**Returns:**
double - the angle.
### setAngle(double value) {#setAngle-double-}
```
public final void setAngle(double value)
```


Sets the angle.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | double | the angle. |

### getMidPoint() {#getMidPoint--}
```
public final double getMidPoint()
```


Gets the midpoint.

**Returns:**
double - the midpoint.
### setMidPoint(double value) {#setMidPoint-double-}
```
public final void setMidPoint(double value)
```


Sets the midpoint.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | double | the midpoint. |

### getEdgeOffset() {#getEdgeOffset--}
```
public final int getEdgeOffset()
```


Gets the edge offset.

**Returns:**
int - the edge offset.
### setEdgeOffset(int value) {#setEdgeOffset-int-}
```
public final void setEdgeOffset(int value)
```


Sets the edge offset.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the edge offset. |

### getCenterXOffset() {#getCenterXOffset--}
```
public final int getCenterXOffset()
```


Gets the center x offset.

**Returns:**
int - the center x offset.
### setCenterXOffset(int value) {#setCenterXOffset-int-}
```
public final void setCenterXOffset(int value)
```


Sets the center x offset.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the center x offset. |

### getCenterYOffset() {#getCenterYOffset--}
```
public final int getCenterYOffset()
```


Gets the center y offset.

**Returns:**
int - the center y offset.
### setCenterYOffset(int value) {#setCenterYOffset-int-}
```
public final void setCenterYOffset(int value)
```


Sets the center y offset.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the center y offset. |

### getStops() {#getStops--}
```
public final List<CdrGradientStop> getStops()
```


Gets the stops.

**Returns:**
java.util.List<com.aspose.imaging.fileformats.cdr.types.CdrGradientStop> - the stops.
### setStops(List<CdrGradientStop> value) {#setStops-java.util.List-com.aspose.imaging.fileformats.cdr.types.CdrGradientStop--}
```
public final void setStops(List<CdrGradientStop> value)
```


Sets the stops.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.util.List<com.aspose.imaging.fileformats.cdr.types.CdrGradientStop> | the stops. |

