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

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

Public constructors

ShapePathModel

public ShapePathModel ()

Public methods

setAllCorners

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

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