HomeSort by relevance Sort by last modified time
    Searched refs:PathPoint (Results 1 - 4 of 4) sorted by null

  /development/samples/devbytes/animation/CurvedMotion/src/com/example/android/curvedmotion/
PathPoint.java 20 * location from the previous path location (if any). Any PathPoint holds the information for
24 public class PathPoint {
27 * The possible path operations that describe how to move from a preceding PathPoint to the
28 * location described by this PathPoint.
35 * The location of this PathPoint
40 * The first control point, if any, for a PathPoint of type CURVE
45 * The second control point, if any, for a PathPoint of type CURVE
50 * The motion described by the path to get from the previous PathPoint in an AnimatorPath
51 * to the location of this PathPoint. This can be one of MOVE, LINE, or CURVE.
60 private PathPoint(int operation, float x, float y)
    [all...]
AnimatorPath.java 31 ArrayList<PathPoint> mPoints = new ArrayList<PathPoint>();
41 mPoints.add(PathPoint.moveTo(x, y));
49 mPoints.add(PathPoint.lineTo(x, y));
58 mPoints.add(PathPoint.curveTo(c0X, c0Y, c1X, c1Y, x, y));
62 * Returns a Collection of PathPoint objects that describe all points in the path.
64 public Collection<PathPoint> getPoints() {
PathEvaluator.java 21 * This evaluator interpolates between two PathPoint values given the value t, the
26 public class PathEvaluator implements TypeEvaluator<PathPoint> {
28 public PathPoint evaluate(float t, PathPoint startValue, PathPoint endValue) {
30 if (endValue.mOperation == PathPoint.CURVE) {
40 } else if (endValue.mOperation == PathPoint.LINE) {
47 return PathPoint.moveTo(x, y);
CurvedMotion.java 114 * produces (a new "PathPoint" describing the current animated location)
119 public void setButtonLoc(PathPoint newLoc) {

Completed in 358 milliseconds