ShapePathModel

public class ShapePathModel
extends ShapeAppearanceModel

java.lang.Object
   ↳ com.google.android.material.shape.ShapeAppearanceModel
     ↳ com.google.android.material.shape.ShapePathModel


This class is deprecated.
Use ShapeAppearanceModel instead.

This class models the edges and corners of a shape, which are used by MaterialShapeDrawable to generate and render the shape for a view's background.

Summary

Inherited fields

From class com.google.android.material.shape.ShapeAppearanceModel

Public constructors

ShapePathModel()

Public methods

void setAllCorners(CornerTreatment cornerTreatment)

This method is deprecated. Use ShapeAppearanceModel instead.

void setAllEdges(EdgeTreatment edgeTreatment)

This method is deprecated. Use ShapeAppearanceModel instead.

void setBottomEdge(EdgeTreatment bottomEdge)

This method is deprecated. Use ShapeAppearanceModel instead.

void setBottomLeftCorner(CornerTreatment bottomLeftCorner)

This method is deprecated. Use ShapeAppearanceModel instead.

void setBottomRightCorner(CornerTreatment bottomRightCorner)

This method is deprecated. Use ShapeAppearanceModel instead.

void setCornerTreatments(CornerTreatment topLeftCorner, CornerTreatment topRightCorner, CornerTreatment bottomRightCorner, CornerTreatment bottomLeftCorner)

This method is deprecated. Use ShapeAppearanceModel instead.

void setEdgeTreatments(EdgeTreatment leftEdge, EdgeTreatment topEdge, EdgeTreatment rightEdge, EdgeTreatment bottomEdge)

This method is deprecated. Use ShapeAppearanceModel instead.

void setLeftEdge(EdgeTreatment leftEdge)

This method is deprecated. Use ShapeAppearanceModel instead.

void setRightEdge(EdgeTreatment rightEdge)

This method is deprecated. Use ShapeAppearanceModel instead.

void setTopEdge(EdgeTreatment topEdge)

This method is deprecated. Use ShapeAppearanceModel instead.

void setTopLeftCorner(CornerTreatment topLeftCorner)

This method is deprecated. Use ShapeAppearanceModel instead.

void setTopRightCorner(CornerTreatment topRightCorner)

This method is deprecated. Use ShapeAppearanceModel instead.

Inherited methods

From class com.google.android.material.shape.ShapeAppearanceModel
From class java.lang.Object

Public constructors

ShapePathModel

ShapePathModel ()

Public methods

setAllCorners

void setAllCorners (CornerTreatment cornerTreatment)

This method is deprecated.
Use ShapeAppearanceModel instead.

Set all corner treatments.

Parameters
cornerTreatment CornerTreatment: the corner treatment to use in all four corners.

setAllEdges

void setAllEdges (EdgeTreatment edgeTreatment)

This method is deprecated.
Use ShapeAppearanceModel instead.

Set all edge treatments.

Parameters
edgeTreatment EdgeTreatment: the edge treatment to use for all four edges.

setBottomEdge

void setBottomEdge (EdgeTreatment bottomEdge)

This method is deprecated.
Use ShapeAppearanceModel instead.

Set the edge treatment for the bottom edge.

Parameters
bottomEdge EdgeTreatment: the desired treatment.

setBottomLeftCorner

void setBottomLeftCorner (CornerTreatment bottomLeftCorner)

This method is deprecated.
Use ShapeAppearanceModel instead.

Set the corner treatment for the bottom-left corner.

Parameters
bottomLeftCorner CornerTreatment: the desired treatment.

setBottomRightCorner

void setBottomRightCorner (CornerTreatment bottomRightCorner)

This method is deprecated.
Use ShapeAppearanceModel instead.

Set the corner treatment for the bottom-right corner.

Parameters
bottomRightCorner CornerTreatment: the desired treatment.

setCornerTreatments

void setCornerTreatments (CornerTreatment topLeftCorner, 
                CornerTreatment topRightCorner, 
                CornerTreatment bottomRightCorner, 
                CornerTreatment bottomLeftCorner)

This method is deprecated.
Use ShapeAppearanceModel instead.

Set corner treatments.

Parameters
topLeftCorner CornerTreatment: the corner treatment to use in the top-left corner.

topRightCorner CornerTreatment: the corner treatment to use in the top-right corner.

bottomRightCorner CornerTreatment: the corner treatment to use in the bottom-right corner.

bottomLeftCorner CornerTreatment: the corner treatment to use in the bottom-left corner.

setEdgeTreatments

void setEdgeTreatments (EdgeTreatment leftEdge, 
                EdgeTreatment topEdge, 
                EdgeTreatment rightEdge, 
                EdgeTreatment bottomEdge)

This method is deprecated.
Use ShapeAppearanceModel instead.

Set edge treatments.

Parameters
leftEdge EdgeTreatment: the edge treatment to use on the left edge.

topEdge EdgeTreatment: the edge treatment to use on the top edge.

rightEdge EdgeTreatment: the edge treatment to use on the right edge.

bottomEdge EdgeTreatment: the edge treatment to use on the bottom edge.

setLeftEdge

void setLeftEdge (EdgeTreatment leftEdge)

This method is deprecated.
Use ShapeAppearanceModel instead.

Set the edge treatment for the left edge.

Parameters
leftEdge EdgeTreatment: the desired treatment.

setRightEdge

void setRightEdge (EdgeTreatment rightEdge)

This method is deprecated.
Use ShapeAppearanceModel instead.

Set the edge treatment for the right edge.

Parameters
rightEdge EdgeTreatment: the desired treatment.

setTopEdge

void setTopEdge (EdgeTreatment topEdge)

This method is deprecated.
Use ShapeAppearanceModel instead.

Set the edge treatment for the top edge.

Parameters
topEdge EdgeTreatment: the desired treatment.

setTopLeftCorner

void setTopLeftCorner (CornerTreatment topLeftCorner)

This method is deprecated.
Use ShapeAppearanceModel instead.

Set the corner treatment for the top-left corner.

Parameters
topLeftCorner CornerTreatment: the desired treatment.

setTopRightCorner

void setTopRightCorner (CornerTreatment topRightCorner)

This method is deprecated.
Use ShapeAppearanceModel instead.

Set the corner treatment for the top-right corner.

Parameters
topRightCorner CornerTreatment: the desired treatment.