示例#1
0
  @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);
  }
示例#2
0
 public Dot(Point point, String label) {
   this.point = point;
   this.label = label;
   color = BaseHelper.getRandomColor();
 }