JMenuItem createPNG = new JMenuItem();
+ JMenuItem createBioJS = new JMenuItem();
+
JMenuItem createSVG = new JMenuItem();
protected JMenuItem font = new JMenuItem();
JMenuItem annotationColour = new JMenuItem();
+ JMenuItem annotationColumn = new JMenuItem();
+
protected JMenuItem rnahelicesColour = new JMenuItem();
JMenuItem associatedData = new JMenuItem();
JMenuItem textColour = new JMenuItem();
- JMenu formatMenu = new JMenu();
+ protected JMenu formatMenu = new JMenu();
JMenu selectMenu = new JMenu();
private boolean showAutoCalculatedAbove = false;
- private Map<KeyStroke, ActionListener> accelerators = new HashMap<KeyStroke, ActionListener>();
+ private Map<KeyStroke, JMenuItem> accelerators = new HashMap<KeyStroke, JMenuItem>();
public GAlignFrame()
{
htmlMenuItem_actionPerformed(e);
}
});
+
+ // TODO uncomment when supported by MassageManager
+ // createBioJS.setText(MessageManager.getString("label.biojs_html_export"));
+ createBioJS.setText("BioJS");
+ createBioJS.addActionListener(new java.awt.event.ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ bioJSMenuItem_actionPerformed(e);
+ }
+ });
+
overviewMenuItem.setText(MessageManager
.getString("label.overview_window"));
overviewMenuItem.addActionListener(new ActionListener()
font_actionPerformed(e);
}
});
-
seqLimits.setText(MessageManager
.getString("label.show_sequence_limits"));
seqLimits.setState(jalview.bin.Cache.getDefault("SHOW_JVSUFFIX", true));
}
});
+ annotationColumn.setText(MessageManager
+ .getString("action.select_by_annotation"));
+ annotationColumn.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ annotationColumn_actionPerformed(e);
+ }
+ });
+
rnahelicesColour.setText(MessageManager
.getString("action.by_rna_helixes"));
rnahelicesColour.addActionListener(new ActionListener()
jMenu2.add(htmlMenuItem);
jMenu2.add(epsFile);
jMenu2.add(createPNG);
+ jMenu2.add(createBioJS);
jMenu2.add(createSVG);
addSequenceMenu.add(addFromFile);
addSequenceMenu.add(addFromText);
selectMenu.add(unGroup);
selectMenu.add(grpsFromSelection);
selectMenu.add(deleteGroups);
+ selectMenu.add(annotationColumn);
calculateMenu.add(expandAlignment);
// TODO - determine if the listenToViewSelections button is needed : see bug
// JAL-574
JMenuItem menuItem, ActionListener actionListener)
{
menuItem.setAccelerator(keyStroke);
- accelerators.put(keyStroke, actionListener);
+ accelerators.put(keyStroke, menuItem);
menuItem.addActionListener(actionListener);
}
{
}
+ protected void bioJSMenuItem_actionPerformed(ActionEvent e)
+ {
+
+ }
+
protected void closeMenuItem_actionPerformed(boolean b)
{
}
}
+ public void annotationColumn_actionPerformed(ActionEvent e)
+ {
+
+ }
+
public void rnahelicesColour_actionPerformed(ActionEvent e)
{
this.annotationSortOrder = annotationSortOrder;
}
- public Map<KeyStroke, ActionListener> getAccelerators()
+ public Map<KeyStroke, JMenuItem> getAccelerators()
{
return this.accelerators;
}
+
+ /**
+ * Returns the selected index of the tabbed pane, or -1 if none selected
+ * (including the case where the tabbed pane has not been made visible).
+ *
+ * @return
+ */
+ public int getTabIndex()
+ {
+ return tabbedPane.getSelectedIndex();
+ }
+
+ public JPanel getStatusPanel()
+ {
+ return statusPanel;
+ }
}