# ShapePathModel

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

*** ** * ** ***


```
public class ShapePathModel extends ShapeAppearanceModel
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [com.google.android.material.shape.ShapeAppearanceModel](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel) ||
|   | ↳ | [com.google.android.material.shape.ShapePathModel](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel) |

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead.

This class models the edges and corners of a shape, which are used by `https://developer.android.com/reference/com/google/android/material/shape/MaterialShapeDrawable` to generate and render the shape for a view's background.

## Summary

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

| ### Public methods |
|---|---|
| `void` | `[setAllCorners](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setAllCorners(com.google.android.material.shape.CornerTreatment))(https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment cornerTreatment)` **This method is deprecated.** Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead. <br /> |
| `void` | `[setAllEdges](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setAllEdges(com.google.android.material.shape.EdgeTreatment))(https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment edgeTreatment)` **This method is deprecated.** Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead. <br /> |
| `void` | `[setBottomEdge](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setBottomEdge(com.google.android.material.shape.EdgeTreatment))(https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment bottomEdge)` **This method is deprecated.** Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead. <br /> |
| `void` | `[setBottomLeftCorner](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setBottomLeftCorner(com.google.android.material.shape.CornerTreatment))(https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment bottomLeftCorner)` **This method is deprecated.** Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead. <br /> |
| `void` | `[setBottomRightCorner](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setBottomRightCorner(com.google.android.material.shape.CornerTreatment))(https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment bottomRightCorner)` **This method is deprecated.** Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead. <br /> |
| `void` | `[setCornerTreatments](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setCornerTreatments(com.google.android.material.shape.CornerTreatment,com.google.android.material.shape.CornerTreatment,com.google.android.material.shape.CornerTreatment,com.google.android.material.shape.CornerTreatment))( https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment topLeftCorner, https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment topRightCorner, https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment bottomRightCorner, https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment bottomLeftCorner )` **This method is deprecated.** Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead. <br /> |
| `void` | `[setEdgeTreatments](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setEdgeTreatments(com.google.android.material.shape.EdgeTreatment,com.google.android.material.shape.EdgeTreatment,com.google.android.material.shape.EdgeTreatment,com.google.android.material.shape.EdgeTreatment))( https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment leftEdge, https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment topEdge, https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment rightEdge, https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment bottomEdge )` **This method is deprecated.** Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead. <br /> |
| `void` | `[setLeftEdge](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setLeftEdge(com.google.android.material.shape.EdgeTreatment))(https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment leftEdge)` **This method is deprecated.** Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead. <br /> |
| `void` | `[setRightEdge](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setRightEdge(com.google.android.material.shape.EdgeTreatment))(https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment rightEdge)` **This method is deprecated.** Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead. <br /> |
| `void` | `[setTopEdge](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setTopEdge(com.google.android.material.shape.EdgeTreatment))(https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment topEdge)` **This method is deprecated.** Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead. <br /> |
| `void` | `[setTopLeftCorner](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setTopLeftCorner(com.google.android.material.shape.CornerTreatment))(https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment topLeftCorner)` **This method is deprecated.** Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead. <br /> |
| `void` | `[setTopRightCorner](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setTopRightCorner(com.google.android.material.shape.CornerTreatment))(https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment topRightCorner)` **This method is deprecated.** Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead. <br /> |

| ### Inherited Constants |
|---|
| From [com.google.android.material.shape.ShapeAppearanceModel](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel) |---|---| | `static final int` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#CORNER_BOTTOM_LEFT() = 4` Flag representing bottom left corner of the shape. | | `static final int` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#CORNER_BOTTOM_RIGHT() = 8` Flag representing bottom right corner of the shape. | | `static final int` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#CORNER_TOP_LEFT() = 1` Flag representing top left corner of the shape. | | `static final int` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#CORNER_TOP_RIGHT() = 2` Flag representing top right corner of the shape. | | `static final int` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#NUM_CORNERS() = 4` | | `static final https://developer.android.com/reference/com/google/android/material/shape/CornerSize` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#PILL()` | |

| ### Inherited fields |
|---|
| From [com.google.android.material.shape.ShapeAppearanceModel](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel) |---|---| | `https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#bottomEdge()` | | `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#bottomLeftCorner()` | | `https://developer.android.com/reference/com/google/android/material/shape/CornerSize` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#bottomLeftCornerSize()` | | `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#bottomRightCorner()` | | `https://developer.android.com/reference/com/google/android/material/shape/CornerSize` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#bottomRightCornerSize()` | | `https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#leftEdge()` | | `https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#rightEdge()` | | `https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#topEdge()` | | `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#topLeftCorner()` | | `https://developer.android.com/reference/com/google/android/material/shape/CornerSize` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#topLeftCornerSize()` | | `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#topRightCorner()` | | `https://developer.android.com/reference/com/google/android/material/shape/CornerSize` | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#topRightCornerSize()` | |

| ### Inherited methods |
|---|
| From [com.google.android.material.shape.ShapeAppearanceModel](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel) |---|---| | `static https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel.Builder` | `[builder](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#builder())()` | | `static https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel.Builder` | `[builder](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#builder(Theme,int))(Theme theme, int shapeAppearanceResId)` This builder only takes in a single shape appearance, no shape appearance overlay. | | `static https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel.Builder` | `[builder](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#builder(Context,int,int))( Context context, int shapeAppearanceResId, int shapeAppearanceOverlayResId )` | | `static https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel.Builder` | `[builder](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#builder(Context,AttributeSet,int,int))( Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes )` | | `static https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel.Builder` | `[builder](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#builder(Context,AttributeSet,int,int,com.google.android.material.shape.CornerSize))( Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes, https://developer.android.com/reference/com/google/android/material/shape/CornerSize defaultCornerSize )` | | `static https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel.Builder` | `[builder](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#builder(Context,AttributeSet,int,int,int))( Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes, int defaultCornerSize )` | | `https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment` | `[getBottomEdge](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#getBottomEdge())()` Gets the edge treatment for the bottom edge. | | `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment` | `[getBottomLeftCorner](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#getBottomLeftCorner())()` Gets the corner treatment for the bottom left corner. | | `https://developer.android.com/reference/com/google/android/material/shape/CornerSize` | `[getBottomLeftCornerSize](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#getBottomLeftCornerSize())()` Gets the corner size for the bottom left corner. | | `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment` | `[getBottomRightCorner](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#getBottomRightCorner())()` Gets the corner treatment for the bottom right corner. | | `https://developer.android.com/reference/com/google/android/material/shape/CornerSize` | `[getBottomRightCornerSize](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#getBottomRightCornerSize())()` Gets the corner size for the bottom right corner. | | `static https://developer.android.com/reference/com/google/android/material/shape/CornerSize` | `[getCornerSize](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#getCornerSize(TypedArray,int,com.google.android.material.shape.CornerSize))(TypedArray a, int index, https://developer.android.com/reference/com/google/android/material/shape/CornerSize defaultValue)` | | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` | `[getDefaultShape](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#getDefaultShape())()` Returns the shape as a `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` of the ShapeAppearance, or the default shape if there are multiple shapes for different states. | | `https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment` | `[getLeftEdge](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#getLeftEdge())()` Gets the edge treatment for the left edge. | | `https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment` | `[getRightEdge](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#getRightEdge())()` Gets the edge treatment for the right edge. | | `ShapeAppearanceModel[]` | `[getShapeAppearanceModels](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#getShapeAppearanceModels())()` Returns a list of the `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` of all states. | | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` | `[getShapeForState](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#getShapeForState(int[]))(int[] stateSet)` Returns a `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` for the given state set. | | `https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment` | `[getTopEdge](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#getTopEdge())()` Gets the edge treatment for the top edge. | | `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment` | `[getTopLeftCorner](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#getTopLeftCorner())()` Gets the corner treatment for the top left corner. | | `https://developer.android.com/reference/com/google/android/material/shape/CornerSize` | `[getTopLeftCornerSize](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#getTopLeftCornerSize())()` Gets the corner size for the top left corner. | | `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment` | `[getTopRightCorner](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#getTopRightCorner())()` Gets the corner treatment for the top right corner. | | `https://developer.android.com/reference/com/google/android/material/shape/CornerSize` | `[getTopRightCornerSize](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#getTopRightCornerSize())()` Gets the corner size for the top right corner. | | `boolean` | `[isStateful](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#isStateful())()` Whether or not the ShapeAppearance provides different shapes for states. | | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel.Builder` | `[toBuilder](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#toBuilder())()` Returns a builder with the edges and corners from this `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` | | `https://developer.android.com/reference/java/lang/String` | `[toString](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#toString())()` | | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` | `[withCornerSize](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#withCornerSize(com.google.android.material.shape.CornerSize))(https://developer.android.com/reference/com/google/android/material/shape/CornerSize cornerSize)` Returns a new `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` with the same edges and corners as the default shape, but with the corner size for all corners updated. | | `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` | `[withCornerSize](https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel#withCornerSize(float))(float cornerSize)` Returns a copy of this `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` with the same edges and corners, but with the corner size for all corners updated. | |

## Public constructors

### ShapePathModel

```
public [ShapePathModel](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#ShapePathModel())()
```

## Public methods

### setAllCorners

```
public void [setAllCorners](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setAllCorners(com.google.android.material.shape.CornerTreatment))(CornerTreatment cornerTreatment)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead.

Set all corner treatments.

| Parameters |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment cornerTreatment` | the corner treatment to use in all four corners. |

### setAllEdges

```
public void [setAllEdges](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setAllEdges(com.google.android.material.shape.EdgeTreatment))(EdgeTreatment edgeTreatment)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead.

Set all edge treatments.

| Parameters |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment edgeTreatment` | the edge treatment to use for all four edges. |

### setBottomEdge

```
public void [setBottomEdge](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setBottomEdge(com.google.android.material.shape.EdgeTreatment))(EdgeTreatment bottomEdge)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead.

Set the edge treatment for the bottom edge.

| Parameters |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment bottomEdge` | the desired treatment. |

### setBottomLeftCorner

```
public void [setBottomLeftCorner](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setBottomLeftCorner(com.google.android.material.shape.CornerTreatment))(CornerTreatment bottomLeftCorner)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead.

Set the corner treatment for the bottom-left corner.

| Parameters |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment bottomLeftCorner` | the desired treatment. |

### setBottomRightCorner

```
public void [setBottomRightCorner](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setBottomRightCorner(com.google.android.material.shape.CornerTreatment))(CornerTreatment bottomRightCorner)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead.

Set the corner treatment for the bottom-right corner.

| Parameters |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment bottomRightCorner` | the desired treatment. |

### setCornerTreatments

```
public void [setCornerTreatments](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setCornerTreatments(com.google.android.material.shape.CornerTreatment,com.google.android.material.shape.CornerTreatment,com.google.android.material.shape.CornerTreatment,com.google.android.material.shape.CornerTreatment))(
    CornerTreatment topLeftCorner,
    CornerTreatment topRightCorner,
    CornerTreatment bottomRightCorner,
    CornerTreatment bottomLeftCorner
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead.

Set corner treatments.

| Parameters |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment topLeftCorner` | the corner treatment to use in the top-left corner. |
| `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment topRightCorner` | the corner treatment to use in the top-right corner. |
| `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment bottomRightCorner` | the corner treatment to use in the bottom-right corner. |
| `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment bottomLeftCorner` | the corner treatment to use in the bottom-left corner. |

### setEdgeTreatments

```
public void [setEdgeTreatments](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setEdgeTreatments(com.google.android.material.shape.EdgeTreatment,com.google.android.material.shape.EdgeTreatment,com.google.android.material.shape.EdgeTreatment,com.google.android.material.shape.EdgeTreatment))(
    EdgeTreatment leftEdge,
    EdgeTreatment topEdge,
    EdgeTreatment rightEdge,
    EdgeTreatment bottomEdge
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead.

Set edge treatments.

| Parameters |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment leftEdge` | the edge treatment to use on the left edge. |
| `https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment topEdge` | the edge treatment to use on the top edge. |
| `https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment rightEdge` | the edge treatment to use on the right edge. |
| `https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment bottomEdge` | the edge treatment to use on the bottom edge. |

### setLeftEdge

```
public void [setLeftEdge](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setLeftEdge(com.google.android.material.shape.EdgeTreatment))(EdgeTreatment leftEdge)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead.

Set the edge treatment for the left edge.

| Parameters |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment leftEdge` | the desired treatment. |

### setRightEdge

```
public void [setRightEdge](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setRightEdge(com.google.android.material.shape.EdgeTreatment))(EdgeTreatment rightEdge)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead.

Set the edge treatment for the right edge.

| Parameters |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment rightEdge` | the desired treatment. |

### setTopEdge

```
public void [setTopEdge](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setTopEdge(com.google.android.material.shape.EdgeTreatment))(EdgeTreatment topEdge)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead.

Set the edge treatment for the top edge.

| Parameters |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/shape/EdgeTreatment topEdge` | the desired treatment. |

### setTopLeftCorner

```
public void [setTopLeftCorner](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setTopLeftCorner(com.google.android.material.shape.CornerTreatment))(CornerTreatment topLeftCorner)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead.

Set the corner treatment for the top-left corner.

| Parameters |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment topLeftCorner` | the desired treatment. |

### setTopRightCorner

```
public void [setTopRightCorner](https://developer.android.com/reference/com/google/android/material/shape/ShapePathModel#setTopRightCorner(com.google.android.material.shape.CornerTreatment))(CornerTreatment topRightCorner)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/com/google/android/material/shape/ShapeAppearanceModel` instead.

Set the corner treatment for the top-right corner.

| Parameters |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment topRightCorner` | the desired treatment. |