@Test(expected = IllegalArgumentException.class) public void endNegativeException() { set.endAt(-1); }
public LineSet endAt(@IntRange(from = 0) int index) { if (index < 0 || index > size()) throw new IllegalArgumentException("Index is negative or greater than set's size."); if (index < mBegin) throw new IllegalArgumentException( "Index cannot be lesser than the start entry " + "defined in beginAt(index)."); mEnd = index; return this; }
LineSet extends ChartSet { public LineSet endAt(@IntRange(from = 0) int index) { if (index < 0 || index > size()) throw new IllegalArgumentException("Index is negative or greater than set's size."); if (index < mBegin) throw new IllegalArgumentException( "Index cannot be lesser than the start entry " + "defined in beginAt(index)."); mEnd = index; return this; } }
LineSet extends ChartSet { public LineSet endAt(@IntRange(from = 0) int index) { if (index < 0 || index > size()) throw new IllegalArgumentException("Index is negative or greater than set's size."); if (index < mBegin) throw new IllegalArgumentException( "Index cannot be lesser than the start entry " + "defined in beginAt(index)."); mEnd = index; return this; } LineSet();  LineSet(@NonNull String[] labels, @NonNull float[] values); }
LineSet extends ChartSet { public LineSet endAt(@IntRange(from = 0) int index) { if (index < 0 || index > size()) throw new IllegalArgumentException("Index is negative or greater than set's size."); if (index < mBegin) throw new IllegalArgumentException( "Index cannot be lesser than the start entry " + "defined in beginAt(index)."); mEnd = index; return this; } LineSet();  LineSet(@NonNull String[] labels, @NonNull float[] values); void addPoint(String label, float value); void addPoint(@NonNull Point point); boolean isDashed(); boolean isSmooth(); boolean hasFill(); boolean hasGradientFill(); boolean hasShadow(); float getThickness(); int getColor(); int getFillColor(); int[] getGradientColors(); float[] getGradientPositions(); int getBegin(); int getEnd(); float[] getDashedIntervals(); int getDashedPhase(); float getShadowRadius(); float getShadowDx(); float getShadowDy(); int[] getShadowColor(); LineSet setDashedPhase(int phase); LineSet setDashed(@NonNull float[] intervals); LineSet setSmooth(boolean bool); LineSet setThickness(@FloatRange(from = 0.f) float thickness); LineSet setColor(@ColorInt int color); LineSet setFill(@ColorInt int color); LineSet setGradientFill(@NonNull int colors[], float[] positions); LineSet beginAt(@IntRange(from = 0) int index); LineSet endAt(@IntRange(from = 0) int index); LineSet setDotsColor(@ColorInt int color); LineSet setDotsRadius(@FloatRange(from = 0.f) float radius); LineSet setDotsStrokeThickness(@FloatRange(from = 0.f) float thickness); LineSet setDotsStrokeColor(@ColorInt int color); LineSet setDotsDrawable(@NonNull Drawable drawable); @Override void setShadow(float radius, float dx, float dy, int color); }
LineSet extends ChartSet { public LineSet endAt(@IntRange(from = 0) int index) { if (index < 0 || index > size()) throw new IllegalArgumentException("Index is negative or greater than set's size."); if (index < mBegin) throw new IllegalArgumentException( "Index cannot be lesser than the start entry " + "defined in beginAt(index)."); mEnd = index; return this; } LineSet();  LineSet(@NonNull String[] labels, @NonNull float[] values); void addPoint(String label, float value); void addPoint(@NonNull Point point); boolean isDashed(); boolean isSmooth(); boolean hasFill(); boolean hasGradientFill(); boolean hasShadow(); float getThickness(); int getColor(); int getFillColor(); int[] getGradientColors(); float[] getGradientPositions(); int getBegin(); int getEnd(); float[] getDashedIntervals(); int getDashedPhase(); float getShadowRadius(); float getShadowDx(); float getShadowDy(); int[] getShadowColor(); LineSet setDashedPhase(int phase); LineSet setDashed(@NonNull float[] intervals); LineSet setSmooth(boolean bool); LineSet setThickness(@FloatRange(from = 0.f) float thickness); LineSet setColor(@ColorInt int color); LineSet setFill(@ColorInt int color); LineSet setGradientFill(@NonNull int colors[], float[] positions); LineSet beginAt(@IntRange(from = 0) int index); LineSet endAt(@IntRange(from = 0) int index); LineSet setDotsColor(@ColorInt int color); LineSet setDotsRadius(@FloatRange(from = 0.f) float radius); LineSet setDotsStrokeThickness(@FloatRange(from = 0.f) float thickness); LineSet setDotsStrokeColor(@ColorInt int color); LineSet setDotsDrawable(@NonNull Drawable drawable); @Override void setShadow(float radius, float dx, float dy, int color);  }