public class

PathParser.PathDataNode

extends java.lang.Object

 java.lang.Object

↳androidx.core.graphics.PathParser.PathDataNode

Overview

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

Summary

Methods
public float[]getParams()

public chargetType()

public voidinterpolatePathDataNode(PathParser.PathDataNode nodeFrom, PathParser.PathDataNode nodeTo, float fraction)

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

public static voidnodesToPath(PathParser.PathDataNode node[], Path path)

Convert an array of PathDataNode to Path.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public char getType()

public float[] getParams()

public static void nodesToPath(PathParser.PathDataNode node[], Path path)

Deprecated: Use PathParser.nodesToPath(PathParser.PathDataNode[], Path) instead.

Convert an array of PathDataNode to Path.

Parameters:

node: The source array of PathDataNode.
path: The target Path object.

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

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

Parameters:

nodeFrom: The start value as a PathDataNode.
nodeTo: The end value as a PathDataNode
fraction: The fraction to interpolate.