/** * Constructor. Creates an instance of an arc, drawn clockwise. * * @param radius radius of the circle * @param startAngle starting angle (in radians) of this arc * @param endAngle end angle (in radians) of this arc */ public Arc(double radius, double startAngle, double endAngle) { super(ShapeType.ARC); setRadius(radius).setStartAngle(startAngle).setEndAngle(endAngle).setCounterClockwise(false); }
/** * Constructor. Creates an instance of an arc. * * @param radius radius of the circle * @param startAngle starting angle (in radians) of this arc * @param endAngle end angle (in radians) of this arc * @param counterClockwise * direction in which the arc is drawn. True draws the arc counter clockwise; * false draws the arc clockwise. * */ public Arc(double radius, double startAngle, double endAngle, boolean counterClockwise) { super(ShapeType.ARC); setRadius(radius).setStartAngle(startAngle).setEndAngle(endAngle).setCounterClockwise(counterClockwise); }