ShapeAppearancePathProvider

public class ShapeAppearancePathProvider


A class to convert a ShapeAppearanceModel to a android.graphics.Path.

Summary

Constants

static final int
static final int
static final int
static final int

Public constructors

Public methods

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

Writes the given 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 ShapeAppearanceModel to path

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