Exemplo n.º 1
0
  public void onDraw(Canvas canvas) {
    super.onDraw(canvas);

    if (mDataNotSet) return;

    long starttime = System.currentTimeMillis();

    drawXLabels();

    drawWeb();

    drawLimitLines();

    drawData();

    drawAdditional();

    drawHighlights();

    drawYLabels();

    drawValues();

    drawLegend();

    drawDescription();

    drawMarkers();

    canvas.drawBitmap(mDrawBitmap, 0, 0, mDrawPaint);

    Log.i(LOG_TAG, "RadarChart DrawTime: " + (System.currentTimeMillis() - starttime) + " ms");
  }
Exemplo n.º 2
0
  @Override
  protected void onDraw(Canvas canvas) {
    super.onDraw(canvas);

    if (mDataNotSet) return;

    mRenderer.drawData(canvas);

    if (valuesToHighlight()) mRenderer.drawHighlighted(canvas, mIndicesToHighlight);

    mRenderer.drawExtras(canvas);

    mRenderer.drawValues(canvas);

    mLegendRenderer.renderLegend(canvas);

    drawDescription(canvas);

    drawMarkers(canvas);
  }