import java.awt. *;

public class BifurcateApplet extends java.applet.Applet
{

  private Controls control_panel;
  private DrawIterate plot;
  private Map mymap;
  public ComputeMap mycom;
  public Thread runner;

  public void init ()
  {
    setLayout (new BorderLayout ());
    mymap = new Map ();
    plot = new DrawIterate (this);
    mycom = new ComputeMap (mymap, plot, this);

    control_panel = new Controls (mycom, this);

    add ("Center", plot);
    add ("South", control_panel);
  }

  public void start ()
  {
    runner = new Thread (mycom);
    runner.start ();
  }

  public void stop ()
  {
    if (runner != null)
      runner.stop ();
  }

}

