@Test(expected = IllegalArgumentException.class) public void setBorderValues_MinGreaterMax_ThrowException() { mXRndr.setBorderValues(2, 1, 1); }
public void setBorderValues(int min, int max, int step) { if (min >= max) throw new IllegalArgumentException( "Minimum border value must be greater than maximum values"); if ((max - min) % step != 0) throw new IllegalArgumentException( "Step value must be a divisor of distance between minimum " + "border value and maximum border value"); this.step = step; maxLabelValue = max; minLabelValue = min; }
AxisRenderer { public void setBorderValues(int min, int max, int step) { if (min >= max) throw new IllegalArgumentException( "Minimum border value must be greater than maximum values"); if ((max - min) % step != 0) throw new IllegalArgumentException( "Step value must be a divisor of distance between minimum " + "border value and maximum border value"); this.step = step; maxLabelValue = max; minLabelValue = min; } }
AxisRenderer { public void setBorderValues(int min, int max, int step) { if (min >= max) throw new IllegalArgumentException( "Minimum border value must be greater than maximum values"); if ((max - min) % step != 0) throw new IllegalArgumentException( "Step value must be a divisor of distance between minimum " + "border value and maximum border value"); this.step = step; maxLabelValue = max; minLabelValue = min; } AxisRenderer(); }
AxisRenderer { public void setBorderValues(int min, int max, int step) { if (min >= max) throw new IllegalArgumentException( "Minimum border value must be greater than maximum values"); if ((max - min) % step != 0) throw new IllegalArgumentException( "Step value must be a divisor of distance between minimum " + "border value and maximum border value"); this.step = step; maxLabelValue = max; minLabelValue = min; } 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 { public void setBorderValues(int min, int max, int step) { if (min >= max) throw new IllegalArgumentException( "Minimum border value must be greater than maximum values"); if ((max - min) % step != 0) throw new IllegalArgumentException( "Step value must be a divisor of distance between minimum " + "border value and maximum border value"); this.step = step; maxLabelValue = max; minLabelValue = min; } 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);  }