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

Fields
public float[]mParams

public charmType

Methods
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

Fields

public char mType

public float[] mParams

Methods

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

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.