@Test(expected = IllegalArgumentException.class) public void barGradientNullException() { bar.setGradientColor(null, new float[] {1.f, 2.f}); }
public BarSet setGradientColor(@NonNull int colors[], float[] positions) { if (colors == null || colors.length == 0) throw new IllegalArgumentException("Colors argument can't be null or empty."); for (ChartEntry e : getEntries()) ((Bar) e).setGradientColor(colors, positions); return this; }
BarSet extends ChartSet { public BarSet setGradientColor(@NonNull int colors[], float[] positions) { if (colors == null || colors.length == 0) throw new IllegalArgumentException("Colors argument can't be null or empty."); for (ChartEntry e : getEntries()) ((Bar) e).setGradientColor(colors, positions); return this; } }
BarSet extends ChartSet { public BarSet setGradientColor(@NonNull int colors[], float[] positions) { if (colors == null || colors.length == 0) throw new IllegalArgumentException("Colors argument can't be null or empty."); for (ChartEntry e : getEntries()) ((Bar) e).setGradientColor(colors, positions); return this; } BarSet();  BarSet(@NonNull String[] labels, @NonNull float[] values); }
BarSet extends ChartSet { public BarSet setGradientColor(@NonNull int colors[], float[] positions) { if (colors == null || colors.length == 0) throw new IllegalArgumentException("Colors argument can't be null or empty."); for (ChartEntry e : getEntries()) ((Bar) e).setGradientColor(colors, positions); return this; } BarSet();  BarSet(@NonNull String[] labels, @NonNull float[] values); void addBar(String label, float value); void addBar(@NonNull Bar bar); int getColor(); BarSet setColor(@ColorInt int color); BarSet setGradientColor(@NonNull int colors[], float[] positions); }
BarSet extends ChartSet { public BarSet setGradientColor(@NonNull int colors[], float[] positions) { if (colors == null || colors.length == 0) throw new IllegalArgumentException("Colors argument can't be null or empty."); for (ChartEntry e : getEntries()) ((Bar) e).setGradientColor(colors, positions); return this; } BarSet();  BarSet(@NonNull String[] labels, @NonNull float[] values); void addBar(String label, float value); void addBar(@NonNull Bar bar); int getColor(); BarSet setColor(@ColorInt int color); BarSet setGradientColor(@NonNull int colors[], float[] positions);  }