/** * Sets whether the drawing direction of this slice is counter clockwise. * The default value is true. * * @param counterclockwise * @return this Slice */ public Slice setCounterClockwise(boolean counterclockwise) { getAttributes().setCounterClockwise(counterclockwise); return this; }
/** * Sets this slice's radius. * * @param radius * @return this Slice. */ public Slice setRadius(double radius) { getAttributes().setRadius(radius); return this; }
/** * Gets this slice's radius * * @return double */ public double getRadius() { return getAttributes().getRadius(); }
/** * Gets the end angle of this slice. * * @param angle in radians * @return this Slice. */ public Slice setEndAngle(double angle) { getAttributes().setEndAngle(angle); return this; }
/** * Gets the starting angle of this slice. * * @return double in radians */ public double getStartAngle() { return getAttributes().getStartAngle(); }
/** * Gets the end angle of this slice. * * @return double in radians */ public double getEndAngle() { return getAttributes().getEndAngle(); }
/** * Sets the starting angle of this slice. * * @param angle in radians * @return this Slice. */ public Slice setStartAngle(double angle) { getAttributes().setStartAngle(angle); return this; }
/** * Returns whether the slice is drawn counter clockwise. * The default value is true. * * @return boolean */ public boolean isCounterClockwise() { return getAttributes().isCounterClockwise(); }