javadoc and datastoreitem registry support for binding/rebinding methods
[jalview.git] / src / jalview / jbgui / GStructureViewer.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
3  * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
4  * 
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  * 
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  * 
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
18  */
19 package jalview.jbgui;
20
21 import javax.swing.*;
22 import java.awt.event.ActionListener;
23 import java.awt.event.ActionEvent;
24
25 public class GStructureViewer extends JInternalFrame
26 {
27   public GStructureViewer()
28   {
29     try
30     {
31       jbInit();
32     } catch (Exception ex)
33     {
34       ex.printStackTrace();
35     }
36   }
37
38   private void jbInit() throws Exception
39   {
40     this.setJMenuBar(menuBar);
41     fileMenu.setText("File");
42     savemenu.setActionCommand("Save Image");
43     savemenu.setText("Save As");
44     pdbFile.setText("PDB File");
45     pdbFile.addActionListener(new ActionListener()
46     {
47       public void actionPerformed(ActionEvent actionEvent)
48       {
49         pdbFile_actionPerformed(actionEvent);
50       }
51     });
52     png.setText("PNG");
53     png.addActionListener(new ActionListener()
54     {
55       public void actionPerformed(ActionEvent actionEvent)
56       {
57         png_actionPerformed(actionEvent);
58       }
59     });
60     eps.setText("EPS");
61     eps.addActionListener(new ActionListener()
62     {
63       public void actionPerformed(ActionEvent actionEvent)
64       {
65         eps_actionPerformed(actionEvent);
66       }
67     });
68     viewMapping.setText("View Mapping");
69     viewMapping.addActionListener(new ActionListener()
70     {
71       public void actionPerformed(ActionEvent actionEvent)
72       {
73         viewMapping_actionPerformed(actionEvent);
74       }
75     });
76     viewMenu.setText("View");
77     chainMenu.setText("Show Chain");
78     colourMenu.setText("Colours");
79     backGround.setText("Background Colour...");
80     backGround.addActionListener(new ActionListener()
81     {
82       public void actionPerformed(ActionEvent actionEvent)
83       {
84         backGround_actionPerformed(actionEvent);
85       }
86     });
87     seqColour.setSelected(true);
88     seqColour.setText("By Sequence");
89     seqColour.addActionListener(new ActionListener()
90     {
91       public void actionPerformed(ActionEvent actionEvent)
92       {
93         seqColour_actionPerformed(actionEvent);
94       }
95     });
96     chainColour.setText("By Chain");
97     chainColour.addActionListener(new ActionListener()
98     {
99       public void actionPerformed(ActionEvent actionEvent)
100       {
101         chainColour_actionPerformed(actionEvent);
102       }
103     });
104     chargeColour.setText("Charge & Cysteine");
105     chargeColour.addActionListener(new ActionListener()
106     {
107       public void actionPerformed(ActionEvent actionEvent)
108       {
109         chargeColour_actionPerformed(actionEvent);
110       }
111     });
112     zappoColour.setText("Zappo");
113     zappoColour.addActionListener(new ActionListener()
114     {
115       public void actionPerformed(ActionEvent actionEvent)
116       {
117         zappoColour_actionPerformed(actionEvent);
118       }
119     });
120     taylorColour.setText("Taylor");
121     taylorColour.addActionListener(new ActionListener()
122     {
123       public void actionPerformed(ActionEvent actionEvent)
124       {
125         taylorColour_actionPerformed(actionEvent);
126       }
127     });
128     hydroColour.setText("Hydro");
129     hydroColour.addActionListener(new ActionListener()
130     {
131       public void actionPerformed(ActionEvent actionEvent)
132       {
133         hydroColour_actionPerformed(actionEvent);
134       }
135     });
136     strandColour.setText("Strand");
137     strandColour.addActionListener(new ActionListener()
138     {
139       public void actionPerformed(ActionEvent actionEvent)
140       {
141         strandColour_actionPerformed(actionEvent);
142       }
143     });
144     helixColour.setText("Helix Propensity");
145     helixColour.addActionListener(new ActionListener()
146     {
147       public void actionPerformed(ActionEvent actionEvent)
148       {
149         helixColour_actionPerformed(actionEvent);
150       }
151     });
152     turnColour.setText("Turn Propensity");
153     turnColour.addActionListener(new ActionListener()
154     {
155       public void actionPerformed(ActionEvent actionEvent)
156       {
157         turnColour_actionPerformed(actionEvent);
158       }
159     });
160     buriedColour.setText("Buried Index");
161     buriedColour.addActionListener(new ActionListener()
162     {
163       public void actionPerformed(ActionEvent actionEvent)
164       {
165         buriedColour_actionPerformed(actionEvent);
166       }
167     });
168     userColour.setText("User Defined ...");
169     userColour.addActionListener(new ActionListener()
170     {
171       public void actionPerformed(ActionEvent actionEvent)
172       {
173         userColour_actionPerformed(actionEvent);
174       }
175     });
176     helpMenu.setText("Help");
177     jmolHelp.setText("Jmol Help");
178     jmolHelp.addActionListener(new ActionListener()
179     {
180       public void actionPerformed(ActionEvent actionEvent)
181       {
182         jmolHelp_actionPerformed(actionEvent);
183       }
184     });
185     menuBar.add(fileMenu);
186     menuBar.add(viewMenu);
187     menuBar.add(colourMenu);
188     menuBar.add(helpMenu);
189     fileMenu.add(savemenu);
190     fileMenu.add(viewMapping);
191     savemenu.add(pdbFile);
192     savemenu.add(png);
193     savemenu.add(eps);
194     viewMenu.add(chainMenu);
195     colourMenu.add(seqColour);
196     colourMenu.add(chainColour);
197     colourMenu.add(chargeColour);
198     colourMenu.add(zappoColour);
199     colourMenu.add(taylorColour);
200     colourMenu.add(hydroColour);
201     colourMenu.add(helixColour);
202     colourMenu.add(strandColour);
203     colourMenu.add(turnColour);
204     colourMenu.add(buriedColour);
205     colourMenu.add(userColour);
206     colourMenu.add(backGround);
207     helpMenu.add(jmolHelp);
208   }
209
210   JMenuBar menuBar = new JMenuBar();
211
212   JMenu fileMenu = new JMenu();
213
214   JMenu savemenu = new JMenu();
215
216   JMenuItem pdbFile = new JMenuItem();
217
218   JMenuItem png = new JMenuItem();
219
220   JMenuItem eps = new JMenuItem();
221
222   JMenuItem viewMapping = new JMenuItem();
223
224   JMenu viewMenu = new JMenu();
225
226   protected JMenu chainMenu = new JMenu();
227
228   JMenu jMenu1 = new JMenu();
229
230   JMenu colourMenu = new JMenu();
231
232   JMenuItem backGround = new JMenuItem();
233
234   protected JCheckBoxMenuItem seqColour = new JCheckBoxMenuItem();
235
236   JMenuItem chainColour = new JMenuItem();
237
238   JMenuItem chargeColour = new JMenuItem();
239
240   JMenuItem zappoColour = new JMenuItem();
241
242   JMenuItem taylorColour = new JMenuItem();
243
244   JMenuItem hydroColour = new JMenuItem();
245
246   JMenuItem strandColour = new JMenuItem();
247
248   JMenuItem helixColour = new JMenuItem();
249
250   JMenuItem turnColour = new JMenuItem();
251
252   JMenuItem buriedColour = new JMenuItem();
253
254   JMenuItem userColour = new JMenuItem();
255
256   JMenu helpMenu = new JMenu();
257
258   JMenuItem jmolHelp = new JMenuItem();
259
260   public void pdbFile_actionPerformed(ActionEvent actionEvent)
261   {
262
263   }
264
265   public void png_actionPerformed(ActionEvent actionEvent)
266   {
267
268   }
269
270   public void eps_actionPerformed(ActionEvent actionEvent)
271   {
272
273   }
274
275   public void viewMapping_actionPerformed(ActionEvent actionEvent)
276   {
277
278   }
279
280   public void seqColour_actionPerformed(ActionEvent actionEvent)
281   {
282
283   }
284
285   public void chainColour_actionPerformed(ActionEvent actionEvent)
286   {
287
288   }
289
290   public void chargeColour_actionPerformed(ActionEvent actionEvent)
291   {
292
293   }
294
295   public void zappoColour_actionPerformed(ActionEvent actionEvent)
296   {
297
298   }
299
300   public void taylorColour_actionPerformed(ActionEvent actionEvent)
301   {
302
303   }
304
305   public void hydroColour_actionPerformed(ActionEvent actionEvent)
306   {
307
308   }
309
310   public void helixColour_actionPerformed(ActionEvent actionEvent)
311   {
312
313   }
314
315   public void strandColour_actionPerformed(ActionEvent actionEvent)
316   {
317
318   }
319
320   public void turnColour_actionPerformed(ActionEvent actionEvent)
321   {
322
323   }
324
325   public void buriedColour_actionPerformed(ActionEvent actionEvent)
326   {
327
328   }
329
330   public void userColour_actionPerformed(ActionEvent actionEvent)
331   {
332
333   }
334
335   public void backGround_actionPerformed(ActionEvent actionEvent)
336   {
337
338   }
339
340   public void jmolHelp_actionPerformed(ActionEvent actionEvent)
341   {
342
343   }
344 }