2 * Jalview - A Sequence Alignment Editor and Viewer
\r
3 * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
5 * This program is free software; you can redistribute it and/or
\r
6 * modify it under the terms of the GNU General Public License
\r
7 * as published by the Free Software Foundation; either version 2
\r
8 * of the License, or (at your option) any later version.
\r
10 * This program is distributed in the hope that it will be useful,
\r
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 * GNU General Public License for more details.
\r
15 * You should have received a copy of the GNU General Public License
\r
16 * along with this program; if not, write to the Free Software
\r
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
19 package jalview.jbgui;
\r
22 import java.awt.event.*;
\r
23 import javax.swing.*;
\r
24 import javax.swing.event.*;
\r
26 import jalview.schemes.*;
\r
28 public class GAlignFrame
\r
29 extends JInternalFrame
\r
31 protected JMenuBar alignFrameMenuBar = new JMenuBar();
\r
32 protected JMenu fileMenu = new JMenu();
\r
33 protected JMenuItem closeMenuItem = new JMenuItem();
\r
34 protected JMenu editMenu = new JMenu();
\r
35 protected JMenu viewMenu = new JMenu();
\r
36 protected JMenu colourMenu = new JMenu();
\r
37 protected JMenu calculateMenu = new JMenu();
\r
38 protected JMenu webService = new JMenu();
\r
39 protected JMenuItem webServiceNoServices;
\r
40 protected JMenuItem selectAllSequenceMenuItem = new JMenuItem();
\r
41 protected JMenuItem deselectAllSequenceMenuItem = new JMenuItem();
\r
42 protected JMenuItem invertSequenceMenuItem = new JMenuItem();
\r
43 protected JMenuItem remove2LeftMenuItem = new JMenuItem();
\r
44 protected JMenuItem remove2RightMenuItem = new JMenuItem();
\r
45 protected JMenuItem removeGappedColumnMenuItem = new JMenuItem();
\r
46 protected JMenuItem removeAllGapsMenuItem = new JMenuItem();
\r
47 public JCheckBoxMenuItem viewBoxesMenuItem = new JCheckBoxMenuItem();
\r
48 public JCheckBoxMenuItem viewTextMenuItem = new JCheckBoxMenuItem();
\r
49 protected JMenuItem sortPairwiseMenuItem = new JMenuItem();
\r
50 protected JMenuItem sortIDMenuItem = new JMenuItem();
\r
51 protected JMenuItem sortGroupMenuItem = new JMenuItem();
\r
52 protected JMenuItem removeRedundancyMenuItem = new JMenuItem();
\r
53 protected JMenuItem pairwiseAlignmentMenuItem = new JMenuItem();
\r
54 protected JMenuItem PCAMenuItem = new JMenuItem();
\r
55 protected JMenuItem averageDistanceTreeMenuItem = new JMenuItem();
\r
56 protected JMenuItem neighbourTreeMenuItem = new JMenuItem();
\r
57 BorderLayout borderLayout1 = new BorderLayout();
\r
58 public JLabel statusBar = new JLabel();
\r
59 protected JMenuItem saveAs = new JMenuItem();
\r
60 protected JMenu outputTextboxMenu = new JMenu();
\r
61 protected JRadioButtonMenuItem clustalColour = new JRadioButtonMenuItem();
\r
62 protected JRadioButtonMenuItem zappoColour = new JRadioButtonMenuItem();
\r
63 protected JRadioButtonMenuItem taylorColour = new JRadioButtonMenuItem();
\r
64 protected JRadioButtonMenuItem hydrophobicityColour = new
\r
65 JRadioButtonMenuItem();
\r
66 protected JRadioButtonMenuItem helixColour = new JRadioButtonMenuItem();
\r
67 protected JRadioButtonMenuItem strandColour = new JRadioButtonMenuItem();
\r
68 protected JRadioButtonMenuItem turnColour = new JRadioButtonMenuItem();
\r
69 protected JRadioButtonMenuItem buriedColour = new JRadioButtonMenuItem();
\r
70 protected JRadioButtonMenuItem userDefinedColour = new JRadioButtonMenuItem();
\r
71 protected JRadioButtonMenuItem PIDColour = new JRadioButtonMenuItem();
\r
72 protected JRadioButtonMenuItem BLOSUM62Colour = new JRadioButtonMenuItem();
\r
73 JMenuItem njTreeBlosumMenuItem = new JMenuItem();
\r
74 JMenuItem avDistanceTreeBlosumMenuItem = new JMenuItem();
\r
75 public JCheckBoxMenuItem annotationPanelMenuItem = new JCheckBoxMenuItem();
\r
76 public JCheckBoxMenuItem colourTextMenuItem = new JCheckBoxMenuItem();
\r
77 JMenuItem htmlMenuItem = new JMenuItem();
\r
78 JMenuItem overviewMenuItem = new JMenuItem();
\r
79 protected JMenuItem undoMenuItem = new JMenuItem();
\r
80 protected JMenuItem redoMenuItem = new JMenuItem();
\r
81 public JCheckBoxMenuItem conservationMenuItem = new JCheckBoxMenuItem();
\r
82 JRadioButtonMenuItem noColourmenuItem = new JRadioButtonMenuItem();
\r
83 public JCheckBoxMenuItem wrapMenuItem = new JCheckBoxMenuItem();
\r
84 JMenuItem printMenuItem = new JMenuItem();
\r
85 public JCheckBoxMenuItem renderGapsMenuItem = new JCheckBoxMenuItem();
\r
86 JMenuItem findMenuItem = new JMenuItem();
\r
87 public JCheckBoxMenuItem abovePIDThreshold = new JCheckBoxMenuItem();
\r
88 public JCheckBoxMenuItem showSeqFeatures = new JCheckBoxMenuItem();
\r
89 protected JRadioButtonMenuItem nucleotideColour = new JRadioButtonMenuItem();
\r
90 JMenuItem deleteGroups = new JMenuItem();
\r
91 JMenuItem delete = new JMenuItem();
\r
92 JMenuItem copy = new JMenuItem();
\r
93 JMenuItem cut = new JMenuItem();
\r
94 JMenu pasteMenu = new JMenu();
\r
95 JMenuItem pasteNew = new JMenuItem();
\r
96 JMenuItem pasteThis = new JMenuItem();
\r
97 public JCheckBoxMenuItem applyToAllGroups = new JCheckBoxMenuItem();
\r
98 JMenuItem createPNG = new JMenuItem();
\r
99 protected JMenuItem font = new JMenuItem();
\r
100 public JCheckBoxMenuItem seqLimits = new JCheckBoxMenuItem();
\r
101 JMenuItem epsFile = new JMenuItem();
\r
102 JMenuItem LoadtreeMenuItem = new JMenuItem();
\r
103 public JCheckBoxMenuItem scaleAbove = new JCheckBoxMenuItem();
\r
104 public JCheckBoxMenuItem scaleLeft = new JCheckBoxMenuItem();
\r
105 public JCheckBoxMenuItem scaleRight = new JCheckBoxMenuItem();
\r
106 protected JMenuItem modifyPID = new JMenuItem();
\r
107 protected JMenuItem modifyConservation = new JMenuItem();
\r
108 protected JMenu sortByTreeMenu = new JMenu();
\r
109 protected JMenu sort = new JMenu();
\r
110 JMenu calculate = new JMenu();
\r
111 JMenu jMenu2 = new JMenu();
\r
112 protected JCheckBoxMenuItem padGapsMenuitem = new JCheckBoxMenuItem();
\r
113 protected ButtonGroup colours = new ButtonGroup();
\r
114 JMenuItem vamsasStore = new JMenuItem();
\r
115 protected JMenuItem showTranslation = new JMenuItem();
\r
116 public JMenuItem featureSettings = new JMenuItem();
\r
117 JMenuItem fetchSequence = new JMenuItem();
\r
118 JMenuItem annotationColour = new JMenuItem();
\r
119 JMenuItem associatedData = new JMenuItem();
\r
120 protected JCheckBoxMenuItem autoCalculate = new JCheckBoxMenuItem();
\r
121 JMenu addSequenceMenu = new JMenu();
\r
122 JMenuItem addFromFile = new JMenuItem();
\r
123 JMenuItem addFromText = new JMenuItem();
\r
124 JMenuItem addFromURL = new JMenuItem();
\r
125 JMenuItem exportAnnotations = new JMenuItem();
\r
126 JMenuItem exportFeatures = new JMenuItem();
\r
127 protected JPanel statusPanel = new JPanel();
\r
128 GridLayout gridLayout1 = new GridLayout();
\r
129 JMenu jMenu3 = new JMenu();
\r
130 JMenuItem showAllSeqs = new JMenuItem();
\r
131 JMenuItem showAllColumns = new JMenuItem();
\r
132 JMenu hideMenu = new JMenu();
\r
133 JMenuItem hideSelSequences = new JMenuItem();
\r
134 JMenuItem hideSelColumns = new JMenuItem();
\r
135 protected JCheckBoxMenuItem hiddenMarkers = new JCheckBoxMenuItem();
\r
136 JMenuItem invertColSel = new JMenuItem();
\r
137 protected JTabbedPane tabbedPane = new JTabbedPane();
\r
138 JMenuItem save = new JMenuItem();
\r
139 protected JMenuItem reload = new JMenuItem();
\r
140 JMenuItem newView = new JMenuItem();
\r
141 JMenuItem textColour = new JMenuItem();
\r
142 JMenu formatMenu = new JMenu();
\r
143 JMenu selectMenu = new JMenu();
\r
144 protected JCheckBoxMenuItem idRightAlign = new JCheckBoxMenuItem();
\r
145 protected JMenuItem gatherViews = new JMenuItem();
\r
146 protected JMenuItem expandViews = new JMenuItem();
\r
147 JMenuItem pageSetup = new JMenuItem();
\r
148 public GAlignFrame()
\r
153 setJMenuBar(alignFrameMenuBar);
\r
155 // dynamically fill save as menu with available formats
\r
156 for (int i = 0; i < jalview.io.FormatAdapter.WRITEABLE_FORMATS.length; i++)
\r
158 JMenuItem item = new JMenuItem(jalview.io.FormatAdapter.
\r
159 WRITEABLE_FORMATS[i]);
\r
161 item.addActionListener(new java.awt.event.ActionListener()
\r
163 public void actionPerformed(ActionEvent e)
\r
165 outputText_actionPerformed(e);
\r
169 outputTextboxMenu.add(item);
\r
172 catch (Exception e)
\r
176 if (!System.getProperty("os.name").startsWith("Mac"))
\r
178 closeMenuItem.setMnemonic('C');
\r
179 outputTextboxMenu.setMnemonic('T');
\r
180 undoMenuItem.setMnemonic('Z');
\r
181 redoMenuItem.setMnemonic('0');
\r
182 copy.setMnemonic('C');
\r
183 cut.setMnemonic('U');
\r
184 pasteMenu.setMnemonic('P');
\r
185 reload.setMnemonic('R');
\r
188 if (jalview.gui.UserDefinedColours.getUserColourSchemes() != null)
\r
190 java.util.Enumeration userColours = jalview.gui.UserDefinedColours.
\r
191 getUserColourSchemes().keys();
\r
193 while (userColours.hasMoreElements())
\r
195 final JRadioButtonMenuItem radioItem = new JRadioButtonMenuItem(
\r
197 nextElement().toString());
\r
198 radioItem.setName("USER_DEFINED");
\r
199 radioItem.addMouseListener(new MouseAdapter()
\r
201 public void mousePressed(MouseEvent evt)
\r
203 if (evt.isControlDown() || SwingUtilities.isRightMouseButton(evt))
\r
205 radioItem.removeActionListener(radioItem.getActionListeners()[0]);
\r
207 int option = JOptionPane.showInternalConfirmDialog(jalview.gui.
\r
209 "Remove from default list?",
\r
210 "Remove user defined colour",
\r
211 JOptionPane.YES_NO_OPTION);
\r
212 if (option == JOptionPane.YES_OPTION)
\r
214 jalview.gui.UserDefinedColours.removeColourFromDefaults(
\r
215 radioItem.getText());
\r
216 colourMenu.remove(radioItem);
\r
220 radioItem.addActionListener(new ActionListener()
\r
222 public void actionPerformed(ActionEvent evt)
\r
224 userDefinedColour_actionPerformed(evt);
\r
231 radioItem.addActionListener(new ActionListener()
\r
233 public void actionPerformed(ActionEvent evt)
\r
235 userDefinedColour_actionPerformed(evt);
\r
238 colourMenu.insert(radioItem, 15);
\r
239 colours.add(radioItem);
\r
242 colours.add(noColourmenuItem);
\r
243 colours.add(clustalColour);
\r
244 colours.add(zappoColour);
\r
245 colours.add(taylorColour);
\r
246 colours.add(hydrophobicityColour);
\r
247 colours.add(helixColour);
\r
248 colours.add(strandColour);
\r
249 colours.add(turnColour);
\r
250 colours.add(buriedColour);
\r
251 colours.add(userDefinedColour);
\r
252 colours.add(PIDColour);
\r
253 colours.add(BLOSUM62Colour);
\r
254 colours.add(nucleotideColour);
\r
256 setColourSelected(jalview.bin.Cache.getDefault("DEFAULT_COLOUR", "None"));
\r
260 public void setColourSelected(String defaultColour)
\r
263 if (defaultColour != null)
\r
265 int index = ColourSchemeProperty.getColourIndexFromName(defaultColour);
\r
269 case ColourSchemeProperty.NONE:
\r
270 noColourmenuItem.setSelected(true);
\r
272 case ColourSchemeProperty.CLUSTAL:
\r
273 clustalColour.setSelected(true);
\r
277 case ColourSchemeProperty.BLOSUM:
\r
278 BLOSUM62Colour.setSelected(true);
\r
282 case ColourSchemeProperty.PID:
\r
283 PIDColour.setSelected(true);
\r
287 case ColourSchemeProperty.ZAPPO:
\r
288 zappoColour.setSelected(true);
\r
292 case ColourSchemeProperty.TAYLOR:
\r
293 taylorColour.setSelected(true);
\r
296 case ColourSchemeProperty.HYDROPHOBIC:
\r
297 hydrophobicityColour.setSelected(true);
\r
301 case ColourSchemeProperty.HELIX:
\r
302 helixColour.setSelected(true);
\r
306 case ColourSchemeProperty.STRAND:
\r
307 strandColour.setSelected(true);
\r
311 case ColourSchemeProperty.TURN:
\r
312 turnColour.setSelected(true);
\r
316 case ColourSchemeProperty.BURIED:
\r
317 buriedColour.setSelected(true);
\r
321 case ColourSchemeProperty.NUCLEOTIDE:
\r
322 nucleotideColour.setSelected(true);
\r
326 case ColourSchemeProperty.USER_DEFINED:
\r
327 userDefinedColour.setSelected(true);
\r
335 private void jbInit()
\r
338 fileMenu.setText("File");
\r
339 saveAs.setText("Save As...");
\r
340 saveAs.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.
\r
342 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() |
\r
343 java.awt.event.KeyEvent.SHIFT_MASK, false));
\r
344 saveAs.addActionListener(new ActionListener()
\r
346 public void actionPerformed(ActionEvent e)
\r
348 saveAs_actionPerformed(e);
\r
351 closeMenuItem.setText("Close");
\r
352 closeMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.
\r
353 event.KeyEvent.VK_W, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
\r
354 closeMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
356 public void actionPerformed(ActionEvent e)
\r
358 closeMenuItem_actionPerformed(false);
\r
361 editMenu.setText("Edit");
\r
362 viewMenu.setText("View");
\r
363 colourMenu.setText("Colour");
\r
364 calculateMenu.setText("Calculate");
\r
365 webService.setText("Web Service");
\r
366 selectAllSequenceMenuItem.setText("Select All");
\r
367 selectAllSequenceMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
\r
368 java.awt.event.KeyEvent.VK_A,
\r
369 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
\r
370 selectAllSequenceMenuItem.addActionListener(new java.awt.event.
\r
373 public void actionPerformed(ActionEvent e)
\r
375 selectAllSequenceMenuItem_actionPerformed(e);
\r
378 deselectAllSequenceMenuItem.setText("Deselect All");
\r
379 deselectAllSequenceMenuItem.setAccelerator(javax.swing.KeyStroke.
\r
381 java.awt.event.KeyEvent.VK_ESCAPE, 0, false));
\r
382 deselectAllSequenceMenuItem.addActionListener(new java.awt.event.
\r
385 public void actionPerformed(ActionEvent e)
\r
387 deselectAllSequenceMenuItem_actionPerformed(e);
\r
390 invertSequenceMenuItem.setText("Invert Sequence Selection");
\r
391 invertSequenceMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
\r
392 java.awt.event.KeyEvent.VK_I,
\r
393 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
\r
394 invertSequenceMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
396 public void actionPerformed(ActionEvent e)
\r
398 invertSequenceMenuItem_actionPerformed(e);
\r
401 remove2LeftMenuItem.setText("Remove Left");
\r
402 remove2LeftMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.
\r
403 awt.event.KeyEvent.VK_L,
\r
404 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
\r
405 remove2LeftMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
407 public void actionPerformed(ActionEvent e)
\r
409 remove2LeftMenuItem_actionPerformed(e);
\r
412 remove2RightMenuItem.setText("Remove Right");
\r
413 remove2RightMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.
\r
414 awt.event.KeyEvent.VK_R,
\r
415 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
\r
416 remove2RightMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
418 public void actionPerformed(ActionEvent e)
\r
420 remove2RightMenuItem_actionPerformed(e);
\r
423 removeGappedColumnMenuItem.setText("Remove Empty Columns");
\r
424 removeGappedColumnMenuItem.setAccelerator(javax.swing.KeyStroke.
\r
425 getKeyStroke(java.awt.event.
\r
426 KeyEvent.VK_E, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
\r
427 removeGappedColumnMenuItem.addActionListener(new java.awt.event.
\r
430 public void actionPerformed(ActionEvent e)
\r
432 removeGappedColumnMenuItem_actionPerformed(e);
\r
435 removeAllGapsMenuItem.setText("Remove All Gaps");
\r
436 removeAllGapsMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
\r
437 java.awt.event.KeyEvent.VK_E,
\r
438 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() |
\r
439 java.awt.event.KeyEvent.SHIFT_MASK, false));
\r
440 removeAllGapsMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
442 public void actionPerformed(ActionEvent e)
\r
444 removeAllGapsMenuItem_actionPerformed(e);
\r
447 viewBoxesMenuItem.setText("Boxes");
\r
448 viewBoxesMenuItem.setState(true);
\r
449 viewBoxesMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
451 public void actionPerformed(ActionEvent e)
\r
453 viewBoxesMenuItem_actionPerformed(e);
\r
456 viewTextMenuItem.setText("Text");
\r
457 viewTextMenuItem.setState(true);
\r
458 viewTextMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
460 public void actionPerformed(ActionEvent e)
\r
462 viewTextMenuItem_actionPerformed(e);
\r
465 sortPairwiseMenuItem.setText("by Pairwise Identity");
\r
466 sortPairwiseMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
468 public void actionPerformed(ActionEvent e)
\r
470 sortPairwiseMenuItem_actionPerformed(e);
\r
473 sortIDMenuItem.setText("by ID");
\r
474 sortIDMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
476 public void actionPerformed(ActionEvent e)
\r
478 sortIDMenuItem_actionPerformed(e);
\r
481 sortGroupMenuItem.setText("by Group");
\r
482 sortGroupMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
484 public void actionPerformed(ActionEvent e)
\r
486 sortGroupMenuItem_actionPerformed(e);
\r
489 removeRedundancyMenuItem.setText("Remove Redundancy...");
\r
490 removeRedundancyMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
\r
491 java.awt.event.KeyEvent.VK_D,
\r
492 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
\r
493 removeRedundancyMenuItem.addActionListener(new java.awt.event.
\r
496 public void actionPerformed(ActionEvent e)
\r
498 removeRedundancyMenuItem_actionPerformed(e);
\r
501 pairwiseAlignmentMenuItem.setText("Pairwise Alignments...");
\r
502 pairwiseAlignmentMenuItem.addActionListener(new java.awt.event.
\r
505 public void actionPerformed(ActionEvent e)
\r
507 pairwiseAlignmentMenuItem_actionPerformed(e);
\r
510 PCAMenuItem.setText("Principal Component Analysis");
\r
511 PCAMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
513 public void actionPerformed(ActionEvent e)
\r
515 PCAMenuItem_actionPerformed(e);
\r
518 averageDistanceTreeMenuItem.setText(
\r
519 "Average Distance Using % Identity");
\r
520 averageDistanceTreeMenuItem.addActionListener(new java.awt.event.
\r
523 public void actionPerformed(ActionEvent e)
\r
525 averageDistanceTreeMenuItem_actionPerformed(e);
\r
528 neighbourTreeMenuItem.setText("Neighbour Joining Using % Identity");
\r
529 neighbourTreeMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
531 public void actionPerformed(ActionEvent e)
\r
533 neighbourTreeMenuItem_actionPerformed(e);
\r
536 this.getContentPane().setLayout(borderLayout1);
\r
537 alignFrameMenuBar.setFont(new java.awt.Font("Verdana", 0, 11));
\r
538 statusBar.setBackground(Color.white);
\r
539 statusBar.setFont(new java.awt.Font("Verdana", 0, 11));
\r
540 statusBar.setBorder(BorderFactory.createLineBorder(Color.black));
\r
541 statusBar.setText("Status bar");
\r
542 outputTextboxMenu.setText("Output to Textbox");
\r
543 clustalColour.setText("Clustalx");
\r
545 clustalColour.addActionListener(new java.awt.event.ActionListener()
\r
547 public void actionPerformed(ActionEvent e)
\r
549 clustalColour_actionPerformed(e);
\r
552 zappoColour.setText("Zappo");
\r
553 zappoColour.addActionListener(new java.awt.event.ActionListener()
\r
555 public void actionPerformed(ActionEvent e)
\r
557 zappoColour_actionPerformed(e);
\r
560 taylorColour.setText("Taylor");
\r
561 taylorColour.addActionListener(new java.awt.event.ActionListener()
\r
563 public void actionPerformed(ActionEvent e)
\r
565 taylorColour_actionPerformed(e);
\r
568 hydrophobicityColour.setText("Hydrophobicity");
\r
569 hydrophobicityColour.addActionListener(new java.awt.event.ActionListener()
\r
571 public void actionPerformed(ActionEvent e)
\r
573 hydrophobicityColour_actionPerformed(e);
\r
576 helixColour.setText("Helix Propensity");
\r
577 helixColour.addActionListener(new java.awt.event.ActionListener()
\r
579 public void actionPerformed(ActionEvent e)
\r
581 helixColour_actionPerformed(e);
\r
584 strandColour.setText("Strand Propensity");
\r
585 strandColour.addActionListener(new java.awt.event.ActionListener()
\r
587 public void actionPerformed(ActionEvent e)
\r
589 strandColour_actionPerformed(e);
\r
592 turnColour.setText("Turn Propensity");
\r
593 turnColour.addActionListener(new java.awt.event.ActionListener()
\r
595 public void actionPerformed(ActionEvent e)
\r
597 turnColour_actionPerformed(e);
\r
600 buriedColour.setText("Buried Index");
\r
601 buriedColour.addActionListener(new java.awt.event.ActionListener()
\r
603 public void actionPerformed(ActionEvent e)
\r
605 buriedColour_actionPerformed(e);
\r
608 userDefinedColour.setText("User Defined...");
\r
609 userDefinedColour.addActionListener(new java.awt.event.ActionListener()
\r
611 public void actionPerformed(ActionEvent e)
\r
613 userDefinedColour_actionPerformed(e);
\r
616 PIDColour.setText("Percentage Identity");
\r
617 PIDColour.addActionListener(new java.awt.event.ActionListener()
\r
619 public void actionPerformed(ActionEvent e)
\r
621 PIDColour_actionPerformed(e);
\r
624 BLOSUM62Colour.setText("BLOSUM62 Score");
\r
625 BLOSUM62Colour.addActionListener(new java.awt.event.ActionListener()
\r
627 public void actionPerformed(ActionEvent e)
\r
629 BLOSUM62Colour_actionPerformed(e);
\r
632 avDistanceTreeBlosumMenuItem.setText(
\r
633 "Average Distance Using BLOSUM62");
\r
634 avDistanceTreeBlosumMenuItem.addActionListener(new java.awt.event.
\r
637 public void actionPerformed(ActionEvent e)
\r
639 avTreeBlosumMenuItem_actionPerformed(e);
\r
642 njTreeBlosumMenuItem.setText("Neighbour Joining using BLOSUM62");
\r
643 njTreeBlosumMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
645 public void actionPerformed(ActionEvent e)
\r
647 njTreeBlosumMenuItem_actionPerformed(e);
\r
650 annotationPanelMenuItem.setActionCommand("");
\r
651 annotationPanelMenuItem.setText("Show Annotations");
\r
652 annotationPanelMenuItem.setState(jalview.bin.Cache.getDefault(
\r
653 "SHOW_ANNOTATIONS", true));
\r
654 annotationPanelMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
656 public void actionPerformed(ActionEvent e)
\r
658 annotationPanelMenuItem_actionPerformed(e);
\r
661 colourTextMenuItem.setText("Colour Text");
\r
662 colourTextMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
664 public void actionPerformed(ActionEvent e)
\r
666 colourTextMenuItem_actionPerformed(e);
\r
669 htmlMenuItem.setText("HTML");
\r
670 htmlMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
672 public void actionPerformed(ActionEvent e)
\r
674 htmlMenuItem_actionPerformed(e);
\r
677 overviewMenuItem.setText("Overview Window");
\r
678 overviewMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
680 public void actionPerformed(ActionEvent e)
\r
682 overviewMenuItem_actionPerformed(e);
\r
685 undoMenuItem.setEnabled(false);
\r
686 undoMenuItem.setText("Undo");
\r
687 undoMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
\r
688 java.awt.event.KeyEvent.VK_Z,
\r
689 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
\r
690 undoMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
692 public void actionPerformed(ActionEvent e)
\r
694 undoMenuItem_actionPerformed(e);
\r
697 redoMenuItem.setEnabled(false);
\r
698 redoMenuItem.setText("Redo");
\r
699 redoMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.
\r
700 event.KeyEvent.VK_Y, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
\r
701 redoMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
703 public void actionPerformed(ActionEvent e)
\r
705 redoMenuItem_actionPerformed(e);
\r
708 conservationMenuItem.setText("By Conservation");
\r
709 conservationMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
711 public void actionPerformed(ActionEvent e)
\r
713 conservationMenuItem_actionPerformed(e);
\r
716 noColourmenuItem.setText("None");
\r
717 noColourmenuItem.addActionListener(new java.awt.event.ActionListener()
\r
719 public void actionPerformed(ActionEvent e)
\r
721 noColourmenuItem_actionPerformed(e);
\r
724 wrapMenuItem.setText("Wrap");
\r
725 wrapMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
727 public void actionPerformed(ActionEvent e)
\r
729 wrapMenuItem_actionPerformed(e);
\r
732 printMenuItem.setText("Print ...");
\r
733 printMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.
\r
734 event.KeyEvent.VK_P, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
\r
735 printMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
737 public void actionPerformed(ActionEvent e)
\r
739 printMenuItem_actionPerformed(e);
\r
742 renderGapsMenuItem.setText("Show Gaps");
\r
743 renderGapsMenuItem.setState(true);
\r
744 renderGapsMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
746 public void actionPerformed(ActionEvent e)
\r
748 renderGapsMenuItem_actionPerformed(e);
\r
751 findMenuItem.setText("Find...");
\r
752 findMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
\r
753 java.awt.event.KeyEvent.VK_F,
\r
754 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
\r
755 findMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
757 public void actionPerformed(ActionEvent e)
\r
759 findMenuItem_actionPerformed(e);
\r
762 abovePIDThreshold.setText("Above Identity Threshold");
\r
763 abovePIDThreshold.addActionListener(new java.awt.event.ActionListener()
\r
765 public void actionPerformed(ActionEvent e)
\r
767 abovePIDThreshold_actionPerformed(e);
\r
770 showSeqFeatures.setText("Show Sequence Features");
\r
771 showSeqFeatures.addActionListener(new ActionListener()
\r
773 public void actionPerformed(ActionEvent actionEvent)
\r
775 showSeqFeatures_actionPerformed(actionEvent);
\r
778 nucleotideColour.setText("Nucleotide");
\r
779 nucleotideColour.addActionListener(new java.awt.event.ActionListener()
\r
781 public void actionPerformed(ActionEvent e)
\r
783 nucleotideColour_actionPerformed(e);
\r
786 deleteGroups.setText("Undefine groups");
\r
787 deleteGroups.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.
\r
788 event.KeyEvent.VK_U, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
\r
789 deleteGroups.addActionListener(new java.awt.event.ActionListener()
\r
791 public void actionPerformed(ActionEvent e)
\r
793 deleteGroups_actionPerformed(e);
\r
796 copy.setText("Copy");
\r
797 copy.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
\r
798 java.awt.event.KeyEvent.VK_C,
\r
799 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
\r
801 copy.addActionListener(new java.awt.event.ActionListener()
\r
803 public void actionPerformed(ActionEvent e)
\r
805 copy_actionPerformed(e);
\r
808 cut.setText("Cut");
\r
809 cut.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
\r
810 java.awt.event.KeyEvent.VK_X,
\r
811 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
\r
812 cut.addActionListener(new java.awt.event.ActionListener()
\r
814 public void actionPerformed(ActionEvent e)
\r
816 cut_actionPerformed(e);
\r
819 delete.setText("Delete");
\r
820 delete.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.
\r
821 KeyEvent.VK_BACK_SPACE, 0, false));
\r
822 delete.addActionListener(new java.awt.event.ActionListener()
\r
824 public void actionPerformed(ActionEvent e)
\r
826 delete_actionPerformed(e);
\r
829 pasteMenu.setText("Paste");
\r
830 pasteNew.setText("To New Alignment");
\r
831 pasteNew.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
\r
832 java.awt.event.KeyEvent.VK_V,
\r
833 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() |
\r
834 java.awt.event.KeyEvent.SHIFT_MASK, false));
\r
835 pasteNew.addActionListener(new java.awt.event.ActionListener()
\r
837 public void actionPerformed(ActionEvent e)
\r
839 pasteNew_actionPerformed(e);
\r
842 pasteThis.setText("Add To This Alignment");
\r
843 pasteThis.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
\r
844 java.awt.event.KeyEvent.VK_V,
\r
845 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
\r
846 pasteThis.addActionListener(new java.awt.event.ActionListener()
\r
848 public void actionPerformed(ActionEvent e)
\r
850 pasteThis_actionPerformed(e);
\r
853 applyToAllGroups.setText("Apply Colour To All Groups");
\r
854 applyToAllGroups.addActionListener(new java.awt.event.ActionListener()
\r
856 public void actionPerformed(ActionEvent e)
\r
858 applyToAllGroups_actionPerformed(e);
\r
861 createPNG.addActionListener(new java.awt.event.ActionListener()
\r
863 public void actionPerformed(ActionEvent e)
\r
868 createPNG.setActionCommand("Save As PNG Image");
\r
869 createPNG.setText("PNG");
\r
870 font.setText("Font...");
\r
871 font.addActionListener(new java.awt.event.ActionListener()
\r
873 public void actionPerformed(ActionEvent e)
\r
875 font_actionPerformed(e);
\r
879 seqLimits.setText("Show Sequence Limits");
\r
880 seqLimits.setState(jalview.bin.Cache.getDefault("SHOW_JVSUFFIX", true));
\r
881 seqLimits.addActionListener(new java.awt.event.ActionListener()
\r
883 public void actionPerformed(ActionEvent e)
\r
885 seqLimit_actionPerformed(e);
\r
888 epsFile.setText("EPS");
\r
889 epsFile.addActionListener(new java.awt.event.ActionListener()
\r
891 public void actionPerformed(ActionEvent e)
\r
896 LoadtreeMenuItem.setActionCommand("Load a tree for this sequence set");
\r
897 LoadtreeMenuItem.setText("Load Associated Tree");
\r
898 LoadtreeMenuItem.addActionListener(new java.awt.event.ActionListener()
\r
900 public void actionPerformed(ActionEvent e)
\r
902 LoadtreeMenuItem_actionPerformed(e);
\r
905 scaleAbove.setVisible(false);
\r
906 scaleAbove.setText("Scale Above");
\r
907 scaleAbove.addActionListener(new java.awt.event.ActionListener()
\r
909 public void actionPerformed(ActionEvent e)
\r
911 scaleAbove_actionPerformed(e);
\r
914 scaleLeft.setVisible(false);
\r
915 scaleLeft.setSelected(true);
\r
916 scaleLeft.setText("Scale Left");
\r
917 scaleLeft.addActionListener(new java.awt.event.ActionListener()
\r
919 public void actionPerformed(ActionEvent e)
\r
921 scaleLeft_actionPerformed(e);
\r
924 scaleRight.setVisible(false);
\r
925 scaleRight.setSelected(true);
\r
926 scaleRight.setText("Scale Right");
\r
927 scaleRight.addActionListener(new java.awt.event.ActionListener()
\r
929 public void actionPerformed(ActionEvent e)
\r
931 scaleRight_actionPerformed(e);
\r
934 modifyPID.setText("Modify Identity Threshold...");
\r
935 modifyPID.addActionListener(new java.awt.event.ActionListener()
\r
937 public void actionPerformed(ActionEvent e)
\r
939 modifyPID_actionPerformed(e);
\r
942 modifyConservation.setText("Modify Conservation Threshold...");
\r
943 modifyConservation.addActionListener(new java.awt.event.ActionListener()
\r
945 public void actionPerformed(ActionEvent e)
\r
947 modifyConservation_actionPerformed(e);
\r
950 sortByTreeMenu.setText("By Tree Order");
\r
951 sort.setText("Sort");
\r
952 sort.addMenuListener(new MenuListener()
\r
954 public void menuSelected(MenuEvent e)
\r
959 public void menuDeselected(MenuEvent e)
\r
963 public void menuCanceled(MenuEvent e)
\r
967 calculate.setText("Calculate Tree");
\r
969 jMenu2.setText("Export Image");
\r
970 padGapsMenuitem.setText("Pad Gaps");
\r
971 padGapsMenuitem.setState(jalview.bin.Cache.getDefault("PAD_GAPS", false));
\r
972 padGapsMenuitem.addActionListener(new ActionListener()
\r
974 public void actionPerformed(ActionEvent e)
\r
976 padGapsMenuitem_actionPerformed(e);
\r
979 vamsasStore.setVisible(false);
\r
980 vamsasStore.setText("VAMSAS store");
\r
981 vamsasStore.addActionListener(new ActionListener()
\r
983 public void actionPerformed(ActionEvent e)
\r
985 vamsasStore_actionPerformed(e);
\r
988 showTranslation.setText("Translate cDNA");
\r
989 showTranslation.addActionListener(new ActionListener()
\r
991 public void actionPerformed(ActionEvent e)
\r
993 showTranslation_actionPerformed(e);
\r
997 featureSettings.setText("Feature Settings...");
\r
998 featureSettings.addActionListener(new ActionListener()
\r
1000 public void actionPerformed(ActionEvent e)
\r
1002 featureSettings_actionPerformed(e);
\r
1005 fetchSequence.setText("Fetch Sequence(s)...");
\r
1006 fetchSequence.addActionListener(new ActionListener()
\r
1008 public void actionPerformed(ActionEvent e)
\r
1010 fetchSequence_actionPerformed(e);
\r
1014 annotationColour.setText("By Annotation...");
\r
1015 annotationColour.addActionListener(new ActionListener()
\r
1017 public void actionPerformed(ActionEvent e)
\r
1019 annotationColour_actionPerformed(e);
\r
1022 associatedData.setText("Load Features / Annotations");
\r
1023 associatedData.addActionListener(new ActionListener()
\r
1025 public void actionPerformed(ActionEvent e)
\r
1027 associatedData_actionPerformed(e);
\r
1030 autoCalculate.setText("Autocalculate Consensus");
\r
1031 autoCalculate.setState(jalview.bin.Cache.getDefault("AUTO_CALC_CONSENSUS", true));
\r
1032 autoCalculate.addActionListener(new ActionListener()
\r
1034 public void actionPerformed(ActionEvent e)
\r
1036 autoCalculate_actionPerformed(e);
\r
1039 addSequenceMenu.setText("Add Sequences");
\r
1040 addFromFile.setText("From File");
\r
1041 addFromFile.addActionListener(new ActionListener()
\r
1043 public void actionPerformed(ActionEvent e)
\r
1045 addFromFile_actionPerformed(e);
\r
1048 addFromText.setText("From Textbox");
\r
1049 addFromText.addActionListener(new ActionListener()
\r
1051 public void actionPerformed(ActionEvent e)
\r
1053 addFromText_actionPerformed(e);
\r
1056 addFromURL.setText("From URL");
\r
1057 addFromURL.addActionListener(new ActionListener()
\r
1059 public void actionPerformed(ActionEvent e)
\r
1061 addFromURL_actionPerformed(e);
\r
1064 exportFeatures.setText("Export Features...");
\r
1065 exportFeatures.addActionListener(new ActionListener()
\r
1067 public void actionPerformed(ActionEvent e)
\r
1069 exportFeatures_actionPerformed(e);
\r
1072 exportAnnotations.setText("Export Annotations...");
\r
1073 exportAnnotations.addActionListener(new ActionListener()
\r
1075 public void actionPerformed(ActionEvent e)
\r
1077 exportAnnotations_actionPerformed(e);
\r
1080 statusPanel.setLayout(gridLayout1);
\r
1081 jMenu3.setText("Show");
\r
1082 showAllSeqs.setText("All Sequences");
\r
1083 showAllSeqs.addActionListener(new ActionListener()
\r
1085 public void actionPerformed(ActionEvent e)
\r
1087 showAllSeqs_actionPerformed(e);
\r
1090 showAllColumns.setText("All Columns");
\r
1091 showAllColumns.addActionListener(new ActionListener()
\r
1093 public void actionPerformed(ActionEvent e)
\r
1095 showAllColumns_actionPerformed(e);
\r
1098 hideMenu.setText("Hide");
\r
1099 hideSelSequences.setText("Selected Sequences");
\r
1100 hideSelSequences.addActionListener(new ActionListener()
\r
1102 public void actionPerformed(ActionEvent e)
\r
1104 hideSelSequences_actionPerformed(e);
\r
1107 hideSelColumns.setText("Selected Columns");
\r
1108 hideSelColumns.addActionListener(new ActionListener()
\r
1110 public void actionPerformed(ActionEvent e)
\r
1112 hideSelColumns_actionPerformed(e);
\r
1115 hiddenMarkers.setText("Show Hidden Markers");
\r
1116 hiddenMarkers.addActionListener(new ActionListener()
\r
1118 public void actionPerformed(ActionEvent e)
\r
1120 hiddenMarkers_actionPerformed(e);
\r
1123 invertColSel.setText("Invert Column Selection");
\r
1124 invertColSel.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.
\r
1125 event.KeyEvent.VK_I,
\r
1126 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()
\r
1127 | java.awt.event.KeyEvent.ALT_MASK,
\r
1129 invertColSel.addActionListener(new ActionListener()
\r
1131 public void actionPerformed(ActionEvent e)
\r
1133 invertColSel_actionPerformed(e);
\r
1136 tabbedPane.addChangeListener(new javax.swing.event.ChangeListener()
\r
1138 public void stateChanged(ChangeEvent evt)
\r
1140 JTabbedPane pane = (JTabbedPane) evt.getSource();
\r
1141 int sel = pane.getSelectedIndex();
\r
1142 tabSelectionChanged(sel);
\r
1145 tabbedPane.addMouseListener(new MouseAdapter()
\r
1147 public void mousePressed(MouseEvent e)
\r
1149 tabbedPane_mousePressed(e);
\r
1152 tabbedPane.addFocusListener(new FocusAdapter()
\r
1154 public void focusGained(FocusEvent e)
\r
1156 tabbedPane_focusGained(e);
\r
1159 save.setText("Save");
\r
1160 save.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.
\r
1161 KeyEvent.VK_S, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
\r
1162 save.addActionListener(new ActionListener()
\r
1164 public void actionPerformed(ActionEvent e)
\r
1166 save_actionPerformed(e);
\r
1169 reload.setEnabled(false);
\r
1170 reload.setText("Reload");
\r
1171 reload.addActionListener(new ActionListener()
\r
1173 public void actionPerformed(ActionEvent e)
\r
1175 reload_actionPerformed(e);
\r
1178 newView.setText("New View");
\r
1179 newView.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.
\r
1180 KeyEvent.VK_T, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
\r
1181 newView.addActionListener(new ActionListener()
\r
1183 public void actionPerformed(ActionEvent e)
\r
1185 newView_actionPerformed(e);
\r
1188 tabbedPane.setToolTipText("<html><i> Right-click to rename tab"
\r
1190 "<br> Press X to eXpand tabs, G to reGroup.</i></html>");
\r
1191 textColour.setText("Text Colour");
\r
1192 textColour.addActionListener(new ActionListener()
\r
1194 public void actionPerformed(ActionEvent e)
\r
1196 textColour_actionPerformed(e);
\r
1199 formatMenu.setText("Format");
\r
1200 selectMenu.setText("Select");
\r
1201 idRightAlign.setText("Right Align Sequence Id");
\r
1202 idRightAlign.addActionListener(new ActionListener()
\r
1204 public void actionPerformed(ActionEvent e)
\r
1206 idRightAlign_actionPerformed(e);
\r
1209 gatherViews.setEnabled(false);
\r
1210 gatherViews.setText("Gather Views");
\r
1211 gatherViews.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.
\r
1212 event.KeyEvent.VK_G, 0, false));
\r
1213 gatherViews.addActionListener(new ActionListener()
\r
1215 public void actionPerformed(ActionEvent e)
\r
1217 gatherViews_actionPerformed(e);
\r
1220 expandViews.setEnabled(false);
\r
1221 expandViews.setText("Expand Views");
\r
1222 expandViews.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.
\r
1223 event.KeyEvent.VK_X, 0, false));
\r
1224 expandViews.addActionListener(new ActionListener()
\r
1226 public void actionPerformed(ActionEvent e)
\r
1228 expandViews_actionPerformed(e);
\r
1231 pageSetup.setText("Page Setup ...");
\r
1232 pageSetup.addActionListener(new ActionListener()
\r
1234 public void actionPerformed(ActionEvent e)
\r
1236 pageSetup_actionPerformed(e);
\r
1240 alignFrameMenuBar.add(fileMenu);
\r
1241 alignFrameMenuBar.add(editMenu);
\r
1242 alignFrameMenuBar.add(selectMenu);
\r
1243 alignFrameMenuBar.add(viewMenu);
\r
1244 alignFrameMenuBar.add(formatMenu);
\r
1245 alignFrameMenuBar.add(colourMenu);
\r
1246 alignFrameMenuBar.add(calculateMenu);
\r
1247 alignFrameMenuBar.add(webService);
\r
1248 fileMenu.add(fetchSequence);
\r
1249 fileMenu.add(addSequenceMenu);
\r
1250 fileMenu.add(reload);
\r
1251 fileMenu.addSeparator();
\r
1252 fileMenu.add(vamsasStore);
\r
1253 fileMenu.add(save);
\r
1254 fileMenu.add(saveAs);
\r
1255 fileMenu.add(outputTextboxMenu);
\r
1256 fileMenu.add(pageSetup);
\r
1257 fileMenu.add(printMenuItem);
\r
1258 fileMenu.addSeparator();
\r
1259 fileMenu.add(jMenu2);
\r
1260 fileMenu.add(exportFeatures);
\r
1261 fileMenu.add(exportAnnotations);
\r
1262 fileMenu.add(LoadtreeMenuItem);
\r
1263 fileMenu.add(associatedData);
\r
1264 fileMenu.addSeparator();
\r
1265 fileMenu.add(closeMenuItem);
\r
1266 editMenu.add(undoMenuItem);
\r
1267 editMenu.add(redoMenuItem);
\r
1268 editMenu.add(cut);
\r
1269 editMenu.add(copy);
\r
1270 editMenu.add(pasteMenu);
\r
1271 editMenu.add(delete);
\r
1272 editMenu.addSeparator();
\r
1273 editMenu.add(remove2LeftMenuItem);
\r
1274 editMenu.add(remove2RightMenuItem);
\r
1275 editMenu.add(removeGappedColumnMenuItem);
\r
1276 editMenu.add(removeAllGapsMenuItem);
\r
1277 editMenu.add(removeRedundancyMenuItem);
\r
1278 editMenu.addSeparator();
\r
1279 editMenu.add(padGapsMenuitem);
\r
1280 viewMenu.add(newView);
\r
1281 viewMenu.add(expandViews);
\r
1282 viewMenu.add(gatherViews);
\r
1283 viewMenu.addSeparator();
\r
1284 viewMenu.add(jMenu3);
\r
1285 viewMenu.add(hideMenu);
\r
1286 viewMenu.addSeparator();
\r
1287 viewMenu.add(annotationPanelMenuItem);
\r
1288 viewMenu.addSeparator();
\r
1289 viewMenu.add(showSeqFeatures);
\r
1290 viewMenu.add(featureSettings);
\r
1291 viewMenu.addSeparator();
\r
1292 viewMenu.add(overviewMenuItem);
\r
1293 colourMenu.add(applyToAllGroups);
\r
1294 colourMenu.add(textColour);
\r
1295 colourMenu.addSeparator();
\r
1296 colourMenu.add(noColourmenuItem);
\r
1297 colourMenu.add(clustalColour);
\r
1298 colourMenu.add(BLOSUM62Colour);
\r
1299 colourMenu.add(PIDColour);
\r
1300 colourMenu.add(zappoColour);
\r
1301 colourMenu.add(taylorColour);
\r
1302 colourMenu.add(hydrophobicityColour);
\r
1303 colourMenu.add(helixColour);
\r
1304 colourMenu.add(strandColour);
\r
1305 colourMenu.add(turnColour);
\r
1306 colourMenu.add(buriedColour);
\r
1307 colourMenu.add(nucleotideColour);
\r
1308 colourMenu.add(userDefinedColour);
\r
1309 colourMenu.addSeparator();
\r
1310 colourMenu.add(conservationMenuItem);
\r
1311 colourMenu.add(modifyConservation);
\r
1312 colourMenu.add(abovePIDThreshold);
\r
1313 colourMenu.add(modifyPID);
\r
1314 colourMenu.add(annotationColour);
\r
1315 calculateMenu.add(sort);
\r
1316 calculateMenu.add(calculate);
\r
1317 calculateMenu.addSeparator();
\r
1318 calculateMenu.add(pairwiseAlignmentMenuItem);
\r
1319 calculateMenu.add(PCAMenuItem);
\r
1320 calculateMenu.addSeparator();
\r
1321 calculateMenu.add(showTranslation);
\r
1322 calculateMenu.add(autoCalculate);
\r
1323 webServiceNoServices = new JMenuItem("<No Services>");
\r
1324 webService.add(webServiceNoServices);
\r
1325 pasteMenu.add(pasteNew);
\r
1326 pasteMenu.add(pasteThis);
\r
1327 sort.add(sortIDMenuItem);
\r
1328 sort.add(sortGroupMenuItem);
\r
1329 sort.add(sortPairwiseMenuItem);
\r
1330 sort.add(sortByTreeMenu);
\r
1331 calculate.add(averageDistanceTreeMenuItem);
\r
1332 calculate.add(neighbourTreeMenuItem);
\r
1333 calculate.add(avDistanceTreeBlosumMenuItem);
\r
1334 calculate.add(njTreeBlosumMenuItem);
\r
1335 jMenu2.add(htmlMenuItem);
\r
1336 jMenu2.add(epsFile);
\r
1337 jMenu2.add(createPNG);
\r
1338 addSequenceMenu.add(addFromFile);
\r
1339 addSequenceMenu.add(addFromText);
\r
1340 addSequenceMenu.add(addFromURL);
\r
1341 this.getContentPane().add(statusPanel, java.awt.BorderLayout.SOUTH);
\r
1342 statusPanel.add(statusBar, null);
\r
1343 this.getContentPane().add(tabbedPane, java.awt.BorderLayout.CENTER);
\r
1344 jMenu3.add(showAllColumns);
\r
1345 jMenu3.add(showAllSeqs);
\r
1346 hideMenu.add(hideSelColumns);
\r
1347 hideMenu.add(hideSelSequences);
\r
1348 formatMenu.add(font);
\r
1349 formatMenu.addSeparator();
\r
1350 formatMenu.add(wrapMenuItem);
\r
1351 formatMenu.add(scaleAbove);
\r
1352 formatMenu.add(scaleLeft);
\r
1353 formatMenu.add(scaleRight);
\r
1354 formatMenu.add(seqLimits);
\r
1355 formatMenu.add(idRightAlign);
\r
1356 formatMenu.add(hiddenMarkers);
\r
1357 formatMenu.add(viewBoxesMenuItem);
\r
1358 formatMenu.add(viewTextMenuItem);
\r
1359 formatMenu.add(colourTextMenuItem);
\r
1360 formatMenu.add(renderGapsMenuItem);
\r
1361 selectMenu.add(findMenuItem);
\r
1362 selectMenu.addSeparator();
\r
1363 selectMenu.add(selectAllSequenceMenuItem);
\r
1364 selectMenu.add(deselectAllSequenceMenuItem);
\r
1365 selectMenu.add(invertSequenceMenuItem);
\r
1366 selectMenu.add(invertColSel);
\r
1367 selectMenu.add(deleteGroups);
\r
1370 protected void outputText_actionPerformed(ActionEvent e)
\r
1374 public void addFromFile_actionPerformed(ActionEvent e)
\r
1379 public void addFromText_actionPerformed(ActionEvent e)
\r
1384 public void addFromURL_actionPerformed(ActionEvent e)
\r
1389 public void exportFeatures_actionPerformed(ActionEvent e)
\r
1394 public void exportAnnotations_actionPerformed(ActionEvent e)
\r
1399 protected void htmlMenuItem_actionPerformed(ActionEvent e)
\r
1403 protected void closeMenuItem_actionPerformed(boolean b)
\r
1407 protected void redoMenuItem_actionPerformed(ActionEvent e)
\r
1411 protected void undoMenuItem_actionPerformed(ActionEvent e)
\r
1415 protected void selectAllSequenceMenuItem_actionPerformed(ActionEvent e)
\r
1419 protected void deselectAllSequenceMenuItem_actionPerformed(ActionEvent e)
\r
1423 protected void invertSequenceMenuItem_actionPerformed(ActionEvent e)
\r
1427 protected void remove2LeftMenuItem_actionPerformed(ActionEvent e)
\r
1431 protected void remove2RightMenuItem_actionPerformed(ActionEvent e)
\r
1435 protected void removeGappedColumnMenuItem_actionPerformed(ActionEvent e)
\r
1439 protected void removeAllGapsMenuItem_actionPerformed(ActionEvent e)
\r
1443 protected void wrapMenuItem_actionPerformed(ActionEvent e)
\r
1447 protected void viewBoxesMenuItem_actionPerformed(ActionEvent e)
\r
1451 protected void viewTextMenuItem_actionPerformed(ActionEvent e)
\r
1455 protected void colourTextMenuItem_actionPerformed(ActionEvent e)
\r
1459 protected void annotationPanelMenuItem_actionPerformed(ActionEvent e)
\r
1463 protected void overviewMenuItem_actionPerformed(ActionEvent e)
\r
1467 protected void sortPairwiseMenuItem_actionPerformed(ActionEvent e)
\r
1471 protected void sortIDMenuItem_actionPerformed(ActionEvent e)
\r
1475 protected void sortGroupMenuItem_actionPerformed(ActionEvent e)
\r
1479 protected void removeRedundancyMenuItem_actionPerformed(ActionEvent e)
\r
1483 protected void pairwiseAlignmentMenuItem_actionPerformed(ActionEvent e)
\r
1487 protected void PCAMenuItem_actionPerformed(ActionEvent e)
\r
1491 protected void averageDistanceTreeMenuItem_actionPerformed(ActionEvent e)
\r
1495 protected void neighbourTreeMenuItem_actionPerformed(ActionEvent e)
\r
1499 protected void njTreeBlosumMenuItem_actionPerformed(ActionEvent e)
\r
1503 protected void avTreeBlosumMenuItem_actionPerformed(ActionEvent e)
\r
1507 protected void clustalColour_actionPerformed(ActionEvent e)
\r
1511 protected void zappoColour_actionPerformed(ActionEvent e)
\r
1515 protected void taylorColour_actionPerformed(ActionEvent e)
\r
1519 protected void hydrophobicityColour_actionPerformed(ActionEvent e)
\r
1523 protected void helixColour_actionPerformed(ActionEvent e)
\r
1527 protected void strandColour_actionPerformed(ActionEvent e)
\r
1531 protected void turnColour_actionPerformed(ActionEvent e)
\r
1535 protected void buriedColour_actionPerformed(ActionEvent e)
\r
1539 protected void userDefinedColour_actionPerformed(ActionEvent e)
\r
1543 protected void PIDColour_actionPerformed(ActionEvent e)
\r
1547 protected void BLOSUM62Colour_actionPerformed(ActionEvent e)
\r
1551 protected void noColourmenuItem_actionPerformed(ActionEvent e)
\r
1555 protected void conservationMenuItem_actionPerformed(ActionEvent e)
\r
1559 protected void printMenuItem_actionPerformed(ActionEvent e)
\r
1563 protected void renderGapsMenuItem_actionPerformed(ActionEvent e)
\r
1567 protected void findMenuItem_actionPerformed(ActionEvent e)
\r
1571 protected void abovePIDThreshold_actionPerformed(ActionEvent e)
\r
1575 public void showSeqFeatures_actionPerformed(ActionEvent actionEvent)
\r
1579 protected void nucleotideColour_actionPerformed(ActionEvent e)
\r
1583 protected void deleteGroups_actionPerformed(ActionEvent e)
\r
1587 protected void copy_actionPerformed(ActionEvent e)
\r
1591 protected void cut_actionPerformed(ActionEvent e)
\r
1595 protected void delete_actionPerformed(ActionEvent e)
\r
1599 protected void pasteNew_actionPerformed(ActionEvent e)
\r
1603 protected void pasteThis_actionPerformed(ActionEvent e)
\r
1607 protected void applyToAllGroups_actionPerformed(ActionEvent e)
\r
1611 public void createPNG(java.io.File f)
\r
1615 protected void font_actionPerformed(ActionEvent e)
\r
1619 protected void seqLimit_actionPerformed(ActionEvent e)
\r
1623 public void seqDBRef_actionPerformed(ActionEvent e)
\r
1628 public void createEPS(java.io.File f)
\r
1632 protected void LoadtreeMenuItem_actionPerformed(ActionEvent e)
\r
1636 protected void jpred_actionPerformed(ActionEvent e)
\r
1640 protected void scaleAbove_actionPerformed(ActionEvent e)
\r
1644 protected void scaleLeft_actionPerformed(ActionEvent e)
\r
1648 protected void scaleRight_actionPerformed(ActionEvent e)
\r
1652 protected void modifyPID_actionPerformed(ActionEvent e)
\r
1656 protected void modifyConservation_actionPerformed(ActionEvent e)
\r
1660 protected void saveAs_actionPerformed(ActionEvent e)
\r
1664 protected void padGapsMenuitem_actionPerformed(ActionEvent e)
\r
1668 public void vamsasStore_actionPerformed(ActionEvent e)
\r
1673 public void vamsasLoad_actionPerformed(ActionEvent e)
\r
1678 public void showTranslation_actionPerformed(ActionEvent e)
\r
1683 public void featureSettings_actionPerformed(ActionEvent e)
\r
1688 public void fetchSequence_actionPerformed(ActionEvent e)
\r
1693 public void smoothFont_actionPerformed(ActionEvent e)
\r
1698 public void annotationColour_actionPerformed(ActionEvent e)
\r
1703 public void associatedData_actionPerformed(ActionEvent e)
\r
1708 public void autoCalculate_actionPerformed(ActionEvent e)
\r
1713 public void showAllSeqs_actionPerformed(ActionEvent e)
\r
1718 public void showAllColumns_actionPerformed(ActionEvent e)
\r
1723 public void hideSelSequences_actionPerformed(ActionEvent e)
\r
1728 public void hideSelColumns_actionPerformed(ActionEvent e)
\r
1733 public void hiddenMarkers_actionPerformed(ActionEvent e)
\r
1738 public void findPdbId_actionPerformed(ActionEvent e)
\r
1743 public void enterPdbId_actionPerformed(ActionEvent e)
\r
1748 public void pdbFile_actionPerformed(ActionEvent e)
\r
1753 public void invertColSel_actionPerformed(ActionEvent e)
\r
1758 public void tabSelectionChanged(int sel)
\r
1763 public void tabbedPane_mousePressed(MouseEvent e)
\r
1768 public void tabbedPane_focusGained(FocusEvent e)
\r
1773 public void save_actionPerformed(ActionEvent e)
\r
1778 public void reload_actionPerformed(ActionEvent e)
\r
1783 public void newView_actionPerformed(ActionEvent e)
\r
1788 public void textColour_actionPerformed(ActionEvent e)
\r
1793 public void idRightAlign_actionPerformed(ActionEvent e)
\r
1798 public void expandViews_actionPerformed(ActionEvent e)
\r
1803 public void gatherViews_actionPerformed(ActionEvent e)
\r
1808 public void buildTreeMenu()
\r
1813 public void pageSetup_actionPerformed(ActionEvent e)
\r