Lines Matching refs:Path
25 import android.graphics.Path;
58 * Adds a line to the given Path. The line extends from
62 * @param path the Path to draw to
70 private static void drawLine(Path path,
87 path.moveTo(p0x - ox, p0y - oy);
88 path.lineTo(p1x - ox, p1y - oy);
89 path.lineTo(p1x + ox, p1y + oy);
90 path.lineTo(p0x + ox, p0y + oy);
91 path.close();
95 * Adds a vertical arrow to the given Path.
97 * @param path the Path to draw to
99 private static void drawVArrow(Path path,
101 path.moveTo(cx - width / 2.0f, cy);
102 path.lineTo(cx, cy + height);
103 path.lineTo(cx + width / 2.0f, cy);
104 path.close();
108 * Adds a horizontal arrow to the given Path.
110 * @param path the Path to draw to
112 private static void drawHArrow(Path path,
114 path.moveTo(cx, cy - height / 2.0f);
115 path.lineTo(cx + width, cy);
116 path.lineTo(cx, cy + height / 2.0f);
117 path.close();
296 Path path = new Path();
304 drawLine(path, radius * 0.12f, i / 12.0f, cx, cy, r4, r5);
308 drawLine(path, radius * 0.12f, hh / 12.0f, cx, cy, r0, r1);
310 drawLine(path, radius * 0.12f, mm / 60.0f, cx, cy, r0, r2);
312 drawLine(path, radius * 0.036f, ss / 60.0f, cx, cy, r0, r3);
315 drawVArrow(path, cx + radius * 1.13f, cy - radius,
319 drawVArrow(path, cx + radius * 1.13f, cy + radius,
323 drawHArrow(path, cx - radius * 1.3f, cy, -radius * 0.1f,
325 drawHArrow(path, cx + radius * 1.3f, cy, radius * 0.1f,
330 canvas.drawPath(path, paint);