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

Represents the colored stroke.
## Constructors

| Constructor | Description |
| --- | --- |
| [ColoredStroke(Color color)](#ColoredStroke-java.awt.Color-) | Creates a new instance. |
| [ColoredStroke(Color color, float width)](#ColoredStroke-java.awt.Color-float-) | Creates a new instance. |
| [ColoredStroke(Color color, float width, int startCap, int endCap, int join)](#ColoredStroke-java.awt.Color-float-int-int-int-) | Creates a new instance. |
## Methods

| Method | Description |
| --- | --- |
| [getColor()](#getColor--) | Gets the color. |
| [setColor(Color value)](#setColor-java.awt.Color-) | Sets the color. |
| [getLineWidth()](#getLineWidth--) | Gets the line width. |
| [setLineWidth(float value)](#setLineWidth-float-) | Sets the line width. |
| [getLineJoin()](#getLineJoin--) | Gets the line join. |
| [setLineJoin(int value)](#setLineJoin-int-) | Sets the line join. |
| [getMiterLimit()](#getMiterLimit--) | Gets the miter limit. |
| [setMiterLimit(float value)](#setMiterLimit-float-) | Sets the miter limit. |
| [getStartCap()](#getStartCap--) | Gets the line start cap. |
| [setStartCap(int value)](#setStartCap-int-) | Sets the line start cap. |
| [getEndCap()](#getEndCap--) | Gets the line end cap. |
| [setEndCap(int value)](#setEndCap-int-) | Sets the line end cap. |
| [getDashPattern()](#getDashPattern--) | Gets the dash pattern. |
| [setDashPattern(float[] value)](#setDashPattern-float---) | Sets the dash pattern. |
| [getDashOffset()](#getDashOffset--) | Gets the dash offset (phase). |
| [setDashOffset(float value)](#setDashOffset-float-) | Sets the dash offset (phase). |
| [getDashCap()](#getDashCap--) | Gets the dash cap. |
| [setDashCap(int value)](#setDashCap-int-) | Sets the dash cap. |
### ColoredStroke(Color color) {#ColoredStroke-java.awt.Color-}
```
public ColoredStroke(Color color)
```


Creates a new instance.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| color | java.awt.Color | The color. |

### ColoredStroke(Color color, float width) {#ColoredStroke-java.awt.Color-float-}
```
public ColoredStroke(Color color, float width)
```


Creates a new instance.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| color | java.awt.Color | The color. |
| width | float | The line width. |

### ColoredStroke(Color color, float width, int startCap, int endCap, int join) {#ColoredStroke-java.awt.Color-float-int-int-int-}
```
public ColoredStroke(Color color, float width, int startCap, int endCap, int join)
```


Creates a new instance.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| color | java.awt.Color | The color. |
| width | float | The line width. |
| startCap | int | The line start cap. |
| endCap | int | The line end cap. |
| join | int | The line join. |

### getColor() {#getColor--}
```
public Color getColor()
```


Gets the color.

**Returns:**
java.awt.Color - The color.
### setColor(Color value) {#setColor-java.awt.Color-}
```
public void setColor(Color value)
```


Sets the color.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.awt.Color | The color. |

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


Gets the line width.

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


Sets the line width.

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

### getLineJoin() {#getLineJoin--}
```
public int getLineJoin()
```


Gets the line join.

**Returns:**
int - The line join.
### setLineJoin(int value) {#setLineJoin-int-}
```
public void setLineJoin(int value)
```


Sets the line join.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | The line join. |

### getMiterLimit() {#getMiterLimit--}
```
public float getMiterLimit()
```


Gets the miter limit.

**Returns:**
float - The miter limit.
### setMiterLimit(float value) {#setMiterLimit-float-}
```
public void setMiterLimit(float value)
```


Sets the miter limit.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | The miter limit. |

### getStartCap() {#getStartCap--}
```
public int getStartCap()
```


Gets the line start cap.

**Returns:**
int - The line start cap.
### setStartCap(int value) {#setStartCap-int-}
```
public void setStartCap(int value)
```


Sets the line start cap.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | The line start cap. |

### getEndCap() {#getEndCap--}
```
public int getEndCap()
```


Gets the line end cap.

**Returns:**
int - The line end cap.
### setEndCap(int value) {#setEndCap-int-}
```
public void setEndCap(int value)
```


Sets the line end cap.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | The line end cap. |

### getDashPattern() {#getDashPattern--}
```
public float[] getDashPattern()
```


Gets the dash pattern.

**Returns:**
float[] - The dash pattern.
### setDashPattern(float[] value) {#setDashPattern-float---}
```
public void setDashPattern(float[] value)
```


Sets the dash pattern.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float[] | The dash pattern. |

### getDashOffset() {#getDashOffset--}
```
public float getDashOffset()
```


Gets the dash offset (phase).

**Returns:**
float - The dash offset (phase).
### setDashOffset(float value) {#setDashOffset-float-}
```
public void setDashOffset(float value)
```


Sets the dash offset (phase).

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | The dash offset (phase). |

### getDashCap() {#getDashCap--}
```
public int getDashCap()
```


Gets the dash cap.

**Returns:**
int - The dash cap.
### setDashCap(int value) {#setDashCap-int-}
```
public void setDashCap(int value)
```


Sets the dash cap.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | The dash cap. |

