# PathParser.PathDataNode

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/PathParser.java+class:androidx.core.graphics.PathParser.PathDataNode) Added in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

*** ** * ** ***


```
public class PathParser.PathDataNode
```

<br />

*** ** * ** ***

Each PathDataNode represents one command in the "d" attribute of the svg file. An array of PathDataNode can represent the whole "d" attribute.

## Summary

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html float[]` | `https://developer.android.com/reference/androidx/core/graphics/PathParser.PathDataNode#getParams()()` |
| `char` | `https://developer.android.com/reference/androidx/core/graphics/PathParser.PathDataNode#getType()()` |
| `void` | `https://developer.android.com/reference/androidx/core/graphics/PathParser.PathDataNode#interpolatePathDataNode(androidx.core.graphics.PathParser.PathDataNode,androidx.core.graphics.PathParser.PathDataNode,float)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/graphics/PathParser.PathDataNode nodeFrom, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/graphics/PathParser.PathDataNode nodeTo, float fraction )` The current PathDataNode will be interpolated between the `nodeFrom` and `nodeTo` according to the `fraction`. |

## Public methods

### getParams

Added in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
public @NonNull float[] getParams()
```

### getType

Added in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
public char getType()
```

### interpolatePathDataNode

Added in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
public void interpolatePathDataNode(
    @NonNull PathParser.PathDataNode nodeFrom,
    @NonNull PathParser.PathDataNode nodeTo,
    float fraction
)
```

The current PathDataNode will be interpolated between the `nodeFrom` and `nodeTo` according to the `fraction`.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/graphics/PathParser.PathDataNode nodeFrom` | The start value as a PathDataNode. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/graphics/PathParser.PathDataNode nodeTo` | The end value as a PathDataNode |
| `float fraction` | The fraction to interpolate. |