int function ( CDouble arg0 ) { if ( Thread . interrupted ( ) ) { throw new InterruptedException ( ) ; } CDouble loc0 = CDouble . ZERO ; for ( int loc1 = 0 ; loc1 < maxIter ; loc1 ++ ) { loc0 = loc0 . squared ( ) . add ( arg0 ) ; if ( loc0 . abs2 ( ) > 10.0 ) return loc1 ; } return - 1 ; }
iterate z _ n +1 = z _ n ^ 2 + c to determine whether complex number c is in the mandelbrot set or not . values of c which remain bounded after an infinite number of iterations are in the set , all others are not . we use a finite number of iterations to approximately determine membership . this function returns the number of iterations taken to escape the boundary | z | = 1 , or -1 if z remained bounded for maxiter iterations . concode_field_sep int WMAX concode_elem_sep int[] iters concode_elem_sep ArrayList<SwingWorker> workers concode_elem_sep double cr0Max concode_elem_sep double ciMin concode_elem_sep double crMin concode_elem_sep List<MandelModelChangeListener> listeners concode_elem_sep double cr0Min concode_elem_sep double ci0Min concode_elem_sep int maxIter concode_elem_sep double ci0Max concode_elem_sep int width concode_elem_sep double crMax concode_elem_sep double ciMax concode_elem_sep int height concode_field_sep void resetZoom concode_elem_sep CDouble getPoint concode_elem_sep CDouble getPointJittered concode_elem_sep void setMaxThread concode_elem_sep void update concode_elem_sep void zoom concode_elem_sep void zoom concode_elem_sep void addChangeListener concode_elem_sep void removeChangeListener concode_elem_sep void setMaxIter concode_elem_sep void fireModelChangedEvent concode_elem_sep void setDimension concode_elem_sep void pan concode_elem_sep BufferedImage getImage