package Shapes; import java.awt.*; import java.awt.event.*; import java.applet.*; import Scopes.*; import Views.*; import Controls.*; import Strategies.*; import Factories.*; //import com.sun.java.swing.UIManager; public class tester extends Applet{ //Construct the applet Kaleidoscope kal; KaleidoscopeView kalView1, kalView2; KaleidoscopeControl kalControl; public tester() { setLayout( new FlowLayout() ); CompositeShapeMutationStrategy s = new CompositeShapeMutationStrategy(200); s.add( new GeneralShapeMutationStrategy(200) ); //s.add( new ImplodeShapeMutationStrategy(200) ); kal = new Kaleidoscope(new GeneralShapeFactory(200) , s ); kalView1 = new FlipKaleidoscopeView(kal, 200); //kalView2 = new RotateKaleidoscopeView(kal); kalControl = new KaleidoscopeControl(kal); add(kalControl); add(kalView1); //add(kalView2, new XYConstraints(215, 10, 200, 200)); setBackground(Color.lightGray); } }