// Java (Applet) Fractal Explorer // (c) 1997 by Nils Pipenbrinck // fixed in 2005 by doj after decompilation of .class files with jad class MandelState implements Cloneable { public double left; public double right; public double top; public double bottom; public double other_r; public double other_i; public boolean isMandel; public MandelState(double left_, double right_, double top_, double bottom_, double other_r_, double other_i_, boolean isMandel_) { left = left_; right = right_; top = top_; bottom = bottom_; other_r = other_r_; other_i = other_i_; isMandel = isMandel_; } public static final MandelState getDefaultMandelbrot() { return new MandelState(-2D, 2D, -1.5D, 1.5D, 0.0D, 0.0D, true); } public Object clone() { return new MandelState(left, right, top, bottom, other_r, other_i, isMandel); } public final void switchMode() { other_r = (left + right) / 2D; other_i = (bottom + top) / 2D; isMandel = !isMandel; left = -2D; right = 2D; top = -1.5D; bottom = 1.5D; } }