---
title: "CmxOutline"
url: "https://reference.aspose.com/imaging/java/com.aspose.imaging.fileformats.cmx.objectmodel.styles/cmxoutline/"
product: "Aspose.Imaging for Java API Reference"
description: "Represents an outline style."
---

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

Represents an outline style.
## Constructors

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

| Method | Description |
| --- | --- |
| [getLineType()](#getLineType--) | Gets the type of the line. |
| [setLineType(byte value)](#setLineType-byte-) | Sets the type of the line. |
| [getCapsType()](#getCapsType--) | Gets the type of the line caps. |
| [setCapsType(int value)](#setCapsType-int-) | Sets the type of the line caps. |
| [getJoinType()](#getJoinType--) | Gets the type of the line join. |
| [setJoinType(int value)](#setJoinType-int-) | Sets the type of the line join. |
| [getLineWidth()](#getLineWidth--) | Gets the width of the line. |
| [setLineWidth(float value)](#setLineWidth-float-) | Sets the width of the line. |
| [getStretch()](#getStretch--) | Gets the stretch value. |
| [setStretch(float value)](#setStretch-float-) | Sets the stretch value. |
| [getAngle()](#getAngle--) | Gets the angle. |
| [setAngle(double value)](#setAngle-double-) | Sets the angle. |
| [getColor()](#getColor--) | Gets the outline color. |
| [setColor(CmxColor value)](#setColor-com.aspose.imaging.fileformats.cmx.objectmodel.styles.CmxColor-) | Sets the outline color. |
| [getStroke()](#getStroke--) | Gets the stroke pattern. |
| [setStroke(int[] value)](#setStroke-int---) | Sets the stroke pattern. |
| [getStartArrowhead()](#getStartArrowhead--) | Gets the shape for the start of the line |
| [setStartArrowhead(CmxArrowSpec value)](#setStartArrowhead-com.aspose.imaging.fileformats.cmx.objectmodel.specs.CmxArrowSpec-) | Sets the shape for the start of the line |
| [getEndArrowhead()](#getEndArrowhead--) | Gets the shape for the end of the line |
| [setEndArrowhead(CmxArrowSpec value)](#setEndArrowhead-com.aspose.imaging.fileformats.cmx.objectmodel.specs.CmxArrowSpec-) | Sets the shape for the end of the line |
| [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. |
### CmxOutline() {#CmxOutline--}
```
public CmxOutline()
```


### getLineType() {#getLineType--}
```
public final byte getLineType()
```


Gets the type of the line.

**Returns:**
byte - the type of the line.
### setLineType(byte value) {#setLineType-byte-}
```
public final void setLineType(byte value)
```


Sets the type of the line.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | byte | the type of the line. |

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


Gets the type of the line caps.

**Returns:**
int - the type of the line caps.
### setCapsType(int value) {#setCapsType-int-}
```
public final void setCapsType(int value)
```


Sets the type of the line caps.

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

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


Gets the type of the line join.

**Returns:**
int - the type of the line join.
### setJoinType(int value) {#setJoinType-int-}
```
public final void setJoinType(int value)
```


Sets the type of the line join.

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

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


Gets the width of the line. Uses common document distance measure unit.

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


Sets the width of the line. Uses common document distance measure unit.

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

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


Gets the stretch value.

**Returns:**
float - the stretch value.
### setStretch(float value) {#setStretch-float-}
```
public final void setStretch(float value)
```


Sets the stretch value.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | the stretch value. |

### 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. |

### getColor() {#getColor--}
```
public final CmxColor getColor()
```


Gets the outline color.

**Returns:**
[CmxColor](../../com.aspose.imaging.fileformats.cmx.objectmodel.styles/cmxcolor) - the outline color.
### setColor(CmxColor value) {#setColor-com.aspose.imaging.fileformats.cmx.objectmodel.styles.CmxColor-}
```
public final void setColor(CmxColor value)
```


Sets the outline color.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [CmxColor](../../com.aspose.imaging.fileformats.cmx.objectmodel.styles/cmxcolor) | the outline color. |

### getStroke() {#getStroke--}
```
public final int[] getStroke()
```


Gets the stroke pattern.

**Returns:**
int[] - the stroke pattern.
### setStroke(int[] value) {#setStroke-int---}
```
public final void setStroke(int[] value)
```


Sets the stroke pattern.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int[] | the stroke pattern. |

### getStartArrowhead() {#getStartArrowhead--}
```
public final CmxArrowSpec getStartArrowhead()
```


Gets the shape for the start of the line

**Returns:**
[CmxArrowSpec](../../com.aspose.imaging.fileformats.cmx.objectmodel.specs/cmxarrowspec) - the shape for the start of the line
### setStartArrowhead(CmxArrowSpec value) {#setStartArrowhead-com.aspose.imaging.fileformats.cmx.objectmodel.specs.CmxArrowSpec-}
```
public final void setStartArrowhead(CmxArrowSpec value)
```


Sets the shape for the start of the line

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [CmxArrowSpec](../../com.aspose.imaging.fileformats.cmx.objectmodel.specs/cmxarrowspec) | the shape for the start of the line |

### getEndArrowhead() {#getEndArrowhead--}
```
public final CmxArrowSpec getEndArrowhead()
```


Gets the shape for the end of the line

**Returns:**
[CmxArrowSpec](../../com.aspose.imaging.fileformats.cmx.objectmodel.specs/cmxarrowspec) - the shape for the end of the line
### setEndArrowhead(CmxArrowSpec value) {#setEndArrowhead-com.aspose.imaging.fileformats.cmx.objectmodel.specs.CmxArrowSpec-}
```
public final void setEndArrowhead(CmxArrowSpec value)
```


Sets the shape for the end of the line

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [CmxArrowSpec](../../com.aspose.imaging.fileformats.cmx.objectmodel.specs/cmxarrowspec) | the shape for the end of the line |

### 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.
