/* Copyright 2001 Michael R. Wick */ package Scopes; import java.awt.*; import java.awt.event.*; import java.applet.*; import Views.*; import Factories.*; import Strategies.*; import Controls.*; public class Demo extends Applet{ //Construct the applet Kaleidoscope kal; KaleidoscopeView kalView1, kalView2; KaleidoscopeControl kalControl; public Demo() { setLayout( new FlowLayout() ); //setLayout( new XYLayout() ); kal = new Kaleidoscope(new GeneralShapeFactory(200) , new GeneralShapeMutationStrategy(200) ); kalView1 = new FlipKaleidoscopeView(kal, 200); kalControl = new KaleidoscopeControl(kal); add(kalView1); add(kalControl); setBackground(Color.lightGray); } }