@Override public void draw(Canvas canvas, Paint paint) { paint.setStyle(Paint.Style.FILL); canvas.drawCircle(point.getX(), point.getY(), radius, paint); BaseHelper.drawTextWithShadow(canvas, label, point.getX() + radius, point.getY() + radius / 2); }
public Dot(Point point, String label) { this.point = point; this.label = label; color = BaseHelper.getRandomColor(); }