protected void drawYLegend(){
  float[] positions=new float[mYLegend.length * 2];
  for (int i=0; i < positions.length; i+=2) {
    positions[i]=0;
    positions[i + 1]=mYLegend[i / 2];
  }
  transformPointArrayNoTouch(positions);
  float[] xy;
  String yLengend;
  float x, y;
  for (int i=0; i < positions.length; i+=2) {
    if (mYLegend[i / 2] != null) {
      if (mDrawUnitInLegend) {
        yLengend=mFormatYLegend.format(mYLegend[i / 2]) + mUnit;
      }
 else {
        yLengend=mFormatYLegend.format(mYLegend[i / 2]);
      }
      xy=measureTextDimension(mYLegendPaint,yLengend);
      x=positions[i] - xy[0] - 2;
      y=positions[i + 1] + xy[1] / 2;
      if (!mDrawTopYLegendEntry && i >= positions.length - 2)       return;
      mDrawCanvas.drawText(yLengend,x,y,mYLegendPaint);
    }
  }
}

protected void drawYLegend ( ) { float [ ] positions = new float [ mYLegend . length * 2 ] ; for ( int i = 0 ; i < positions . length ; i += 2 ) { positions [ i ] = 0 ; positions [ i + 1 ] = mYLegend [ i / 2 ] ; } transformPointArrayNoTouch ( positions ) ; float [ ] xy ; String yLengend ; float x , y ; for ( int i = 0 ; i < positions . length ; i += 2 ) { if ( mYLegend [ i / 2 ] != null ) { if ( mDrawUnitInLegend ) { yLengend = mFormatYLegend . format ( mYLegend [ i / 2 ] ) + mUnit ; } else { yLengend = mFormatYLegend . format ( mYLegend [ i / 2 ] ) ; } xy = measureTextDimension ( mYLegendPaint , yLengend ) ; x = positions [ i ] - xy [ 0 ] - 2 ; y = positions [ i + 1 ] + xy [ 1 ] / 2 ; if ( ! mDrawTopYLegendEntry && i >= positions . length - 2 ) return ; mDrawCanvas . drawText ( yLengend , x , y , mYLegendPaint ) ; } } }
draws the y legend to the screen
