View Javadoc

1   package org.catacomb.graph.gui;
2   
3   import org.catacomb.interlish.structure.IntActor;
4   import org.catacomb.report.E;
5   
6   
7   import java.awt.Dimension;
8   import java.awt.FlowLayout;
9   
10  import java.awt.Color;
11  
12  public class CornerPanel extends BasePanel implements IntActor {
13      static final long serialVersionUID = 1001;
14  
15      PickWorldCanvas pickWorldCanvas;
16  
17      IconButton ibut;
18  
19      public CornerPanel(int w, int h, PickWorldCanvas pwc) {
20          super();
21  
22          setPreferredSize(new Dimension(w, h));
23  
24          pickWorldCanvas = pwc;
25  
26          setLayout(new FlowLayout(FlowLayout.RIGHT));
27  
28  
29          // ibut = new IconButton("frame", 0, this);
30          //   add(ibut);
31  
32          setBg(Color.black);
33      }
34  
35  
36      public void setBg(Color c) {
37          setBackground(c);
38          if (ibut != null) {
39              ibut.setBg(c);
40          }
41      }
42  
43  
44      public void intAction(int imode) {
45          E.info("time to frame...");
46          pickWorldCanvas.viewAction("frame");
47      }
48  
49  
50  
51  
52  }