julia
Class Julia

java.lang.Object
  extended by julia.Julia

public class Julia
extends java.lang.Object


Constructor Summary
Julia(int width, int height)
          Remembers the width and height as instance variables, and establishes the default picture.
 
Method Summary
 void bump()
          Increase the maximum number of iterations per point by 50.
 void draw()
          Refresh the display by computing point by point the color value as described in the lab.
 void reset()
          Establish the coordinates of the display to go from -2 - 2i at the lower-lefthand corner to 2 + 2i at the upper-right, and set the maximum number of iterations to 50.
 void setCoordinates(Complex ll, Complex ur)
          Reset the display so that the supplied complex coordinates frame the lower left and upper right of what is seen.
 void unbump()
          Decrease the maximum number of iterations per point by 50, but make sure the result does not drop below 50.
 void zoomIn()
          Zoom in to the area framed by 1/4 of the current display.
 void zoomOut()
          Inverse of zoomIn: as if the currently viewed display becomes framed by 1/4 of the new display all around.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Julia

public Julia(int width,
             int height)
Remembers the width and height as instance variables, and establishes the default picture. See reset

Parameters:
width -
height -
Method Detail

reset

public void reset()
Establish the coordinates of the display to go from -2 - 2i at the lower-lefthand corner to 2 + 2i at the upper-right, and set the maximum number of iterations to 50.


setCoordinates

public void setCoordinates(Complex ll,
                           Complex ur)
Reset the display so that the supplied complex coordinates frame the lower left and upper right of what is seen.

Parameters:
ll - new lower-left coordinate for the displayed area
ur - new upper-right coordinate for the displayed area.

zoomIn

public void zoomIn()
Zoom in to the area framed by 1/4 of the current display.


draw

public void draw()
Refresh the display by computing point by point the color value as described in the lab. It may be helpful to call StdDraw.show(0) before and after you are done, so that the display need not be update after each point is computed. It may also be helpful to fill the display with a white rectangle before computing and establishing the points' colors.


zoomOut

public void zoomOut()
Inverse of zoomIn: as if the currently viewed display becomes framed by 1/4 of the new display all around.


bump

public void bump()
Increase the maximum number of iterations per point by 50.


unbump

public void unbump()
Decrease the maximum number of iterations per point by 50, but make sure the result does not drop below 50.