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
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.
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.
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
19 package jalview.jbgui;
22 import java.awt.event.*;
25 import javax.swing.event.*;
27 import jalview.schemes.*;
29 public class GAlignFrame extends JInternalFrame
31 protected JMenuBar alignFrameMenuBar = new JMenuBar();
33 protected JMenu fileMenu = new JMenu();
35 protected JMenuItem closeMenuItem = new JMenuItem();
37 protected JMenu editMenu = new JMenu();
39 protected JMenu viewMenu = new JMenu();
41 protected JMenu colourMenu = new JMenu();
43 protected JMenu calculateMenu = new JMenu();
45 protected JMenu webService = new JMenu();
47 protected JMenuItem webServiceNoServices;
49 protected JMenuItem selectAllSequenceMenuItem = new JMenuItem();
51 protected JMenuItem deselectAllSequenceMenuItem = new JMenuItem();
53 protected JMenuItem invertSequenceMenuItem = new JMenuItem();
55 protected JMenuItem remove2LeftMenuItem = new JMenuItem();
57 protected JMenuItem remove2RightMenuItem = new JMenuItem();
59 protected JMenuItem removeGappedColumnMenuItem = new JMenuItem();
61 protected JMenuItem removeAllGapsMenuItem = new JMenuItem();
63 public JCheckBoxMenuItem viewBoxesMenuItem = new JCheckBoxMenuItem();
65 public JCheckBoxMenuItem viewTextMenuItem = new JCheckBoxMenuItem();
67 protected JMenuItem sortPairwiseMenuItem = new JMenuItem();
69 protected JMenuItem sortIDMenuItem = new JMenuItem();
71 protected JMenuItem sortLengthMenuItem = new JMenuItem();
73 protected JMenuItem sortGroupMenuItem = new JMenuItem();
75 protected JMenu sortByAnnotScore = new JMenu();
77 protected JMenuItem removeRedundancyMenuItem = new JMenuItem();
79 protected JMenuItem pairwiseAlignmentMenuItem = new JMenuItem();
81 protected JMenuItem PCAMenuItem = new JMenuItem();
83 protected JMenuItem averageDistanceTreeMenuItem = new JMenuItem();
85 protected JMenuItem neighbourTreeMenuItem = new JMenuItem();
87 BorderLayout borderLayout1 = new BorderLayout();
89 public JLabel statusBar = new JLabel();
91 protected JMenuItem saveAs = new JMenuItem();
93 protected JMenu outputTextboxMenu = new JMenu();
95 protected JRadioButtonMenuItem clustalColour = new JRadioButtonMenuItem();
97 protected JRadioButtonMenuItem zappoColour = new JRadioButtonMenuItem();
99 protected JRadioButtonMenuItem taylorColour = new JRadioButtonMenuItem();
101 protected JRadioButtonMenuItem hydrophobicityColour = new JRadioButtonMenuItem();
103 protected JRadioButtonMenuItem helixColour = new JRadioButtonMenuItem();
105 protected JRadioButtonMenuItem strandColour = new JRadioButtonMenuItem();
107 protected JRadioButtonMenuItem turnColour = new JRadioButtonMenuItem();
109 protected JRadioButtonMenuItem buriedColour = new JRadioButtonMenuItem();
111 protected JRadioButtonMenuItem userDefinedColour = new JRadioButtonMenuItem();
113 protected JRadioButtonMenuItem PIDColour = new JRadioButtonMenuItem();
115 protected JRadioButtonMenuItem BLOSUM62Colour = new JRadioButtonMenuItem();
117 JMenuItem njTreeBlosumMenuItem = new JMenuItem();
119 JMenuItem avDistanceTreeBlosumMenuItem = new JMenuItem();
121 public JCheckBoxMenuItem annotationPanelMenuItem = new JCheckBoxMenuItem();
123 public JCheckBoxMenuItem colourTextMenuItem = new JCheckBoxMenuItem();
125 public JCheckBoxMenuItem showUnconservedMenuItem = new JCheckBoxMenuItem();
127 JMenuItem htmlMenuItem = new JMenuItem();
129 JMenuItem overviewMenuItem = new JMenuItem();
131 protected JMenuItem undoMenuItem = new JMenuItem();
133 protected JMenuItem redoMenuItem = new JMenuItem();
135 public JCheckBoxMenuItem conservationMenuItem = new JCheckBoxMenuItem();
137 JRadioButtonMenuItem noColourmenuItem = new JRadioButtonMenuItem();
139 public JCheckBoxMenuItem wrapMenuItem = new JCheckBoxMenuItem();
141 JMenuItem printMenuItem = new JMenuItem();
143 public JCheckBoxMenuItem renderGapsMenuItem = new JCheckBoxMenuItem();
145 JMenuItem findMenuItem = new JMenuItem();
147 public JCheckBoxMenuItem abovePIDThreshold = new JCheckBoxMenuItem();
149 public JCheckBoxMenuItem showSeqFeatures = new JCheckBoxMenuItem();
150 public JCheckBoxMenuItem showSeqFeaturesHeight = new JCheckBoxMenuItem();
152 protected JRadioButtonMenuItem nucleotideColour = new JRadioButtonMenuItem();
154 JMenuItem deleteGroups = new JMenuItem();
156 JMenuItem delete = new JMenuItem();
158 JMenuItem copy = new JMenuItem();
160 JMenuItem cut = new JMenuItem();
162 JMenu pasteMenu = new JMenu();
164 JMenuItem pasteNew = new JMenuItem();
166 JMenuItem pasteThis = new JMenuItem();
168 public JCheckBoxMenuItem applyToAllGroups = new JCheckBoxMenuItem();
170 JMenuItem createPNG = new JMenuItem();
172 protected JMenuItem font = new JMenuItem();
174 public JCheckBoxMenuItem seqLimits = new JCheckBoxMenuItem();
176 JMenuItem epsFile = new JMenuItem();
178 JMenuItem LoadtreeMenuItem = new JMenuItem();
180 public JCheckBoxMenuItem scaleAbove = new JCheckBoxMenuItem();
182 public JCheckBoxMenuItem scaleLeft = new JCheckBoxMenuItem();
184 public JCheckBoxMenuItem scaleRight = new JCheckBoxMenuItem();
186 protected JMenuItem modifyPID = new JMenuItem();
188 protected JMenuItem modifyConservation = new JMenuItem();
190 protected JMenu sortByTreeMenu = new JMenu();
192 protected JMenu sort = new JMenu();
194 protected JMenu calculateTree = new JMenu();
196 JMenu jMenu2 = new JMenu();
198 protected JCheckBoxMenuItem padGapsMenuitem = new JCheckBoxMenuItem();
199 protected JCheckBoxMenuItem showNpFeatsMenuitem = new JCheckBoxMenuItem();
200 protected JCheckBoxMenuItem showDbRefsMenuitem = new JCheckBoxMenuItem();
202 protected ButtonGroup colours = new ButtonGroup();
204 JMenuItem vamsasStore = new JMenuItem();
206 protected JMenuItem showTranslation = new JMenuItem();
208 protected JMenuItem extractScores = new JMenuItem();
210 protected JMenu showProducts = new JMenu();
212 public JMenuItem featureSettings = new JMenuItem();
214 JMenuItem fetchSequence = new JMenuItem();
216 JMenuItem annotationColour = new JMenuItem();
218 JMenuItem associatedData = new JMenuItem();
220 protected JCheckBoxMenuItem autoCalculate = new JCheckBoxMenuItem();
222 JMenu addSequenceMenu = new JMenu();
224 JMenuItem addFromFile = new JMenuItem();
226 JMenuItem addFromText = new JMenuItem();
228 JMenuItem addFromURL = new JMenuItem();
230 JMenuItem exportAnnotations = new JMenuItem();
232 JMenuItem exportFeatures = new JMenuItem();
234 protected JPanel statusPanel = new JPanel();
236 GridLayout gridLayout1 = new GridLayout();
238 JMenu jMenu3 = new JMenu();
240 JMenuItem showAllSeqs = new JMenuItem();
242 JMenuItem showAllColumns = new JMenuItem();
244 JMenu hideMenu = new JMenu();
246 JMenuItem hideSelSequences = new JMenuItem();
248 JMenuItem hideSelColumns = new JMenuItem();
250 protected JCheckBoxMenuItem hiddenMarkers = new JCheckBoxMenuItem();
252 JMenuItem invertColSel = new JMenuItem();
254 protected JTabbedPane tabbedPane = new JTabbedPane();
256 JMenuItem save = new JMenuItem();
258 protected JMenuItem reload = new JMenuItem();
260 JMenuItem newView = new JMenuItem();
262 JMenuItem textColour = new JMenuItem();
264 JMenu formatMenu = new JMenu();
266 JMenu selectMenu = new JMenu();
268 protected JCheckBoxMenuItem idRightAlign = new JCheckBoxMenuItem();
270 protected JCheckBoxMenuItem centreColumnLabelsMenuItem = new JCheckBoxMenuItem();
272 protected JCheckBoxMenuItem followHighlightMenuItem = new JCheckBoxMenuItem();
274 protected JMenuItem gatherViews = new JMenuItem();
276 protected JMenuItem expandViews = new JMenuItem();
278 JMenuItem pageSetup = new JMenuItem();
280 JMenuItem alignmentProperties = new JMenuItem();
282 JMenu tooltipSettingsMenu = new JMenu();
284 private JMenuItem justifyLeftMenuItem=new JMenuItem();
286 private JMenuItem justifyRightMenuItem=new JMenuItem();
293 setJMenuBar(alignFrameMenuBar);
295 // dynamically fill save as menu with available formats
296 for (int i = 0; i < jalview.io.FormatAdapter.WRITEABLE_FORMATS.length; i++)
298 JMenuItem item = new JMenuItem(
299 jalview.io.FormatAdapter.WRITEABLE_FORMATS[i]);
301 item.addActionListener(new java.awt.event.ActionListener()
303 public void actionPerformed(ActionEvent e)
305 outputText_actionPerformed(e);
309 outputTextboxMenu.add(item);
311 } catch (Exception e)
315 if (!new jalview.util.Platform().isAMac())
317 closeMenuItem.setMnemonic('C');
318 outputTextboxMenu.setMnemonic('T');
319 undoMenuItem.setMnemonic('Z');
320 redoMenuItem.setMnemonic('0');
321 copy.setMnemonic('C');
322 cut.setMnemonic('U');
323 pasteMenu.setMnemonic('P');
324 reload.setMnemonic('R');
327 if (jalview.gui.UserDefinedColours.getUserColourSchemes() != null)
329 java.util.Enumeration userColours = jalview.gui.UserDefinedColours
330 .getUserColourSchemes().keys();
332 while (userColours.hasMoreElements())
334 final JRadioButtonMenuItem radioItem = new JRadioButtonMenuItem(
335 userColours.nextElement().toString());
336 radioItem.setName("USER_DEFINED");
337 radioItem.addMouseListener(new MouseAdapter()
339 public void mousePressed(MouseEvent evt)
341 if (evt.isControlDown()
342 || SwingUtilities.isRightMouseButton(evt))
345 .removeActionListener(radioItem.getActionListeners()[0]);
347 int option = JOptionPane.showInternalConfirmDialog(
348 jalview.gui.Desktop.desktop,
349 "Remove from default list?",
350 "Remove user defined colour",
351 JOptionPane.YES_NO_OPTION);
352 if (option == JOptionPane.YES_OPTION)
354 jalview.gui.UserDefinedColours
355 .removeColourFromDefaults(radioItem.getText());
356 colourMenu.remove(radioItem);
360 radioItem.addActionListener(new ActionListener()
362 public void actionPerformed(ActionEvent evt)
364 userDefinedColour_actionPerformed(evt);
371 radioItem.addActionListener(new ActionListener()
373 public void actionPerformed(ActionEvent evt)
375 userDefinedColour_actionPerformed(evt);
378 colourMenu.insert(radioItem, 15);
379 colours.add(radioItem);
382 colours.add(noColourmenuItem);
383 colours.add(clustalColour);
384 colours.add(zappoColour);
385 colours.add(taylorColour);
386 colours.add(hydrophobicityColour);
387 colours.add(helixColour);
388 colours.add(strandColour);
389 colours.add(turnColour);
390 colours.add(buriedColour);
391 colours.add(userDefinedColour);
392 colours.add(PIDColour);
393 colours.add(BLOSUM62Colour);
394 colours.add(nucleotideColour);
396 setColourSelected(jalview.bin.Cache
397 .getDefault("DEFAULT_COLOUR", "None"));
401 public void setColourSelected(String defaultColour)
404 if (defaultColour != null)
406 int index = ColourSchemeProperty
407 .getColourIndexFromName(defaultColour);
411 case ColourSchemeProperty.NONE:
412 noColourmenuItem.setSelected(true);
414 case ColourSchemeProperty.CLUSTAL:
415 clustalColour.setSelected(true);
419 case ColourSchemeProperty.BLOSUM:
420 BLOSUM62Colour.setSelected(true);
424 case ColourSchemeProperty.PID:
425 PIDColour.setSelected(true);
429 case ColourSchemeProperty.ZAPPO:
430 zappoColour.setSelected(true);
434 case ColourSchemeProperty.TAYLOR:
435 taylorColour.setSelected(true);
438 case ColourSchemeProperty.HYDROPHOBIC:
439 hydrophobicityColour.setSelected(true);
443 case ColourSchemeProperty.HELIX:
444 helixColour.setSelected(true);
448 case ColourSchemeProperty.STRAND:
449 strandColour.setSelected(true);
453 case ColourSchemeProperty.TURN:
454 turnColour.setSelected(true);
458 case ColourSchemeProperty.BURIED:
459 buriedColour.setSelected(true);
463 case ColourSchemeProperty.NUCLEOTIDE:
464 nucleotideColour.setSelected(true);
468 case ColourSchemeProperty.USER_DEFINED:
469 userDefinedColour.setSelected(true);
477 private void jbInit() throws Exception
479 fileMenu.setText("File");
480 saveAs.setText("Save As...");
481 saveAs.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
482 java.awt.event.KeyEvent.VK_S, Toolkit.getDefaultToolkit()
483 .getMenuShortcutKeyMask()
484 | java.awt.event.KeyEvent.SHIFT_MASK, false));
485 saveAs.addActionListener(new ActionListener()
487 public void actionPerformed(ActionEvent e)
489 saveAs_actionPerformed(e);
492 closeMenuItem.setText("Close");
493 closeMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
494 java.awt.event.KeyEvent.VK_W, Toolkit.getDefaultToolkit()
495 .getMenuShortcutKeyMask(), false));
496 closeMenuItem.addActionListener(new java.awt.event.ActionListener()
498 public void actionPerformed(ActionEvent e)
500 closeMenuItem_actionPerformed(false);
503 editMenu.setText("Edit");
504 viewMenu.setText("View");
505 colourMenu.setText("Colour");
506 calculateMenu.setText("Calculate");
507 webService.setText("Web Service");
508 selectAllSequenceMenuItem.setText("Select All");
509 selectAllSequenceMenuItem.setAccelerator(javax.swing.KeyStroke
510 .getKeyStroke(java.awt.event.KeyEvent.VK_A, Toolkit
511 .getDefaultToolkit().getMenuShortcutKeyMask(), false));
512 selectAllSequenceMenuItem
513 .addActionListener(new java.awt.event.ActionListener()
515 public void actionPerformed(ActionEvent e)
517 selectAllSequenceMenuItem_actionPerformed(e);
520 deselectAllSequenceMenuItem.setText("Deselect All");
521 deselectAllSequenceMenuItem.setAccelerator(javax.swing.KeyStroke
522 .getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0, false));
523 deselectAllSequenceMenuItem
524 .addActionListener(new java.awt.event.ActionListener()
526 public void actionPerformed(ActionEvent e)
528 deselectAllSequenceMenuItem_actionPerformed(e);
531 invertSequenceMenuItem.setText("Invert Sequence Selection");
532 invertSequenceMenuItem.setAccelerator(javax.swing.KeyStroke
533 .getKeyStroke(java.awt.event.KeyEvent.VK_I, Toolkit
534 .getDefaultToolkit().getMenuShortcutKeyMask(), false));
535 invertSequenceMenuItem
536 .addActionListener(new java.awt.event.ActionListener()
538 public void actionPerformed(ActionEvent e)
540 invertSequenceMenuItem_actionPerformed(e);
543 remove2LeftMenuItem.setText("Remove Left");
544 remove2LeftMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
545 java.awt.event.KeyEvent.VK_L, Toolkit.getDefaultToolkit()
546 .getMenuShortcutKeyMask(), false));
548 .addActionListener(new java.awt.event.ActionListener()
550 public void actionPerformed(ActionEvent e)
552 remove2LeftMenuItem_actionPerformed(e);
555 remove2RightMenuItem.setText("Remove Right");
556 remove2RightMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
557 java.awt.event.KeyEvent.VK_R, Toolkit.getDefaultToolkit()
558 .getMenuShortcutKeyMask(), false));
560 .addActionListener(new java.awt.event.ActionListener()
562 public void actionPerformed(ActionEvent e)
564 remove2RightMenuItem_actionPerformed(e);
567 removeGappedColumnMenuItem.setText("Remove Empty Columns");
568 removeGappedColumnMenuItem.setAccelerator(javax.swing.KeyStroke
569 .getKeyStroke(java.awt.event.KeyEvent.VK_E, Toolkit
570 .getDefaultToolkit().getMenuShortcutKeyMask(), false));
571 removeGappedColumnMenuItem
572 .addActionListener(new java.awt.event.ActionListener()
574 public void actionPerformed(ActionEvent e)
576 removeGappedColumnMenuItem_actionPerformed(e);
579 removeAllGapsMenuItem.setText("Remove All Gaps");
580 removeAllGapsMenuItem.setAccelerator(javax.swing.KeyStroke
581 .getKeyStroke(java.awt.event.KeyEvent.VK_E, Toolkit
582 .getDefaultToolkit().getMenuShortcutKeyMask()
583 | java.awt.event.KeyEvent.SHIFT_MASK, false));
584 removeAllGapsMenuItem
585 .addActionListener(new java.awt.event.ActionListener()
587 public void actionPerformed(ActionEvent e)
589 removeAllGapsMenuItem_actionPerformed(e);
592 justifyLeftMenuItem.setText("Left Justify Alignment");
593 justifyLeftMenuItem.addActionListener(new java.awt.event.ActionListener()
595 public void actionPerformed(ActionEvent e)
597 justifyLeftMenuItem_actionPerformed(e);
600 justifyRightMenuItem.setText("Right Justify Alignment");
601 justifyRightMenuItem.addActionListener(new java.awt.event.ActionListener()
603 public void actionPerformed(ActionEvent e)
605 justifyRightMenuItem_actionPerformed(e);
608 viewBoxesMenuItem.setText("Boxes");
609 viewBoxesMenuItem.setState(true);
610 viewBoxesMenuItem.addActionListener(new java.awt.event.ActionListener()
612 public void actionPerformed(ActionEvent e)
614 viewBoxesMenuItem_actionPerformed(e);
617 viewTextMenuItem.setText("Text");
618 viewTextMenuItem.setState(true);
619 viewTextMenuItem.addActionListener(new java.awt.event.ActionListener()
621 public void actionPerformed(ActionEvent e)
623 viewTextMenuItem_actionPerformed(e);
626 showUnconservedMenuItem.setText("Show Unconserved");
627 showUnconservedMenuItem.setState(false);
628 showUnconservedMenuItem.addActionListener(new java.awt.event.ActionListener()
630 public void actionPerformed(ActionEvent e)
632 showUnconservedMenuItem_actionPerformed(e);
635 sortPairwiseMenuItem.setText("by Pairwise Identity");
637 .addActionListener(new java.awt.event.ActionListener()
639 public void actionPerformed(ActionEvent e)
641 sortPairwiseMenuItem_actionPerformed(e);
644 sortIDMenuItem.setText("by ID");
645 sortIDMenuItem.addActionListener(new java.awt.event.ActionListener()
647 public void actionPerformed(ActionEvent e)
649 sortIDMenuItem_actionPerformed(e);
652 sortLengthMenuItem.setText("By Length");
653 sortLengthMenuItem.addActionListener(new java.awt.event.ActionListener()
655 public void actionPerformed(ActionEvent e)
657 sortLengthMenuItem_actionPerformed(e);
660 sortGroupMenuItem.setText("by Group");
661 sortGroupMenuItem.addActionListener(new java.awt.event.ActionListener()
663 public void actionPerformed(ActionEvent e)
665 sortGroupMenuItem_actionPerformed(e);
668 removeRedundancyMenuItem.setText("Remove Redundancy...");
669 removeRedundancyMenuItem.setAccelerator(javax.swing.KeyStroke
670 .getKeyStroke(java.awt.event.KeyEvent.VK_D, Toolkit
671 .getDefaultToolkit().getMenuShortcutKeyMask(), false));
672 removeRedundancyMenuItem
673 .addActionListener(new java.awt.event.ActionListener()
675 public void actionPerformed(ActionEvent e)
677 removeRedundancyMenuItem_actionPerformed(e);
680 pairwiseAlignmentMenuItem.setText("Pairwise Alignments...");
681 pairwiseAlignmentMenuItem
682 .addActionListener(new java.awt.event.ActionListener()
684 public void actionPerformed(ActionEvent e)
686 pairwiseAlignmentMenuItem_actionPerformed(e);
689 PCAMenuItem.setText("Principal Component Analysis");
690 PCAMenuItem.addActionListener(new java.awt.event.ActionListener()
692 public void actionPerformed(ActionEvent e)
694 PCAMenuItem_actionPerformed(e);
697 averageDistanceTreeMenuItem
698 .setText("Average Distance Using % Identity");
699 averageDistanceTreeMenuItem
700 .addActionListener(new java.awt.event.ActionListener()
702 public void actionPerformed(ActionEvent e)
704 averageDistanceTreeMenuItem_actionPerformed(e);
707 neighbourTreeMenuItem.setText("Neighbour Joining Using % Identity");
708 neighbourTreeMenuItem
709 .addActionListener(new java.awt.event.ActionListener()
711 public void actionPerformed(ActionEvent e)
713 neighbourTreeMenuItem_actionPerformed(e);
716 this.getContentPane().setLayout(borderLayout1);
717 alignFrameMenuBar.setFont(new java.awt.Font("Verdana", 0, 11));
718 statusBar.setBackground(Color.white);
719 statusBar.setFont(new java.awt.Font("Verdana", 0, 11));
720 statusBar.setBorder(BorderFactory.createLineBorder(Color.black));
721 statusBar.setText("Status bar");
722 outputTextboxMenu.setText("Output to Textbox");
723 clustalColour.setText("Clustalx");
725 clustalColour.addActionListener(new java.awt.event.ActionListener()
727 public void actionPerformed(ActionEvent e)
729 clustalColour_actionPerformed(e);
732 zappoColour.setText("Zappo");
733 zappoColour.addActionListener(new java.awt.event.ActionListener()
735 public void actionPerformed(ActionEvent e)
737 zappoColour_actionPerformed(e);
740 taylorColour.setText("Taylor");
741 taylorColour.addActionListener(new java.awt.event.ActionListener()
743 public void actionPerformed(ActionEvent e)
745 taylorColour_actionPerformed(e);
748 hydrophobicityColour.setText("Hydrophobicity");
750 .addActionListener(new java.awt.event.ActionListener()
752 public void actionPerformed(ActionEvent e)
754 hydrophobicityColour_actionPerformed(e);
757 helixColour.setText("Helix Propensity");
758 helixColour.addActionListener(new java.awt.event.ActionListener()
760 public void actionPerformed(ActionEvent e)
762 helixColour_actionPerformed(e);
765 strandColour.setText("Strand Propensity");
766 strandColour.addActionListener(new java.awt.event.ActionListener()
768 public void actionPerformed(ActionEvent e)
770 strandColour_actionPerformed(e);
773 turnColour.setText("Turn Propensity");
774 turnColour.addActionListener(new java.awt.event.ActionListener()
776 public void actionPerformed(ActionEvent e)
778 turnColour_actionPerformed(e);
781 buriedColour.setText("Buried Index");
782 buriedColour.addActionListener(new java.awt.event.ActionListener()
784 public void actionPerformed(ActionEvent e)
786 buriedColour_actionPerformed(e);
789 userDefinedColour.setText("User Defined...");
790 userDefinedColour.addActionListener(new java.awt.event.ActionListener()
792 public void actionPerformed(ActionEvent e)
794 userDefinedColour_actionPerformed(e);
797 PIDColour.setText("Percentage Identity");
798 PIDColour.addActionListener(new java.awt.event.ActionListener()
800 public void actionPerformed(ActionEvent e)
802 PIDColour_actionPerformed(e);
805 BLOSUM62Colour.setText("BLOSUM62 Score");
806 BLOSUM62Colour.addActionListener(new java.awt.event.ActionListener()
808 public void actionPerformed(ActionEvent e)
810 BLOSUM62Colour_actionPerformed(e);
813 avDistanceTreeBlosumMenuItem.setText("Average Distance Using BLOSUM62");
814 avDistanceTreeBlosumMenuItem
815 .addActionListener(new java.awt.event.ActionListener()
817 public void actionPerformed(ActionEvent e)
819 avTreeBlosumMenuItem_actionPerformed(e);
822 njTreeBlosumMenuItem.setText("Neighbour Joining using BLOSUM62");
824 .addActionListener(new java.awt.event.ActionListener()
826 public void actionPerformed(ActionEvent e)
828 njTreeBlosumMenuItem_actionPerformed(e);
831 annotationPanelMenuItem.setActionCommand("");
832 annotationPanelMenuItem.setText("Show Annotations");
833 annotationPanelMenuItem.setState(jalview.bin.Cache.getDefault(
834 "SHOW_ANNOTATIONS", true));
835 annotationPanelMenuItem
836 .addActionListener(new java.awt.event.ActionListener()
838 public void actionPerformed(ActionEvent e)
840 annotationPanelMenuItem_actionPerformed(e);
843 colourTextMenuItem.setText("Colour Text");
845 .addActionListener(new java.awt.event.ActionListener()
847 public void actionPerformed(ActionEvent e)
849 colourTextMenuItem_actionPerformed(e);
852 htmlMenuItem.setText("HTML");
853 htmlMenuItem.addActionListener(new java.awt.event.ActionListener()
855 public void actionPerformed(ActionEvent e)
857 htmlMenuItem_actionPerformed(e);
860 overviewMenuItem.setText("Overview Window");
861 overviewMenuItem.addActionListener(new java.awt.event.ActionListener()
863 public void actionPerformed(ActionEvent e)
865 overviewMenuItem_actionPerformed(e);
868 undoMenuItem.setEnabled(false);
869 undoMenuItem.setText("Undo");
870 undoMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
871 java.awt.event.KeyEvent.VK_Z, Toolkit.getDefaultToolkit()
872 .getMenuShortcutKeyMask(), false));
873 undoMenuItem.addActionListener(new java.awt.event.ActionListener()
875 public void actionPerformed(ActionEvent e)
877 undoMenuItem_actionPerformed(e);
880 redoMenuItem.setEnabled(false);
881 redoMenuItem.setText("Redo");
882 redoMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
883 java.awt.event.KeyEvent.VK_Y, Toolkit.getDefaultToolkit()
884 .getMenuShortcutKeyMask(), false));
885 redoMenuItem.addActionListener(new java.awt.event.ActionListener()
887 public void actionPerformed(ActionEvent e)
889 redoMenuItem_actionPerformed(e);
892 conservationMenuItem.setText("By Conservation");
894 .addActionListener(new java.awt.event.ActionListener()
896 public void actionPerformed(ActionEvent e)
898 conservationMenuItem_actionPerformed(e);
901 noColourmenuItem.setText("None");
902 noColourmenuItem.addActionListener(new java.awt.event.ActionListener()
904 public void actionPerformed(ActionEvent e)
906 noColourmenuItem_actionPerformed(e);
909 wrapMenuItem.setText("Wrap");
910 wrapMenuItem.addActionListener(new java.awt.event.ActionListener()
912 public void actionPerformed(ActionEvent e)
914 wrapMenuItem_actionPerformed(e);
917 printMenuItem.setText("Print ...");
918 printMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
919 java.awt.event.KeyEvent.VK_P, Toolkit.getDefaultToolkit()
920 .getMenuShortcutKeyMask(), false));
921 printMenuItem.addActionListener(new java.awt.event.ActionListener()
923 public void actionPerformed(ActionEvent e)
925 printMenuItem_actionPerformed(e);
928 renderGapsMenuItem.setText("Show Gaps");
929 renderGapsMenuItem.setState(true);
931 .addActionListener(new java.awt.event.ActionListener()
933 public void actionPerformed(ActionEvent e)
935 renderGapsMenuItem_actionPerformed(e);
938 findMenuItem.setText("Find...");
939 findMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
940 java.awt.event.KeyEvent.VK_F, Toolkit.getDefaultToolkit()
941 .getMenuShortcutKeyMask(), false));
942 findMenuItem.addActionListener(new java.awt.event.ActionListener()
944 public void actionPerformed(ActionEvent e)
946 findMenuItem_actionPerformed(e);
949 abovePIDThreshold.setText("Above Identity Threshold");
950 abovePIDThreshold.addActionListener(new java.awt.event.ActionListener()
952 public void actionPerformed(ActionEvent e)
954 abovePIDThreshold_actionPerformed(e);
957 showSeqFeatures.setText("Show Sequence Features");
958 showSeqFeatures.addActionListener(new ActionListener()
960 public void actionPerformed(ActionEvent actionEvent)
962 showSeqFeatures_actionPerformed(actionEvent);
965 showSeqFeaturesHeight.setText("Vary Sequence Feature Height");
966 showSeqFeaturesHeight.addActionListener(new ActionListener()
968 public void actionPerformed(ActionEvent actionEvent)
970 showSeqFeaturesHeight_actionPerformed(actionEvent);
973 showDbRefsMenuitem.setText("Show Database Refs");
974 showDbRefsMenuitem.addActionListener(new ActionListener()
977 public void actionPerformed(ActionEvent e)
979 showDbRefs_actionPerformed(e);
983 showNpFeatsMenuitem.setText("Show Non-Positional Features");
984 showNpFeatsMenuitem.addActionListener(new ActionListener()
987 public void actionPerformed(ActionEvent e)
989 showNpFeats_actionPerformed(e);
993 nucleotideColour.setText("Nucleotide");
994 nucleotideColour.addActionListener(new java.awt.event.ActionListener()
996 public void actionPerformed(ActionEvent e)
998 nucleotideColour_actionPerformed(e);
1001 deleteGroups.setText("Undefine groups");
1002 deleteGroups.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
1003 java.awt.event.KeyEvent.VK_U, Toolkit.getDefaultToolkit()
1004 .getMenuShortcutKeyMask(), false));
1005 deleteGroups.addActionListener(new java.awt.event.ActionListener()
1007 public void actionPerformed(ActionEvent e)
1009 deleteGroups_actionPerformed(e);
1012 copy.setText("Copy");
1013 copy.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
1014 java.awt.event.KeyEvent.VK_C, Toolkit.getDefaultToolkit()
1015 .getMenuShortcutKeyMask(), false));
1017 copy.addActionListener(new java.awt.event.ActionListener()
1019 public void actionPerformed(ActionEvent e)
1021 copy_actionPerformed(e);
1025 cut.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
1026 java.awt.event.KeyEvent.VK_X, Toolkit.getDefaultToolkit()
1027 .getMenuShortcutKeyMask(), false));
1028 cut.addActionListener(new java.awt.event.ActionListener()
1030 public void actionPerformed(ActionEvent e)
1032 cut_actionPerformed(e);
1035 delete.setText("Delete");
1036 delete.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
1037 java.awt.event.KeyEvent.VK_BACK_SPACE, 0, false));
1038 delete.addActionListener(new java.awt.event.ActionListener()
1040 public void actionPerformed(ActionEvent e)
1042 delete_actionPerformed(e);
1045 pasteMenu.setText("Paste");
1046 pasteNew.setText("To New Alignment");
1047 pasteNew.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
1048 java.awt.event.KeyEvent.VK_V, Toolkit.getDefaultToolkit()
1049 .getMenuShortcutKeyMask()
1050 | java.awt.event.KeyEvent.SHIFT_MASK, false));
1051 pasteNew.addActionListener(new java.awt.event.ActionListener()
1053 public void actionPerformed(ActionEvent e)
1055 pasteNew_actionPerformed(e);
1058 pasteThis.setText("Add To This Alignment");
1059 pasteThis.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
1060 java.awt.event.KeyEvent.VK_V, Toolkit.getDefaultToolkit()
1061 .getMenuShortcutKeyMask(), false));
1062 pasteThis.addActionListener(new java.awt.event.ActionListener()
1064 public void actionPerformed(ActionEvent e)
1066 pasteThis_actionPerformed(e);
1069 applyToAllGroups.setText("Apply Colour To All Groups");
1070 applyToAllGroups.addActionListener(new java.awt.event.ActionListener()
1072 public void actionPerformed(ActionEvent e)
1074 applyToAllGroups_actionPerformed(e);
1077 createPNG.addActionListener(new java.awt.event.ActionListener()
1079 public void actionPerformed(ActionEvent e)
1084 createPNG.setActionCommand("Save As PNG Image");
1085 createPNG.setText("PNG");
1086 font.setText("Font...");
1087 font.addActionListener(new java.awt.event.ActionListener()
1089 public void actionPerformed(ActionEvent e)
1091 font_actionPerformed(e);
1095 seqLimits.setText("Show Sequence Limits");
1096 seqLimits.setState(jalview.bin.Cache.getDefault("SHOW_JVSUFFIX", true));
1097 seqLimits.addActionListener(new java.awt.event.ActionListener()
1099 public void actionPerformed(ActionEvent e)
1101 seqLimit_actionPerformed(e);
1104 epsFile.setText("EPS");
1105 epsFile.addActionListener(new java.awt.event.ActionListener()
1107 public void actionPerformed(ActionEvent e)
1112 LoadtreeMenuItem.setActionCommand("Load a tree for this sequence set");
1113 LoadtreeMenuItem.setText("Load Associated Tree");
1114 LoadtreeMenuItem.addActionListener(new java.awt.event.ActionListener()
1116 public void actionPerformed(ActionEvent e)
1118 LoadtreeMenuItem_actionPerformed(e);
1121 scaleAbove.setVisible(false);
1122 scaleAbove.setText("Scale Above");
1123 scaleAbove.addActionListener(new java.awt.event.ActionListener()
1125 public void actionPerformed(ActionEvent e)
1127 scaleAbove_actionPerformed(e);
1130 scaleLeft.setVisible(false);
1131 scaleLeft.setSelected(true);
1132 scaleLeft.setText("Scale Left");
1133 scaleLeft.addActionListener(new java.awt.event.ActionListener()
1135 public void actionPerformed(ActionEvent e)
1137 scaleLeft_actionPerformed(e);
1140 scaleRight.setVisible(false);
1141 scaleRight.setSelected(true);
1142 scaleRight.setText("Scale Right");
1143 scaleRight.addActionListener(new java.awt.event.ActionListener()
1145 public void actionPerformed(ActionEvent e)
1147 scaleRight_actionPerformed(e);
1150 centreColumnLabelsMenuItem.setVisible(true);
1151 centreColumnLabelsMenuItem.setState(false);
1152 centreColumnLabelsMenuItem.setText("Centre Column Labels");
1153 centreColumnLabelsMenuItem
1154 .addActionListener(new java.awt.event.ActionListener()
1156 public void actionPerformed(ActionEvent e)
1158 centreColumnLabels_actionPerformed(e);
1161 followHighlightMenuItem.setVisible(true);
1162 followHighlightMenuItem.setState(true);
1163 followHighlightMenuItem.setText("Automatic Scrolling");
1164 followHighlightMenuItem.addActionListener(new ActionListener()
1167 public void actionPerformed(ActionEvent e)
1169 followHighlight_actionPerformed();
1174 modifyPID.setText("Modify Identity Threshold...");
1175 modifyPID.addActionListener(new java.awt.event.ActionListener()
1177 public void actionPerformed(ActionEvent e)
1179 modifyPID_actionPerformed(e);
1182 modifyConservation.setText("Modify Conservation Threshold...");
1184 .addActionListener(new java.awt.event.ActionListener()
1186 public void actionPerformed(ActionEvent e)
1188 modifyConservation_actionPerformed(e);
1191 sortByTreeMenu.setText("By Tree Order");
1192 sort.setText("Sort");
1193 sort.addMenuListener(new MenuListener()
1195 public void menuSelected(MenuEvent e)
1200 public void menuDeselected(MenuEvent e)
1204 public void menuCanceled(MenuEvent e)
1208 sortByAnnotScore.setText("by Score");
1209 sort.add(sortByAnnotScore);
1210 sortByAnnotScore.addMenuListener(new javax.swing.event.MenuListener()
1213 public void menuCanceled(MenuEvent e)
1217 public void menuDeselected(MenuEvent e)
1221 public void menuSelected(MenuEvent e)
1223 buildSortByAnnotationScoresMenu();
1226 sortByAnnotScore.setVisible(false);
1228 calculateTree.setText("Calculate Tree");
1230 jMenu2.setText("Export Image");
1231 padGapsMenuitem.setText("Pad Gaps");
1232 padGapsMenuitem.setState(jalview.bin.Cache
1233 .getDefault("PAD_GAPS", false));
1234 padGapsMenuitem.addActionListener(new ActionListener()
1236 public void actionPerformed(ActionEvent e)
1238 padGapsMenuitem_actionPerformed(e);
1241 vamsasStore.setVisible(false);
1242 vamsasStore.setText("VAMSAS store");
1243 vamsasStore.addActionListener(new ActionListener()
1245 public void actionPerformed(ActionEvent e)
1247 vamsasStore_actionPerformed(e);
1250 showTranslation.setText("Translate cDNA");
1251 showTranslation.addActionListener(new ActionListener()
1253 public void actionPerformed(ActionEvent e)
1255 showTranslation_actionPerformed(e);
1258 extractScores.setText("Extract Scores...");
1259 extractScores.addActionListener(new ActionListener()
1261 public void actionPerformed(ActionEvent e)
1263 extractScores_actionPerformed(e);
1266 extractScores.setVisible(true); // JBPNote: TODO: make gui for regex based
1268 showProducts.setText("Get Cross References");
1270 * showProducts.addActionListener(new ActionListener() {
1272 * public void actionPerformed(ActionEvent e) {
1273 * showProducts_actionPerformed(e); } });
1275 featureSettings.setText("Feature Settings...");
1276 featureSettings.addActionListener(new ActionListener()
1278 public void actionPerformed(ActionEvent e)
1280 featureSettings_actionPerformed(e);
1283 fetchSequence.setText("Fetch Sequence(s)...");
1284 fetchSequence.addActionListener(new ActionListener()
1286 public void actionPerformed(ActionEvent e)
1288 fetchSequence_actionPerformed(e);
1292 annotationColour.setText("By Annotation...");
1293 annotationColour.addActionListener(new ActionListener()
1295 public void actionPerformed(ActionEvent e)
1297 annotationColour_actionPerformed(e);
1300 associatedData.setText("Load Features / Annotations");
1301 associatedData.addActionListener(new ActionListener()
1303 public void actionPerformed(ActionEvent e)
1305 associatedData_actionPerformed(e);
1308 autoCalculate.setText("Autocalculate Consensus");
1309 autoCalculate.setState(jalview.bin.Cache.getDefault(
1310 "AUTO_CALC_CONSENSUS", true));
1311 autoCalculate.addActionListener(new ActionListener()
1313 public void actionPerformed(ActionEvent e)
1315 autoCalculate_actionPerformed(e);
1318 addSequenceMenu.setText("Add Sequences");
1319 addFromFile.setText("From File");
1320 addFromFile.addActionListener(new ActionListener()
1322 public void actionPerformed(ActionEvent e)
1324 addFromFile_actionPerformed(e);
1327 addFromText.setText("From Textbox");
1328 addFromText.addActionListener(new ActionListener()
1330 public void actionPerformed(ActionEvent e)
1332 addFromText_actionPerformed(e);
1335 addFromURL.setText("From URL");
1336 addFromURL.addActionListener(new ActionListener()
1338 public void actionPerformed(ActionEvent e)
1340 addFromURL_actionPerformed(e);
1343 exportFeatures.setText("Export Features...");
1344 exportFeatures.addActionListener(new ActionListener()
1346 public void actionPerformed(ActionEvent e)
1348 exportFeatures_actionPerformed(e);
1351 exportAnnotations.setText("Export Annotations...");
1352 exportAnnotations.addActionListener(new ActionListener()
1354 public void actionPerformed(ActionEvent e)
1356 exportAnnotations_actionPerformed(e);
1359 statusPanel.setLayout(gridLayout1);
1360 jMenu3.setText("Show");
1361 showAllSeqs.setText("All Sequences");
1362 showAllSeqs.addActionListener(new ActionListener()
1364 public void actionPerformed(ActionEvent e)
1366 showAllSeqs_actionPerformed(e);
1369 showAllColumns.setText("All Columns");
1370 showAllColumns.addActionListener(new ActionListener()
1372 public void actionPerformed(ActionEvent e)
1374 showAllColumns_actionPerformed(e);
1377 hideMenu.setText("Hide");
1378 hideSelSequences.setText("Selected Sequences");
1379 hideSelSequences.addActionListener(new ActionListener()
1381 public void actionPerformed(ActionEvent e)
1383 hideSelSequences_actionPerformed(e);
1386 hideSelColumns.setText("Selected Columns");
1387 hideSelColumns.addActionListener(new ActionListener()
1389 public void actionPerformed(ActionEvent e)
1391 hideSelColumns_actionPerformed(e);
1394 hiddenMarkers.setText("Show Hidden Markers");
1395 hiddenMarkers.addActionListener(new ActionListener()
1397 public void actionPerformed(ActionEvent e)
1399 hiddenMarkers_actionPerformed(e);
1402 invertColSel.setText("Invert Column Selection");
1403 invertColSel.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
1404 java.awt.event.KeyEvent.VK_I, Toolkit.getDefaultToolkit()
1405 .getMenuShortcutKeyMask()
1406 | java.awt.event.KeyEvent.ALT_MASK, false));
1407 invertColSel.addActionListener(new ActionListener()
1409 public void actionPerformed(ActionEvent e)
1411 invertColSel_actionPerformed(e);
1414 tabbedPane.addChangeListener(new javax.swing.event.ChangeListener()
1416 public void stateChanged(ChangeEvent evt)
1418 JTabbedPane pane = (JTabbedPane) evt.getSource();
1419 int sel = pane.getSelectedIndex();
1420 tabSelectionChanged(sel);
1423 tabbedPane.addMouseListener(new MouseAdapter()
1425 public void mousePressed(MouseEvent e)
1427 tabbedPane_mousePressed(e);
1430 tabbedPane.addFocusListener(new FocusAdapter()
1432 public void focusGained(FocusEvent e)
1434 tabbedPane_focusGained(e);
1437 save.setText("Save");
1438 save.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
1439 java.awt.event.KeyEvent.VK_S, Toolkit.getDefaultToolkit()
1440 .getMenuShortcutKeyMask(), false));
1441 save.addActionListener(new ActionListener()
1443 public void actionPerformed(ActionEvent e)
1445 save_actionPerformed(e);
1448 reload.setEnabled(false);
1449 reload.setText("Reload");
1450 reload.addActionListener(new ActionListener()
1452 public void actionPerformed(ActionEvent e)
1454 reload_actionPerformed(e);
1457 newView.setText("New View");
1458 newView.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
1459 java.awt.event.KeyEvent.VK_T, Toolkit.getDefaultToolkit()
1460 .getMenuShortcutKeyMask(), false));
1461 newView.addActionListener(new ActionListener()
1463 public void actionPerformed(ActionEvent e)
1465 newView_actionPerformed(e);
1468 tabbedPane.setToolTipText("<html><i> Right-click to rename tab"
1469 + "<br> Press X to eXpand tabs, G to reGroup.</i></html>");
1470 textColour.setText("Colour Text ...");
1471 textColour.addActionListener(new ActionListener()
1473 public void actionPerformed(ActionEvent e)
1475 textColour_actionPerformed(e);
1478 formatMenu.setText("Format");
1479 selectMenu.setText("Select");
1480 idRightAlign.setText("Right Align Sequence Id");
1481 idRightAlign.addActionListener(new ActionListener()
1483 public void actionPerformed(ActionEvent e)
1485 idRightAlign_actionPerformed(e);
1488 gatherViews.setEnabled(false);
1489 gatherViews.setText("Gather Views");
1490 gatherViews.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
1491 java.awt.event.KeyEvent.VK_G, 0, false));
1492 gatherViews.addActionListener(new ActionListener()
1494 public void actionPerformed(ActionEvent e)
1496 gatherViews_actionPerformed(e);
1499 expandViews.setEnabled(false);
1500 expandViews.setText("Expand Views");
1501 expandViews.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
1502 java.awt.event.KeyEvent.VK_X, 0, false));
1503 expandViews.addActionListener(new ActionListener()
1505 public void actionPerformed(ActionEvent e)
1507 expandViews_actionPerformed(e);
1510 pageSetup.setText("Page Setup ...");
1511 pageSetup.addActionListener(new ActionListener()
1513 public void actionPerformed(ActionEvent e)
1515 pageSetup_actionPerformed(e);
1518 alignmentProperties.setText("Alignment Properties...");
1519 alignmentProperties.addActionListener(new ActionListener()
1521 public void actionPerformed(ActionEvent actionEvent)
1523 alignmentProperties();
1526 tooltipSettingsMenu.setText("Sequence ID Tooltip");
1527 alignFrameMenuBar.add(fileMenu);
1528 alignFrameMenuBar.add(editMenu);
1529 alignFrameMenuBar.add(selectMenu);
1530 alignFrameMenuBar.add(viewMenu);
1531 alignFrameMenuBar.add(formatMenu);
1532 alignFrameMenuBar.add(colourMenu);
1533 alignFrameMenuBar.add(calculateMenu);
1534 alignFrameMenuBar.add(webService);
1535 fileMenu.add(fetchSequence);
1536 fileMenu.add(addSequenceMenu);
1537 fileMenu.add(reload);
1538 fileMenu.addSeparator();
1539 fileMenu.add(vamsasStore);
1541 fileMenu.add(saveAs);
1542 fileMenu.add(outputTextboxMenu);
1543 fileMenu.add(pageSetup);
1544 fileMenu.add(printMenuItem);
1545 fileMenu.addSeparator();
1546 fileMenu.add(jMenu2);
1547 fileMenu.add(exportFeatures);
1548 fileMenu.add(exportAnnotations);
1549 fileMenu.add(LoadtreeMenuItem);
1550 fileMenu.add(associatedData);
1551 fileMenu.addSeparator();
1552 fileMenu.add(closeMenuItem);
1553 editMenu.add(undoMenuItem);
1554 editMenu.add(redoMenuItem);
1557 editMenu.add(pasteMenu);
1558 editMenu.add(delete);
1559 editMenu.addSeparator();
1560 editMenu.add(remove2LeftMenuItem);
1561 editMenu.add(remove2RightMenuItem);
1562 editMenu.add(removeGappedColumnMenuItem);
1563 editMenu.add(removeAllGapsMenuItem);
1564 editMenu.add(removeRedundancyMenuItem);
1565 editMenu.addSeparator();
1566 // dont add these yet in the CVS build - they cannot be undone!
1567 editMenu.add(justifyLeftMenuItem);
1568 editMenu.add(justifyRightMenuItem);
1569 editMenu.addSeparator();
1570 editMenu.add(padGapsMenuitem);
1571 viewMenu.add(newView);
1572 viewMenu.add(expandViews);
1573 viewMenu.add(gatherViews);
1574 viewMenu.addSeparator();
1575 viewMenu.add(jMenu3);
1576 viewMenu.add(hideMenu);
1577 viewMenu.addSeparator();
1578 viewMenu.add(followHighlightMenuItem);
1579 viewMenu.add(annotationPanelMenuItem);
1580 viewMenu.addSeparator();
1581 viewMenu.add(showSeqFeatures);
1582 viewMenu.add(showSeqFeaturesHeight);
1584 viewMenu.add(featureSettings);
1585 tooltipSettingsMenu.add(showDbRefsMenuitem);
1586 tooltipSettingsMenu.add(showNpFeatsMenuitem);
1587 viewMenu.add(tooltipSettingsMenu);
1588 viewMenu.addSeparator();
1589 viewMenu.add(alignmentProperties);
1590 viewMenu.addSeparator();
1591 viewMenu.add(overviewMenuItem);
1592 colourMenu.add(applyToAllGroups);
1593 colourMenu.add(textColour);
1594 colourMenu.addSeparator();
1595 colourMenu.add(noColourmenuItem);
1596 colourMenu.add(clustalColour);
1597 colourMenu.add(BLOSUM62Colour);
1598 colourMenu.add(PIDColour);
1599 colourMenu.add(zappoColour);
1600 colourMenu.add(taylorColour);
1601 colourMenu.add(hydrophobicityColour);
1602 colourMenu.add(helixColour);
1603 colourMenu.add(strandColour);
1604 colourMenu.add(turnColour);
1605 colourMenu.add(buriedColour);
1606 colourMenu.add(nucleotideColour);
1607 colourMenu.add(userDefinedColour);
1608 colourMenu.addSeparator();
1609 colourMenu.add(conservationMenuItem);
1610 colourMenu.add(modifyConservation);
1611 colourMenu.add(abovePIDThreshold);
1612 colourMenu.add(modifyPID);
1613 colourMenu.add(annotationColour);
1614 calculateMenu.add(sort);
1615 calculateMenu.add(calculateTree);
1616 calculateMenu.addSeparator();
1617 calculateMenu.add(pairwiseAlignmentMenuItem);
1618 calculateMenu.add(PCAMenuItem);
1619 calculateMenu.addSeparator();
1620 calculateMenu.add(showTranslation);
1621 calculateMenu.add(showProducts);
1622 calculateMenu.add(autoCalculate);
1623 calculateMenu.addSeparator();
1624 calculateMenu.add(extractScores);
1625 webServiceNoServices = new JMenuItem("<No Services>");
1626 webService.add(webServiceNoServices);
1627 pasteMenu.add(pasteNew);
1628 pasteMenu.add(pasteThis);
1629 sort.add(sortIDMenuItem);
1630 sort.add(sortLengthMenuItem);
1631 sort.add(sortGroupMenuItem);
1632 sort.add(sortPairwiseMenuItem);
1633 sort.add(sortByTreeMenu);
1634 calculateTree.add(averageDistanceTreeMenuItem);
1635 calculateTree.add(neighbourTreeMenuItem);
1636 calculateTree.add(avDistanceTreeBlosumMenuItem);
1637 calculateTree.add(njTreeBlosumMenuItem);
1638 jMenu2.add(htmlMenuItem);
1639 jMenu2.add(epsFile);
1640 jMenu2.add(createPNG);
1641 addSequenceMenu.add(addFromFile);
1642 addSequenceMenu.add(addFromText);
1643 addSequenceMenu.add(addFromURL);
1644 this.getContentPane().add(statusPanel, java.awt.BorderLayout.SOUTH);
1645 statusPanel.add(statusBar, null);
1646 this.getContentPane().add(tabbedPane, java.awt.BorderLayout.CENTER);
1647 jMenu3.add(showAllColumns);
1648 jMenu3.add(showAllSeqs);
1649 hideMenu.add(hideSelColumns);
1650 hideMenu.add(hideSelSequences);
1651 formatMenu.add(font);
1652 formatMenu.addSeparator();
1653 formatMenu.add(wrapMenuItem);
1654 formatMenu.add(scaleAbove);
1655 formatMenu.add(scaleLeft);
1656 formatMenu.add(scaleRight);
1657 formatMenu.add(seqLimits);
1658 formatMenu.add(idRightAlign);
1659 formatMenu.add(hiddenMarkers);
1660 formatMenu.add(viewBoxesMenuItem);
1661 formatMenu.add(viewTextMenuItem);
1662 formatMenu.add(colourTextMenuItem);
1663 formatMenu.add(renderGapsMenuItem);
1664 formatMenu.add(centreColumnLabelsMenuItem);
1665 formatMenu.add(showUnconservedMenuItem);
1666 selectMenu.add(findMenuItem);
1667 selectMenu.addSeparator();
1668 selectMenu.add(selectAllSequenceMenuItem);
1669 selectMenu.add(deselectAllSequenceMenuItem);
1670 selectMenu.add(invertSequenceMenuItem);
1671 selectMenu.add(invertColSel);
1672 selectMenu.add(deleteGroups);
1675 protected void showUnconservedMenuItem_actionPerformed(ActionEvent e)
1677 // TODO Auto-generated method stub
1681 protected void showSeqFeaturesHeight_actionPerformed(
1682 ActionEvent actionEvent)
1684 // TODO Auto-generated method stub
1688 protected void justifyRightMenuItem_actionPerformed(ActionEvent e)
1690 // TODO Auto-generated method stub
1694 protected void justifyLeftMenuItem_actionPerformed(ActionEvent e)
1696 // TODO Auto-generated method stub
1700 protected void followHighlight_actionPerformed()
1702 // TODO Auto-generated method stub
1706 protected void showNpFeats_actionPerformed(ActionEvent e)
1708 // TODO Auto-generated method stub
1712 protected void showDbRefs_actionPerformed(ActionEvent e)
1714 // TODO Auto-generated method stub
1718 protected void centreColumnLabels_actionPerformed(ActionEvent e)
1722 protected void showProducts_actionPerformed(ActionEvent e)
1726 protected void buildSortByAnnotationScoresMenu()
1730 protected void extractScores_actionPerformed(ActionEvent e)
1734 protected void outputText_actionPerformed(ActionEvent e)
1738 public void addFromFile_actionPerformed(ActionEvent e)
1743 public void addFromText_actionPerformed(ActionEvent e)
1748 public void addFromURL_actionPerformed(ActionEvent e)
1753 public void exportFeatures_actionPerformed(ActionEvent e)
1758 public void exportAnnotations_actionPerformed(ActionEvent e)
1763 protected void htmlMenuItem_actionPerformed(ActionEvent e)
1767 protected void closeMenuItem_actionPerformed(boolean b)
1771 protected void redoMenuItem_actionPerformed(ActionEvent e)
1775 protected void undoMenuItem_actionPerformed(ActionEvent e)
1779 protected void selectAllSequenceMenuItem_actionPerformed(ActionEvent e)
1783 protected void deselectAllSequenceMenuItem_actionPerformed(ActionEvent e)
1787 protected void invertSequenceMenuItem_actionPerformed(ActionEvent e)
1791 protected void remove2LeftMenuItem_actionPerformed(ActionEvent e)
1795 protected void remove2RightMenuItem_actionPerformed(ActionEvent e)
1799 protected void removeGappedColumnMenuItem_actionPerformed(ActionEvent e)
1803 protected void removeAllGapsMenuItem_actionPerformed(ActionEvent e)
1807 protected void wrapMenuItem_actionPerformed(ActionEvent e)
1811 protected void viewBoxesMenuItem_actionPerformed(ActionEvent e)
1815 protected void viewTextMenuItem_actionPerformed(ActionEvent e)
1819 protected void colourTextMenuItem_actionPerformed(ActionEvent e)
1823 protected void annotationPanelMenuItem_actionPerformed(ActionEvent e)
1827 protected void overviewMenuItem_actionPerformed(ActionEvent e)
1831 protected void sortPairwiseMenuItem_actionPerformed(ActionEvent e)
1835 protected void sortIDMenuItem_actionPerformed(ActionEvent e)
1839 protected void sortLengthMenuItem_actionPerformed(ActionEvent e)
1843 protected void sortGroupMenuItem_actionPerformed(ActionEvent e)
1847 protected void removeRedundancyMenuItem_actionPerformed(ActionEvent e)
1851 protected void pairwiseAlignmentMenuItem_actionPerformed(ActionEvent e)
1855 protected void PCAMenuItem_actionPerformed(ActionEvent e)
1859 protected void averageDistanceTreeMenuItem_actionPerformed(ActionEvent e)
1863 protected void neighbourTreeMenuItem_actionPerformed(ActionEvent e)
1867 protected void njTreeBlosumMenuItem_actionPerformed(ActionEvent e)
1871 protected void avTreeBlosumMenuItem_actionPerformed(ActionEvent e)
1875 protected void clustalColour_actionPerformed(ActionEvent e)
1879 protected void zappoColour_actionPerformed(ActionEvent e)
1883 protected void taylorColour_actionPerformed(ActionEvent e)
1887 protected void hydrophobicityColour_actionPerformed(ActionEvent e)
1891 protected void helixColour_actionPerformed(ActionEvent e)
1895 protected void strandColour_actionPerformed(ActionEvent e)
1899 protected void turnColour_actionPerformed(ActionEvent e)
1903 protected void buriedColour_actionPerformed(ActionEvent e)
1907 protected void userDefinedColour_actionPerformed(ActionEvent e)
1911 protected void PIDColour_actionPerformed(ActionEvent e)
1915 protected void BLOSUM62Colour_actionPerformed(ActionEvent e)
1919 protected void noColourmenuItem_actionPerformed(ActionEvent e)
1923 protected void conservationMenuItem_actionPerformed(ActionEvent e)
1927 protected void printMenuItem_actionPerformed(ActionEvent e)
1931 protected void renderGapsMenuItem_actionPerformed(ActionEvent e)
1935 protected void findMenuItem_actionPerformed(ActionEvent e)
1939 protected void abovePIDThreshold_actionPerformed(ActionEvent e)
1943 public void showSeqFeatures_actionPerformed(ActionEvent actionEvent)
1947 protected void nucleotideColour_actionPerformed(ActionEvent e)
1951 protected void deleteGroups_actionPerformed(ActionEvent e)
1955 protected void copy_actionPerformed(ActionEvent e)
1959 protected void cut_actionPerformed(ActionEvent e)
1963 protected void delete_actionPerformed(ActionEvent e)
1967 protected void pasteNew_actionPerformed(ActionEvent e)
1971 protected void pasteThis_actionPerformed(ActionEvent e)
1975 protected void applyToAllGroups_actionPerformed(ActionEvent e)
1979 public void createPNG(java.io.File f)
1983 protected void font_actionPerformed(ActionEvent e)
1987 protected void seqLimit_actionPerformed(ActionEvent e)
1991 public void seqDBRef_actionPerformed(ActionEvent e)
1996 public void createEPS(java.io.File f)
2000 protected void LoadtreeMenuItem_actionPerformed(ActionEvent e)
2004 protected void jpred_actionPerformed(ActionEvent e)
2008 protected void scaleAbove_actionPerformed(ActionEvent e)
2012 protected void scaleLeft_actionPerformed(ActionEvent e)
2016 protected void scaleRight_actionPerformed(ActionEvent e)
2020 protected void modifyPID_actionPerformed(ActionEvent e)
2024 protected void modifyConservation_actionPerformed(ActionEvent e)
2028 protected void saveAs_actionPerformed(ActionEvent e)
2032 protected void padGapsMenuitem_actionPerformed(ActionEvent e)
2036 public void vamsasStore_actionPerformed(ActionEvent e)
2041 public void vamsasLoad_actionPerformed(ActionEvent e)
2046 public void showTranslation_actionPerformed(ActionEvent e)
2051 public void featureSettings_actionPerformed(ActionEvent e)
2056 public void fetchSequence_actionPerformed(ActionEvent e)
2061 public void smoothFont_actionPerformed(ActionEvent e)
2066 public void annotationColour_actionPerformed(ActionEvent e)
2071 public void associatedData_actionPerformed(ActionEvent e)
2076 public void autoCalculate_actionPerformed(ActionEvent e)
2081 public void showAllSeqs_actionPerformed(ActionEvent e)
2086 public void showAllColumns_actionPerformed(ActionEvent e)
2091 public void hideSelSequences_actionPerformed(ActionEvent e)
2096 public void hideSelColumns_actionPerformed(ActionEvent e)
2101 public void hiddenMarkers_actionPerformed(ActionEvent e)
2106 public void findPdbId_actionPerformed(ActionEvent e)
2111 public void enterPdbId_actionPerformed(ActionEvent e)
2116 public void pdbFile_actionPerformed(ActionEvent e)
2121 public void invertColSel_actionPerformed(ActionEvent e)
2126 public void tabSelectionChanged(int sel)
2131 public void tabbedPane_mousePressed(MouseEvent e)
2136 public void tabbedPane_focusGained(FocusEvent e)
2141 public void save_actionPerformed(ActionEvent e)
2146 public void reload_actionPerformed(ActionEvent e)
2151 public void newView_actionPerformed(ActionEvent e)
2156 public void textColour_actionPerformed(ActionEvent e)
2161 public void idRightAlign_actionPerformed(ActionEvent e)
2166 public void expandViews_actionPerformed(ActionEvent e)
2171 public void gatherViews_actionPerformed(ActionEvent e)
2176 public void buildTreeMenu()
2181 public void pageSetup_actionPerformed(ActionEvent e)
2186 public void alignmentProperties()