summaryrefslogtreecommitdiffstats
path: root/voronoi/CompGeom.java
diff options
context:
space:
mode:
Diffstat (limited to 'voronoi/CompGeom.java')
-rw-r--r--voronoi/CompGeom.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/voronoi/CompGeom.java b/voronoi/CompGeom.java
new file mode 100644
index 0000000..93dcafa
--- /dev/null
+++ b/voronoi/CompGeom.java
@@ -0,0 +1,35 @@
+package voronoi;
+import java.applet.Applet;
+import java.awt.Button;
+import java.awt.Color;
+import java.awt.Event;
+import java.awt.FlowLayout;
+
+public class CompGeom extends Applet {
+ private static final long serialVersionUID = 1L;
+
+ private Button start;
+
+ private CompGeomTest test;
+
+ private int w, h;
+
+ public void init() {
+ start = new Button("Voronoi/Delaunay Applet...");
+ w = 900;
+ h = 550;
+ setLayout(new FlowLayout(FlowLayout.CENTER));
+ setBackground(Color.lightGray);
+ add(start);
+ }
+
+ public boolean action(Event e, Object o) {
+ if (e.target == start) {
+ test = new CompGeomTest(this);
+ test.setSize(w, h);
+ test.setResizable(false);
+ test.setVisible(true);
+ }
+ return true;
+ }
+}