@Test public void defineAxisPosition_HasAxis_Result() { when(mStyleMock.getAxisThickness()).thenReturn(6.f); when(mStyleMock.hasXAxis()).thenReturn(true); mXRndr.setInnerChartBounds(0.f, 0.f, 0.f, 5.f); assertEquals(8.f, mXRndr.defineAxisPosition(), RESULT_THRESHOLD); }
@Override protected float defineAxisPosition() { float result = mInnerChartBottom; if (style.hasXAxis()) result += style.getAxisThickness() / 2; return result; }
XRenderer extends AxisRenderer { @Override protected float defineAxisPosition() { float result = mInnerChartBottom; if (style.hasXAxis()) result += style.getAxisThickness() / 2; return result; } }
XRenderer extends AxisRenderer { @Override protected float defineAxisPosition() { float result = mInnerChartBottom; if (style.hasXAxis()) result += style.getAxisThickness() / 2; return result; } XRenderer(); }
XRenderer extends AxisRenderer { @Override protected float defineAxisPosition() { float result = mInnerChartBottom; if (style.hasXAxis()) result += style.getAxisThickness() / 2; return result; } XRenderer(); @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); }
XRenderer extends AxisRenderer { @Override protected float defineAxisPosition() { float result = mInnerChartBottom; if (style.hasXAxis()) result += style.getAxisThickness() / 2; return result; } XRenderer(); @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);  }