Package org.robolectric.shadows
Class ShadowPathParser.PathDataNode
java.lang.Object
org.robolectric.shadows.ShadowPathParser.PathDataNode
- Enclosing class:
- ShadowPathParser
public static class ShadowPathParser.PathDataNode extends Object
-
Method Summary
Modifier and Type Method Description void
interpolatePathDataNode(ShadowPathParser.PathDataNode nodeFrom, ShadowPathParser.PathDataNode nodeTo, float fraction)
The current PathDataNode will be interpolated between thenodeFrom
andnodeTo
according to thefraction
.static void
nodesToPath(ShadowPathParser.PathDataNode[] node, Path path)
Convert an array of PathDataNode to Path.
-
Method Details
-
nodesToPath
Convert an array of PathDataNode to Path.- Parameters:
node
- The source array of PathDataNode.path
- The target Path object.
-
interpolatePathDataNode
public void interpolatePathDataNode(ShadowPathParser.PathDataNode nodeFrom, ShadowPathParser.PathDataNode nodeTo, float fraction)The current PathDataNode will be interpolated between thenodeFrom
andnodeTo
according to thefraction
.- Parameters:
nodeFrom
- The start value as a PathDataNode.nodeTo
- The end value as a PathDataNodefraction
- The fraction to interpolate.
-