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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinterpolatePathDataNode(ShadowPathParser.PathDataNode nodeFrom, ShadowPathParser.PathDataNode nodeTo, float fraction)The current PathDataNode will be interpolated between thenodeFromandnodeToaccording to thefraction.static voidnodesToPath(ShadowPathParser.PathDataNode[] node, Path path)Convert an array of PathDataNode to Path.
-
-
-
Method Detail
-
nodesToPath
public static void nodesToPath(ShadowPathParser.PathDataNode[] node, Path path)
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 thenodeFromandnodeToaccording to thefraction.- Parameters:
nodeFrom- The start value as a PathDataNode.nodeTo- The end value as a PathDataNodefraction- The fraction to interpolate.
-
-