- outputTextboxMenu.add(item);
- }
- closeMenuItem.addActionListener(this);
- loadApplication.addActionListener(this);
-
- loadTree.addActionListener(this);
- selectAllSequenceMenuItem.addActionListener(this);
- deselectAllSequenceMenuItem.addActionListener(this);
- invertSequenceMenuItem.addActionListener(this);
- remove2LeftMenuItem.setLabel("Remove Left");
- remove2LeftMenuItem.addActionListener(this);
- remove2RightMenuItem.setLabel("Remove Right");
- remove2RightMenuItem.addActionListener(this);
- removeGappedColumnMenuItem.setLabel("Remove Empty Columns");
- removeGappedColumnMenuItem.addActionListener(this);
- removeAllGapsMenuItem.setLabel("Remove All Gaps");
- removeAllGapsMenuItem.addActionListener(this);
- viewBoxesMenuItem.setLabel("Boxes");
- viewBoxesMenuItem.setState(true);
- viewBoxesMenuItem.addItemListener(this);
- viewTextMenuItem.setLabel("Text");
- viewTextMenuItem.setState(true);
- viewTextMenuItem.addItemListener(this);
- sortPairwiseMenuItem.setLabel("by Pairwise Identity");
- sortPairwiseMenuItem.addActionListener(this);
- sortIDMenuItem.setLabel("by ID");
- sortIDMenuItem.addActionListener(this);
- sortGroupMenuItem.setLabel("by Group");
- sortGroupMenuItem.addActionListener(this);
- removeRedundancyMenuItem.setLabel("Remove Redundancy...");
- removeRedundancyMenuItem.addActionListener(this);
- pairwiseAlignmentMenuItem.setLabel("Pairwise Alignments...");
- pairwiseAlignmentMenuItem.addActionListener(this);
- PCAMenuItem.setLabel("Principal Component Analysis");
- PCAMenuItem.addActionListener(this);
- averageDistanceTreeMenuItem.setLabel(
- "Average Distance Using % Identity");
- averageDistanceTreeMenuItem.addActionListener(this);
- neighbourTreeMenuItem.setLabel("Neighbour Joining Using % Identity");
- neighbourTreeMenuItem.addActionListener(this);
- statusBar.setBackground(Color.white);
- statusBar.setFont(new java.awt.Font("Verdana", 0, 11));
- statusBar.setText("Status bar");
- outputTextboxMenu.setLabel("Output to Textbox");
- clustalColour.setLabel("Clustalx");
-
- clustalColour.addActionListener(this);
- zappoColour.setLabel("Zappo");
- zappoColour.addActionListener(this);
- taylorColour.setLabel("Taylor");
- taylorColour.addActionListener(this);
- hydrophobicityColour.setLabel("Hydrophobicity");
- hydrophobicityColour.addActionListener(this);
- helixColour.setLabel("Helix Propensity");
- helixColour.addActionListener(this);
- strandColour.setLabel("Strand Propensity");
- strandColour.addActionListener(this);
- turnColour.setLabel("Turn Propensity");
- turnColour.addActionListener(this);
- buriedColour.setLabel("Buried Index");
- buriedColour.addActionListener(this);
- userDefinedColour.setLabel("User Defined...");
- userDefinedColour.addActionListener(this);
- PIDColour.setLabel("Percentage Identity");
- PIDColour.addActionListener(this);
- BLOSUM62Colour.setLabel("BLOSUM62 Score");
- BLOSUM62Colour.addActionListener(this);
- avDistanceTreeBlosumMenuItem.setLabel(
- "Average Distance Using BLOSUM62");
- avDistanceTreeBlosumMenuItem.addActionListener(this);
- njTreeBlosumMenuItem.setLabel("Neighbour Joining Using BLOSUM62");
- njTreeBlosumMenuItem.addActionListener(this);
- annotationPanelMenuItem.setLabel("Show Annotations");
- annotationPanelMenuItem.addItemListener(this);
- colourTextMenuItem.setLabel("Colour Text");
- colourTextMenuItem.addItemListener(this);
- overviewMenuItem.setLabel("Overview Window");
- overviewMenuItem.addActionListener(this);
- undoMenuItem.setEnabled(false);
- undoMenuItem.setLabel("Undo");
- undoMenuItem.addActionListener(this);
- redoMenuItem.setEnabled(false);
- redoMenuItem.setLabel("Redo");
- redoMenuItem.addActionListener(this);
- conservationMenuItem.setLabel("by Conservation");
- conservationMenuItem.addItemListener(this);
- noColourmenuItem.setLabel("None");
- noColourmenuItem.addActionListener(this);
- wrapMenuItem.setLabel("Wrap");
- wrapMenuItem.addItemListener(this);
- renderGapsMenuItem.setLabel("Show Gaps");
- renderGapsMenuItem.setState(true);
- renderGapsMenuItem.addItemListener(this);
- findMenuItem.setLabel("Find...");
- findMenuItem.addActionListener(this);
+ // dynamically fill save as menu with available formats
+ for (int i = 0; i < jalview.io.AppletFormatAdapter.WRITEABLE_FORMATS.length;
+ i++)
+ {
+
+ item = new MenuItem(jalview.io.AppletFormatAdapter.WRITEABLE_FORMATS[i]);
+
+ item.addActionListener(new java.awt.event.ActionListener()
+ {
+ public void actionPerformed(ActionEvent e)
+ {
+ outputText_actionPerformed(e);
+ }
+ });
+
+ outputTextboxMenu.add(item);
+ }
+ closeMenuItem.addActionListener(this);
+ loadApplication.addActionListener(this);
+
+ loadTree.addActionListener(this);
+ loadAnnotations.addActionListener(this);
+ outputFeatures.addActionListener(this);
+ outputAnnotations.addActionListener(this);
+ selectAllSequenceMenuItem.addActionListener(this);
+ deselectAllSequenceMenuItem.addActionListener(this);
+ invertSequenceMenuItem.addActionListener(this);
+ remove2LeftMenuItem.setLabel("Remove Left");
+ remove2LeftMenuItem.addActionListener(this);
+ remove2RightMenuItem.setLabel("Remove Right");
+ remove2RightMenuItem.addActionListener(this);
+ removeGappedColumnMenuItem.setLabel("Remove Empty Columns");
+ removeGappedColumnMenuItem.addActionListener(this);
+ removeAllGapsMenuItem.setLabel("Remove All Gaps");
+ removeAllGapsMenuItem.addActionListener(this);
+ viewBoxesMenuItem.setLabel("Boxes");
+ viewBoxesMenuItem.setState(true);
+ viewBoxesMenuItem.addItemListener(this);
+ viewTextMenuItem.setLabel("Text");
+ viewTextMenuItem.setState(true);
+ viewTextMenuItem.addItemListener(this);
+ sortPairwiseMenuItem.setLabel("by Pairwise Identity");
+ sortPairwiseMenuItem.addActionListener(this);
+ sortIDMenuItem.setLabel("by ID");
+ sortIDMenuItem.addActionListener(this);
+ sortGroupMenuItem.setLabel("by Group");
+ sortGroupMenuItem.addActionListener(this);
+ removeRedundancyMenuItem.setLabel("Remove Redundancy...");
+ removeRedundancyMenuItem.addActionListener(this);
+ pairwiseAlignmentMenuItem.setLabel("Pairwise Alignments...");
+ pairwiseAlignmentMenuItem.addActionListener(this);
+ PCAMenuItem.setLabel("Principal Component Analysis");
+ PCAMenuItem.addActionListener(this);
+ averageDistanceTreeMenuItem.setLabel(
+ "Average Distance Using % Identity");
+ averageDistanceTreeMenuItem.addActionListener(this);
+ neighbourTreeMenuItem.setLabel("Neighbour Joining Using % Identity");
+ neighbourTreeMenuItem.addActionListener(this);
+ statusBar.setBackground(Color.white);
+ statusBar.setFont(new java.awt.Font("Verdana", 0, 11));
+ statusBar.setText("Status bar");
+ outputTextboxMenu.setLabel("Output to Textbox");
+ clustalColour.setLabel("Clustalx");
+
+ clustalColour.addActionListener(this);
+ zappoColour.setLabel("Zappo");
+ zappoColour.addActionListener(this);
+ taylorColour.setLabel("Taylor");
+ taylorColour.addActionListener(this);
+ hydrophobicityColour.setLabel("Hydrophobicity");
+ hydrophobicityColour.addActionListener(this);
+ helixColour.setLabel("Helix Propensity");
+ helixColour.addActionListener(this);
+ strandColour.setLabel("Strand Propensity");
+ strandColour.addActionListener(this);
+ turnColour.setLabel("Turn Propensity");
+ turnColour.addActionListener(this);
+ buriedColour.setLabel("Buried Index");
+ buriedColour.addActionListener(this);
+ userDefinedColour.setLabel("User Defined...");
+ userDefinedColour.addActionListener(this);
+ PIDColour.setLabel("Percentage Identity");
+ PIDColour.addActionListener(this);
+ BLOSUM62Colour.setLabel("BLOSUM62 Score");
+ BLOSUM62Colour.addActionListener(this);
+ avDistanceTreeBlosumMenuItem.setLabel(
+ "Average Distance Using BLOSUM62");
+ avDistanceTreeBlosumMenuItem.addActionListener(this);
+ njTreeBlosumMenuItem.setLabel("Neighbour Joining Using BLOSUM62");
+ njTreeBlosumMenuItem.addActionListener(this);
+ annotationPanelMenuItem.setLabel("Show Annotations");
+ annotationPanelMenuItem.addItemListener(this);
+ colourTextMenuItem.setLabel("Colour Text");
+ colourTextMenuItem.addItemListener(this);
+ alProperties.addActionListener(this);
+ overviewMenuItem.setLabel("Overview Window");
+ overviewMenuItem.addActionListener(this);
+ undoMenuItem.setEnabled(false);
+ undoMenuItem.setLabel("Undo");
+ undoMenuItem.addActionListener(this);
+ redoMenuItem.setEnabled(false);
+ redoMenuItem.setLabel("Redo");
+ redoMenuItem.addActionListener(this);
+ conservationMenuItem.setLabel("by Conservation");
+ conservationMenuItem.addItemListener(this);
+ noColourmenuItem.setLabel("None");
+ noColourmenuItem.addActionListener(this);
+ wrapMenuItem.setLabel("Wrap");
+ wrapMenuItem.addItemListener(this);
+ renderGapsMenuItem.setLabel("Show Gaps");
+ renderGapsMenuItem.setState(true);
+ renderGapsMenuItem.addItemListener(this);
+ findMenuItem.setLabel("Find...");
+ findMenuItem.addActionListener(this);