/** * Draws this arc. * * @param context the {@link Context2D} used to draw this arc. */ @Override public boolean prepare(Context2D context, Attributes attr, double alpha) { context.beginPath(); context.arc(0, 0, getRadius(), getStartAngle(), getEndAngle(), isCounterClockwise()); return true; }