comparison src/alice/test/topology/fishmodel/alpha/MakeFrame.java @ 132:1044a79ce4ef working

delete cs from OutputCodeSegment
author sugi
date Tue, 14 Aug 2012 19:43:10 +0900
parents 117dad267a9b
children
comparison
equal deleted inserted replaced
131:2b991e8b7fc0 132:1044a79ce4ef
26 26
27 int fSizeX = 800; 27 int fSizeX = 800;
28 int fSizeY = 800; 28 int fSizeY = 800;
29 private Canvas3D canvas; 29 private Canvas3D canvas;
30 private SimpleUniverse universe; 30 private SimpleUniverse universe;
31 private KeyInput key;
32 private KeyInputCodeSegment kics; 31 private KeyInputCodeSegment kics;
33 32
34 public MakeFrame(String str){ 33 public MakeFrame(String str){
35 JFrame frame = new JFrame(str); 34 JFrame frame = new JFrame(str);
36 frame.setSize(fSizeX,fSizeY); 35 frame.setSize(fSizeX,fSizeY);
46 cp.add(canvas); 45 cp.add(canvas);
47 46
48 universe = new SimpleUniverse(canvas); 47 universe = new SimpleUniverse(canvas);
49 universe.addBranchGraph(createLight()); 48 universe.addBranchGraph(createLight());
50 universe.addBranchGraph(setBackground()); 49 universe.addBranchGraph(setBackground());
51 /* 50
52 key = new KeyInput();
53 canvas.addKeyListener(key);
54 */
55 kics = new KeyInputCodeSegment(); 51 kics = new KeyInputCodeSegment();
56 canvas.addKeyListener(kics); 52 canvas.addKeyListener(kics);
57 frame.setVisible(true); 53 frame.setVisible(true);
58 54
59 ViewingPlatform camera = universe.getViewingPlatform(); 55 ViewingPlatform camera = universe.getViewingPlatform();
101 97
102 public Canvas3D getCanvas(){ 98 public Canvas3D getCanvas(){
103 return this.canvas; 99 return this.canvas;
104 } 100 }
105 101
106 public KeyInput getKey(){
107 return this.key;
108 }
109
110 public KeyInputCodeSegment getKeySegment(){ 102 public KeyInputCodeSegment getKeySegment(){
111 return this.kics; 103 return this.kics;
112 } 104 }
113 105
114 } 106 }