Fractal generator in Java