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