private void drawPath(ShapePaintContainer shapePaintContainer, Point[][] coordinates, float dy) { this.path.clear(); for (Point[] innerList : coordinates) { Point[] points; if (dy != 0f) { points = RendererUtils.parallelPath(innerList, dy); } else { points = innerList; } if (points.length >= 2) { Point point = points[0]; this.path.moveTo((float) point.x, (float) point.y); for (int i = 1; i < points.length; ++i) { point = points[i]; this.path.lineTo((int) point.x, (int) point.y); } } } this.canvas.drawPath(this.path, shapePaintContainer.paint); }
private void drawPath(ShapePaintContainer shapePaintContainer, Point[][] coordinates, float dy) { this.path.clear(); for (Point[] innerList : coordinates) { Point[] points; if (dy != 0f) { points = RendererUtils.parallelPath(innerList, dy); } else { points = innerList; } if (points.length >= 2) { Point point = points[0]; this.path.moveTo((float) point.x, (float) point.y); for (int i = 1; i < points.length; ++i) { point = points[i]; this.path.lineTo((int) point.x, (int) point.y); } } } this.canvas.drawPath(this.path, shapePaintContainer.paint); }