@Test public void measureInnerChartBottom_HasAxisLabelsOutside_Result() { when(mStyleMock.hasXAxis()).thenReturn(true); when(mStyleMock.getAxisThickness()).thenReturn(6.f); when(mStyleMock.getFontMaxHeight()).thenReturn(18); when(mStyleMock.getYLabelsPositioning()).thenReturn(AxisRenderer.LabelPosition.INSIDE); mYRndr.init(mData, mStyleMock); mYRndr.setBorderSpacing(6.f); assertEquals(15.f, mYRndr.measureInnerChartBottom(24), RESULT_THRESHOLD); }
public float measureInnerChartBottom(int bottom) { if (style.getYLabelsPositioning() != LabelPosition.NONE && borderSpacing < style.getFontMaxHeight() / 2) return bottom - style.getFontMaxHeight() / 2; return bottom; }
YRenderer extends AxisRenderer { public float measureInnerChartBottom(int bottom) { if (style.getYLabelsPositioning() != LabelPosition.NONE && borderSpacing < style.getFontMaxHeight() / 2) return bottom - style.getFontMaxHeight() / 2; return bottom; } }
YRenderer extends AxisRenderer { public float measureInnerChartBottom(int bottom) { if (style.getYLabelsPositioning() != LabelPosition.NONE && borderSpacing < style.getFontMaxHeight() / 2) return bottom - style.getFontMaxHeight() / 2; return bottom; } YRenderer(); }
YRenderer extends AxisRenderer { public float measureInnerChartBottom(int bottom) { if (style.getYLabelsPositioning() != LabelPosition.NONE && borderSpacing < style.getFontMaxHeight() / 2) return bottom - style.getFontMaxHeight() / 2; return bottom; } 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 { public float measureInnerChartBottom(int bottom) { if (style.getYLabelsPositioning() != LabelPosition.NONE && borderSpacing < style.getFontMaxHeight() / 2) return bottom - style.getFontMaxHeight() / 2; return bottom; } 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);  }