# ShapeAppearancePathProvider

[View Source](https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/shape/ShapeAppearancePathProvider.java)

*** ** * ** ***


```
public class ShapeAppearancePathProvider
```

<br />

*** ** * ** ***

A class to convert a `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` to a android.graphics.Path.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearancePathProvider#BOTTOM_LEFT_CORNER_INDEX() = 2` |
| `static final int` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearancePathProvider#BOTTOM_RIGHT_CORNER_INDEX() = 1` |
| `static final int` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearancePathProvider#TOP_LEFT_CORNER_INDEX() = 3` |
| `static final int` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearancePathProvider#TOP_RIGHT_CORNER_INDEX() = 0` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearancePathProvider#ShapeAppearancePathProvider()()` |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearancePathProvider#calculatePath(com.google.android.material.shape.ShapeAppearanceModel,float,RectF,Path)( https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel shapeAppearanceModel, float interpolation, RectF bounds, Path path )` Writes the given `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` to `path` |

## Constants

### BOTTOM_LEFT_CORNER_INDEX

```
protected static final int BOTTOM_LEFT_CORNER_INDEX = 2
```

### BOTTOM_RIGHT_CORNER_INDEX

```
protected static final int BOTTOM_RIGHT_CORNER_INDEX = 1
```

### TOP_LEFT_CORNER_INDEX

```
protected static final int TOP_LEFT_CORNER_INDEX = 3
```

### TOP_RIGHT_CORNER_INDEX

```
protected static final int TOP_RIGHT_CORNER_INDEX = 0
```

## Public constructors

### ShapeAppearancePathProvider

```
public ShapeAppearancePathProvider()
```

## Public methods

### calculatePath

```
public void calculatePath(
    ShapeAppearanceModel shapeAppearanceModel,
    float interpolation,
    RectF bounds,
    Path path
)
```

Writes the given `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` to `path`

| Parameters |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel shapeAppearanceModel` | The shape to be applied in the path. |
| `float interpolation` | the desired interpolation. |
| `RectF bounds` | the desired bounds for the path. |
| `Path path` | the returned path out-var. |