Stay organized with collections
Save and categorize content based on your preferences.
ShapePath.PathOperation
public
static
abstract
class
ShapePath.PathOperation
extends Object
java.lang.Object
|
↳ |
com.google.android.material.shape.ShapePath.PathOperation
|
Interface for a path operation to be appended to the operations list.
Summary
Fields |
protected
final
Matrix |
matrix
A usable Matrix object for transformations.
|
Public methods |
abstract
void
|
applyToPath(Matrix transform, Path path)
Applies the given transform to the provided path .
|
Inherited methods |
From class
java.lang.Object
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()
|
|
Fields
matrix
protected final Matrix matrix
A usable Matrix
object for transformations.
Public constructors
PathOperation
public PathOperation ()
Public methods
applyToPath
public abstract void applyToPath (Matrix transform,
Path path)
Applies the given transform
to the provided path
.
Parameters |
transform |
Matrix |
path |
Path |
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,["# ShapePath.PathOperation\n\nSummary: [Fields](#lfields) \\| [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nShapePath.PathOperation\n=======================\n\n\n`\npublic\nstatic\n\nabstract\nclass\nShapePath.PathOperation\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.ShapePath.PathOperation |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known direct subclasses [ShapePath.PathArcOperation](/reference/com/google/android/material/shape/ShapePath.PathArcOperation), [ShapePath.PathCubicOperation](/reference/com/google/android/material/shape/ShapePath.PathCubicOperation), [ShapePath.PathLineOperation](/reference/com/google/android/material/shape/ShapePath.PathLineOperation), [ShapePath.PathQuadOperation](/reference/com/google/android/material/shape/ShapePath.PathQuadOperation) |-----------------------------------------------------------------------------------------------------------|--------------------------| | [ShapePath.PathArcOperation](/reference/com/google/android/material/shape/ShapePath.PathArcOperation) | Path arc operation. | | [ShapePath.PathCubicOperation](/reference/com/google/android/material/shape/ShapePath.PathCubicOperation) | Path cubic operation. | | [ShapePath.PathLineOperation](/reference/com/google/android/material/shape/ShapePath.PathLineOperation) | Straight line operation. | | [ShapePath.PathQuadOperation](/reference/com/google/android/material/shape/ShapePath.PathQuadOperation) | Path quad operation. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface for a path operation to be appended to the operations list.\n\nSummary\n-------\n\n| ### Fields ||\n|---------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` protected final Matrix` | [matrix](/reference/com/google/android/material/shape/ShapePath.PathOperation#matrix) A usable [Matrix](/reference/android/graphics/Matrix) object for transformations. |\n\n| ### Public constructors ||\n|---------------------------------------------------------------------------------------------------------------|---|\n| ` `[PathOperation](/reference/com/google/android/material/shape/ShapePath.PathOperation#PathOperation())`() ` |\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[applyToPath](/reference/com/google/android/material/shape/ShapePath.PathOperation#applyToPath(android.graphics.Matrix,%20android.graphics.Path))`(Matrix transform, Path path) ` Applies the given `transform` to the provided `path`. |\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\nFields\n------\n\n### matrix\n\n```\nprotected final Matrix matrix\n```\n\nA usable [Matrix](/reference/android/graphics/Matrix) object for transformations.\n\n\u003cbr /\u003e\n\nPublic constructors\n-------------------\n\n### PathOperation\n\n```\npublic PathOperation ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### applyToPath\n\n```\npublic abstract void applyToPath (Matrix transform, \n Path path)\n```\n\nApplies the given `transform` to the provided `path`.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|-----------------|\n| `transform` | `Matrix` \u003cbr /\u003e |\n| `path` | `Path` \u003cbr /\u003e |"]]