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 static final CornerSize PILL

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

static ShapeAppearanceModel.Builder builder(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes, CornerSize defaultCornerSize)
static ShapeAppearanceModel.Builder builder(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes, int defaultCornerSize)
static ShapeAppearanceModel.Builder builder(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
static ShapeAppearanceModel.Builder builder(Context context, int shapeAppearanceResId, int shapeAppearanceOverlayResId)
static ShapeAppearanceModel.Builder builder()
EdgeTreatment getBottomEdge()

Gets the edge treatment for the bottom edge.

CornerTreatment getBottomLeftCorner()

Gets the corner treatment for the bottom left corner.

CornerSize getBottomLeftCornerSize()

Gets the corner size for the bottom left corner.

CornerTreatment getBottomRightCorner()

Gets the corner treatment for the bottom right corner.

CornerSize getBottomRightCornerSize()

Gets the corner size for the bottom right corner.

EdgeTreatment getLeftEdge()

Gets the edge treatment for the left edge.

EdgeTreatment getRightEdge()

Gets the edge treatment for the right edge.

EdgeTreatment getTopEdge()

Gets the edge treatment for the top edge.

CornerTreatment getTopLeftCorner()

Gets the corner treatment for the top left corner.

CornerSize getTopLeftCornerSize()

Gets the corner size for the top left corner.

CornerTreatment getTopRightCorner()

Gets the corner treatment for the top right corner.

CornerSize getTopRightCornerSize()

Gets the corner size for the top right corner.

ShapeAppearanceModel.Builder toBuilder()

Returns a builder with the edges and corners from this ShapeAppearanceModel

ShapeAppearanceModel withCornerSize(float cornerSize)

Returns a copy of this ShapeAppearanceModel with the same edges and corners, but with the corner size for all corners updated.

ShapeAppearanceModel withCornerSize(CornerSize cornerSize)
Object clone()
boolean equals(Object arg0)
void finalize()
final Class<?> getClass()
int hashCode()
final void notify()
final void notifyAll()
String toString()
final void wait(long arg0, int arg1)
final void wait(long arg0)
final void wait()

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.