ShapeAppearancePathProvider
public
class
ShapeAppearancePathProvider
extends Object
java.lang.Object | |
↳ | com.google.android.material.shape.ShapeAppearancePathProvider |
A class to convert a ShapeAppearanceModel
to a Path
.
Summary
Nested classes | |
---|---|
interface |
ShapeAppearancePathProvider.PathListener
Listener called every time a |
Public constructors | |
---|---|
ShapeAppearancePathProvider()
|
Public methods | |
---|---|
void
|
calculatePath(ShapeAppearanceModel shapeAppearanceModel, float interpolation, RectF bounds, ShapeAppearancePathProvider.PathListener pathListener, Path path)
Writes the given |
void
|
calculatePath(ShapeAppearanceModel shapeAppearanceModel, float interpolation, RectF bounds, Path path)
Writes the given |
static
ShapeAppearancePathProvider
|
getInstance()
|
Inherited methods | |
---|---|
Public constructors
ShapeAppearancePathProvider
public ShapeAppearancePathProvider ()
Public methods
calculatePath
public void calculatePath (ShapeAppearanceModel shapeAppearanceModel, float interpolation, RectF bounds, ShapeAppearancePathProvider.PathListener pathListener, Path path)
Writes the given ShapeAppearanceModel
to path
Parameters | |
---|---|
shapeAppearanceModel |
ShapeAppearanceModel : The shape to be applied in the path. |
interpolation |
float : the desired interpolation. |
bounds |
RectF : the desired bounds for the path. |
pathListener |
ShapeAppearancePathProvider.PathListener : the path |
path |
Path : the returned path out-var.
|
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. |
interpolation |
float : the desired interpolation. |
bounds |
RectF : the desired bounds for the path. |
path |
Path : the returned path out-var.
|
getInstance
public static ShapeAppearancePathProvider getInstance ()
Returns | |
---|---|
ShapeAppearancePathProvider |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ShapeAppearancePathProvider\n\nSummary: [Nested Classes](#nestedclasses) \\| [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nShapeAppearancePathProvider\n===========================\n\n\n`\npublic\n\n\nclass\nShapeAppearancePathProvider\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|---------------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.google.android.material.shape.ShapeAppearancePathProvider |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA class to convert a [ShapeAppearanceModel](/reference/com/google/android/material/shape/ShapeAppearanceModel) to a [Path](/reference/android/graphics/Path).\n\nSummary\n-------\n\n| ### Nested classes ||\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` interface` | [ShapeAppearancePathProvider.PathListener](/reference/com/google/android/material/shape/ShapeAppearancePathProvider.PathListener) Listener called every time a [ShapePath](/reference/com/google/android/material/shape/ShapePath) is created for a corner or an edge treatment. |\n\n| ### Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[ShapeAppearancePathProvider](/reference/com/google/android/material/shape/ShapeAppearancePathProvider#ShapeAppearancePathProvider())`() ` |\n\n| ### Public methods ||\n|-------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` void` | ` `[calculatePath](/reference/com/google/android/material/shape/ShapeAppearancePathProvider#calculatePath(com.google.android.material.shape.ShapeAppearanceModel,%20float,%20android.graphics.RectF,%20com.google.android.material.shape.ShapeAppearancePathProvider.PathListener,%20android.graphics.Path))`(`[ShapeAppearanceModel](/reference/com/google/android/material/shape/ShapeAppearanceModel)` shapeAppearanceModel, float interpolation, RectF bounds, `[ShapeAppearancePathProvider.PathListener](/reference/com/google/android/material/shape/ShapeAppearancePathProvider.PathListener)` pathListener, Path path) ` Writes the given [ShapeAppearanceModel](/reference/com/google/android/material/shape/ShapeAppearanceModel) to `path` |\n| ` void` | ` `[calculatePath](/reference/com/google/android/material/shape/ShapeAppearancePathProvider#calculatePath(com.google.android.material.shape.ShapeAppearanceModel,%20float,%20android.graphics.RectF,%20android.graphics.Path))`(`[ShapeAppearanceModel](/reference/com/google/android/material/shape/ShapeAppearanceModel)` shapeAppearanceModel, float interpolation, RectF bounds, Path path) ` Writes the given [ShapeAppearanceModel](/reference/com/google/android/material/shape/ShapeAppearanceModel) to `path` |\n| ` static `[ShapeAppearancePathProvider](/reference/com/google/android/material/shape/ShapeAppearancePathProvider) | ` `[getInstance](/reference/com/google/android/material/shape/ShapeAppearancePathProvider#getInstance())`() ` |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` 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() ` | ||\n\nPublic constructors\n-------------------\n\n### ShapeAppearancePathProvider\n\n```\npublic ShapeAppearancePathProvider ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### calculatePath\n\n```\npublic void calculatePath (ShapeAppearanceModel shapeAppearanceModel, \n float interpolation, \n RectF bounds, \n ShapeAppearancePathProvider.PathListener pathListener, \n Path path)\n```\n\nWrites the given [ShapeAppearanceModel](/reference/com/google/android/material/shape/ShapeAppearanceModel) to `path`\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------------------|---------------------------------------------------------------------|\n| `shapeAppearanceModel` | `ShapeAppearanceModel`: The shape to be applied in the path. \u003cbr /\u003e |\n| `interpolation` | `float`: the desired interpolation. \u003cbr /\u003e |\n| `bounds` | `RectF`: the desired bounds for the path. \u003cbr /\u003e |\n| `pathListener` | `ShapeAppearancePathProvider.PathListener`: the path \u003cbr /\u003e |\n| `path` | `Path`: the returned path out-var. \u003cbr /\u003e |\n\n### calculatePath\n\n```\npublic void calculatePath (ShapeAppearanceModel shapeAppearanceModel, \n float interpolation, \n RectF bounds, \n Path path)\n```\n\nWrites the given [ShapeAppearanceModel](/reference/com/google/android/material/shape/ShapeAppearanceModel) to `path`\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------------------|---------------------------------------------------------------------|\n| `shapeAppearanceModel` | `ShapeAppearanceModel`: The shape to be applied in the path. \u003cbr /\u003e |\n| `interpolation` | `float`: the desired interpolation. \u003cbr /\u003e |\n| `bounds` | `RectF`: the desired bounds for the path. \u003cbr /\u003e |\n| `path` | `Path`: the returned path out-var. \u003cbr /\u003e |\n\n### getInstance\n\n```\npublic static ShapeAppearancePathProvider getInstance ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------------------------------------------------------------------------|--------|\n| [ShapeAppearancePathProvider](/reference/com/google/android/material/shape/ShapeAppearancePathProvider) | \u003cbr /\u003e |"]]