protected final void draw(Canvas paramCanvas, RectF paramRectF, float paramFloat) { paramCanvas.save(); RectF localRectF = new RectF(paramRectF); paramRectF.right -= this.mPaddingRight; paramCanvas.clipRect(localRectF); Rect localRect = new Rect(); while (true) { synchronized (StatisticChartOld.a(this.b)) { Iterator localIterator = StatisticChartOld.a(this.b).iterator(); if (!localIterator.hasNext()) { paramCanvas.restore(); return; } StatisticChartOld.DateItem localDateItem = (StatisticChartOld.DateItem) localIterator.next(); if ((localDateItem.a > 1 + this.offset) || (localDateItem.a < -8 + this.offset)) continue; float f1 = paramRectF.right - this.mPaddingRight + (-1 + localDateItem.a) * StatisticChartOld.a() + this.mScroll; float f2 = paramRectF.top; if (f1 <= this.mRect.right - this.mPaddingRight - 2.0F * StatisticChartOld.a()) { this.a.setTextSize(8.0F * this.mDensity); this.a.getTextBounds(localDateItem.b, 0, localDateItem.b.length(), localRect); float f3 = f1 + (StatisticChartOld.a() - localRect.width()) / 2.0F; float f4 = f2 + (this.stroke + localRect.height()) / 2.0F; paramCanvas.drawText(localDateItem.b, f3, f4, this.a); } } this.a.setTextSize(10.0F * this.mDensity); } }
protected final void doScroll(float paramFloat) { this.offset = (-Math.round(this.mScroll / StatisticChartOld.a())); Debug.i("Chart.StatisticChart", "DateLine Offset : " + this.offset); }