00001 package delaunaypackage;
00002 import java.awt.*;
00003
00004
00005
00006
00007 class AppletUI extends Panel {
00008 AlgorithmUI AlgorithmUI[];
00009
00010 public AppletUI(TriangulationAlgorithm algorithm[]) {
00011 Label l;
00012 Panel p;
00013
00014 setLayout(new BorderLayout());
00015
00016
00017 p = new Panel();
00018 p.setLayout(new GridLayout(0,1));
00019
00020
00021 p.add(new AlgorithmUIHeading());
00022
00023
00024 for (int i = 0; i < algorithm.length; i++)
00025 p.add(algorithm[i].algorithmUI());
00026
00027
00028 add("Center", p);
00029
00030
00031 p = new Panel();
00032 p.setLayout(new GridLayout(0,1));
00033 p.add(new Button("Start"));
00034 p.add(new Button("Stop"));
00035 p.add(new Button("New"));
00036 p.add(new Label("Step Mode", Label.CENTER));
00037 Choice c = new Choice();
00038 c.addItem("Auto");
00039 c.addItem("Manual");
00040 p.add(c);
00041
00042
00043 add("East", p);
00044 }
00045 }