@Test public void extractLabels_ChartSets_Result() { ArrayList<String> toAssert = new ArrayList<>(); toAssert.add("0"); toAssert.add("1"); assertEquals(toAssert, mXRndr.extractLabels(mData)); }
ArrayList<String> extractLabels(ArrayList<ChartSet> sets) { int size = sets.get(0).size(); ArrayList<String> result = new ArrayList<>(size); for (int i = 0; i < size; i++) result.add(sets.get(0).getLabel(i)); return result; }
AxisRenderer { ArrayList<String> extractLabels(ArrayList<ChartSet> sets) { int size = sets.get(0).size(); ArrayList<String> result = new ArrayList<>(size); for (int i = 0; i < size; i++) result.add(sets.get(0).getLabel(i)); return result; } }
AxisRenderer { ArrayList<String> extractLabels(ArrayList<ChartSet> sets) { int size = sets.get(0).size(); ArrayList<String> result = new ArrayList<>(size); for (int i = 0; i < size; i++) result.add(sets.get(0).getLabel(i)); return result; } AxisRenderer(); }
AxisRenderer { ArrayList<String> extractLabels(ArrayList<ChartSet> sets) { int size = sets.get(0).size(); ArrayList<String> result = new ArrayList<>(size); for (int i = 0; i < size; i++) result.add(sets.get(0).getLabel(i)); return result; } AxisRenderer(); void init(ArrayList<ChartSet> data, Style style); abstract float parsePos(int index, double value); void reset(); float getInnerChartLeft(); float getInnerChartTop(); float getInnerChartRight(); float getInnerChartBottom(); float[] getInnerChartBounds(); int getStep(); float getBorderSpacing(); int getBorderMaximumValue(); int getBorderMinimumValue(); boolean hasMandatoryBorderSpacing(); boolean hasStep(); void setHandleValues(boolean bool); void setLabelsFormat(DecimalFormat format); void setStep(int step); void setBorderSpacing(float spacing); void setTopSpacing(float spacing); void setMandatoryBorderSpacing(boolean bool); void setInnerChartBounds(float left, float top, float right, float bottom); void setBorderValues(int min, int max, int step); void setBorderValues(int min, int max); }
AxisRenderer { ArrayList<String> extractLabels(ArrayList<ChartSet> sets) { int size = sets.get(0).size(); ArrayList<String> result = new ArrayList<>(size); for (int i = 0; i < size; i++) result.add(sets.get(0).getLabel(i)); return result; } AxisRenderer(); void init(ArrayList<ChartSet> data, Style style); abstract float parsePos(int index, double value); void reset(); float getInnerChartLeft(); float getInnerChartTop(); float getInnerChartRight(); float getInnerChartBottom(); float[] getInnerChartBounds(); int getStep(); float getBorderSpacing(); int getBorderMaximumValue(); int getBorderMinimumValue(); boolean hasMandatoryBorderSpacing(); boolean hasStep(); void setHandleValues(boolean bool); void setLabelsFormat(DecimalFormat format); void setStep(int step); void setBorderSpacing(float spacing); void setTopSpacing(float spacing); void setMandatoryBorderSpacing(boolean bool); void setInnerChartBounds(float left, float top, float right, float bottom); void setBorderValues(int min, int max, int step); void setBorderValues(int min, int max);  }