package Shapes; import java.awt.*; import java.awt.event.*; import java.applet.*; import borland.jbcl.layout.*; import borland.jbcl.control.*; 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 XYLayout() ); 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, new XYConstraints(10, 210, 205,40)); add(kalView1, new XYConstraints(10, 10, 200, 200)); //add(kalView2, new XYConstraints(215, 10, 200, 200)); setBackground(Color.lightGray); } }