@Test public void defineAxisPosition_HasAxis_Result() { when(mStyleMock.getAxisThickness()).thenReturn(6.f); when(mStyleMock.hasYAxis()).thenReturn(true); mYRndr.init(mData, mStyleMock); mYRndr.setInnerChartBounds(5.f, 0.f, 0.f, 0.f); assertEquals(2.f, mYRndr.defineAxisPosition(), RESULT_THRESHOLD); }
@Override protected float defineAxisPosition() { float result = mInnerChartLeft; if (style.hasYAxis()) result -= style.getAxisThickness() / 2; return result; }
YRenderer extends AxisRenderer { @Override protected float defineAxisPosition() { float result = mInnerChartLeft; if (style.hasYAxis()) result -= style.getAxisThickness() / 2; return result; } }
YRenderer extends AxisRenderer { @Override protected float defineAxisPosition() { float result = mInnerChartLeft; if (style.hasYAxis()) result -= style.getAxisThickness() / 2; return result; } YRenderer(); }
YRenderer extends AxisRenderer { @Override protected float defineAxisPosition() { float result = mInnerChartLeft; if (style.hasYAxis()) result -= style.getAxisThickness() / 2; return result; } YRenderer(); @Override void dispose(); @Override void measure(int left, int top, int right, int bottom); @Override void draw(Canvas canvas); @Override float parsePos(int index, double value); float measureInnerChartLeft(int left); float measureInnerChartBottom(int bottom); }
YRenderer extends AxisRenderer { @Override protected float defineAxisPosition() { float result = mInnerChartLeft; if (style.hasYAxis()) result -= style.getAxisThickness() / 2; return result; } YRenderer(); @Override void dispose(); @Override void measure(int left, int top, int right, int bottom); @Override void draw(Canvas canvas); @Override float parsePos(int index, double value); float measureInnerChartLeft(int left); float measureInnerChartBottom(int bottom);  }