protected void drawLabels(Canvas c,float pos,MPPointF anchor){
  final float labelRotationAngleDegrees=mXAxis.getLabelRotationAngle();
  final boolean centeringEnabled=mXAxis.isCenterAxisLabelsEnabled();
  float[] positions=new float[mXAxis.mEntryCount << 1];
  for (int i=0; i < positions.length; i+=2) {
    if (centeringEnabled) {
      positions[i]=mXAxis.mCenteredEntries[i >> 1];
    }
 else {
      positions[i]=mXAxis.mEntries[i >> 1];
    }
  }
  mTrans.pointValuesToPixel(positions);
  AxisValueFormatter formatter=mXAxis.getValueFormatter();
  for (int i=0; i < mXAxis.mEntries.length; i++) {
    float x=positions[i << 1];
    if (!mViewPortHandler.isInBoundsX(x))     return;
    String label=formatter.getFormattedValue(mXAxis.mEntries[i],mXAxis);
    if (mXAxis.isAvoidFirstLastClippingEnabled()) {
      if (i == 0) {
        x+=mViewPortHandler.offsetLeft();
      }
 else       if (i == mXAxis.mEntries.length - 1) {
        x-=mViewPortHandler.offsetRight();
      }
    }
    drawLabel(c,label,x,pos,anchor,labelRotationAngleDegrees);
  }
}

protected void drawLabels ( Canvas c , float pos , MPPointF anchor ) { final float labelRotationAngleDegrees = mXAxis . getLabelRotationAngle ( ) ; final boolean centeringEnabled = mXAxis . isCenterAxisLabelsEnabled ( ) ; float [ ] positions = new float [ mXAxis . mEntryCount << 1 ] ; for ( int i = 0 ; i < positions . length ; i += 2 ) { if ( centeringEnabled ) { positions [ i ] = mXAxis . mCenteredEntries [ i > > 1 ] ; } else { positions [ i ] = mXAxis . mEntries [ i > > 1 ] ; } } mTrans . pointValuesToPixel ( positions ) ; AxisValueFormatter formatter = mXAxis . getValueFormatter ( ) ; for ( int i = 0 ; i < mXAxis . mEntries . length ; i ++ ) { float x = positions [ i << 1 ] ; if ( ! mViewPortHandler . isInBoundsX ( x ) ) return ; String label = formatter . getFormattedValue ( mXAxis . mEntries [ i ] , mXAxis ) ; if ( mXAxis . isAvoidFirstLastClippingEnabled ( ) ) { if ( i == 0 ) { x += mViewPortHandler . offsetLeft ( ) ; } else if ( i == mXAxis . mEntries . length - 1 ) { x -= mViewPortHandler . offsetRight ( ) ; } } drawLabel ( c , label , x , pos , anchor , labelRotationAngleDegrees ) ; } }
draws the x - labels on the specified y - position
