/* 
 * ArrayVisual.java
 *
 * by Kwan Hoi Ching Eddie
 * 
 * last revised: 06/06/1996
 *
 */

import java.awt.*;
import java.applet.*;
import java.lang.*;
import java.util.*;

class ArrayInfo {

  public String name;
  public int dim;
  public int size1;
  public int size2;
  public int type;

  public ArrayInfo() {

    name = "";
    dim = size1 = size2 = type = -1;
  }

}

class ElementInfo {

  public String name;
  public int dim;
  public int row1;
  public int row2;
  public int column1;
  public int column2;
  public String value;

  public ElementInfo() {

    name = value = "";
    dim = row1 = row2 = column1 = column2 = -1;
  }

}


public class ArrayVisual extends Applet implements Runnable {

  // static constants.
  public final static int INT = 1;
  public final static int CHAR = 2;
  public final static int FLOAT = 3;
  public final static int DOUBLE = 4;

  Thread killme = null;
  String title;

  private DisplayPanel display;
  private ControlBar control;
  private InputPanel input;

  public void init() {

    display = new DisplayPanel(1, 5, 5, INT);
    control = new ControlBar(display);
    input = new InputPanel(display);

    setLayout(new BorderLayout());

    // adding control panel.
    add("North", control);

    // adding input panel.
    add("South", input);

    // adding display panel.
    add("Center", display);
  }

  public void start() {
    
    /* create a new thread. */
    if (killme == null) {
      killme = new Thread(this);
      killme.start();
    }
  }

  public void stop() {
  
    killme = null;
  }

  public void run() {

    
  }
 

}

