Home
last modified time | relevance | path

Searched refs:PathPoint (Results 1 – 4 of 4) sorted by relevance

/development/samples/devbytes/animation/CurvedMotion/src/com/example/android/curvedmotion/
DPathPoint.java24 public class PathPoint { class
60 private PathPoint(int operation, float x, float y) { in PathPoint() method in PathPoint
69 private PathPoint(float c0X, float c0Y, float c1X, float c1Y, float x, float y) { in PathPoint() method in PathPoint
82 public static PathPoint lineTo(float x, float y) { in lineTo()
83 return new PathPoint(LINE, x, y); in lineTo()
90 public static PathPoint curveTo(float c0X, float c0Y, float c1X, float c1Y, float x, float y) { in curveTo()
91 return new PathPoint(c0X, c0Y, c1X, c1Y, x, y); in curveTo()
98 public static PathPoint moveTo(float x, float y) { in moveTo()
99 return new PathPoint(MOVE, x, y); in moveTo()
DAnimatorPath.java31 ArrayList<PathPoint> mPoints = new ArrayList<PathPoint>();
41 mPoints.add(PathPoint.moveTo(x, y)); in moveTo()
49 mPoints.add(PathPoint.lineTo(x, y)); in lineTo()
58 mPoints.add(PathPoint.curveTo(c0X, c0Y, c1X, c1Y, x, y)); in curveTo()
64 public Collection<PathPoint> getPoints() { in getPoints()
DPathEvaluator.java26 public class PathEvaluator implements TypeEvaluator<PathPoint> {
28 public PathPoint evaluate(float t, PathPoint startValue, PathPoint endValue) { in evaluate()
30 if (endValue.mOperation == PathPoint.CURVE) { in evaluate()
40 } else if (endValue.mOperation == PathPoint.LINE) { in evaluate()
47 return PathPoint.moveTo(x, y); in evaluate()
DCurvedMotion.java119 public void setButtonLoc(PathPoint newLoc) { in setButtonLoc()