label.click_to_edit = Click to edit, right-click for menu
label.by_annotation_tooltip = Annotation Colour is configured from the main Colour menu
label.show_linked_features = Show {0} features
+label.show_linked_feature_settings = Open {0} settings
label.on_top = on top
label.include_linked_features = Include {0} features
label.include_linked_tooltip = Include visible {0} features<br>converted to local sequence coordinates
\ No newline at end of file
*/
package jalview.gui;
+import jalview.api.AlignViewControllerGuiI;
import jalview.api.AlignViewportI;
import jalview.api.FeatureColourI;
import jalview.api.FeatureSettingsControllerI;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
-import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.GridLayout;
refreshDisplay();
}
});
-
+ JButton viewComplementSettings = new JButton(MessageManager
+ .formatMessage("label.show_linked_feature_settings",
+ nucleotide
+ ? MessageManager.getString("label.protein")
+ .toLowerCase()
+ : "CDS"));
+ viewComplementSettings.addActionListener(new ActionListener()
+ {
+
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ AlignViewControllerGuiI complAf = af.getSplitViewContainer()
+ .getComplementAlignFrame(af);
+ FeatureSettings complFeatureSettings = (FeatureSettings) complAf
+ .getFeatureSettingsUI();
+ if (complFeatureSettings != null)
+ {
+ complFeatureSettings.frame.setVisible(true);
+ try
+ {
+ complFeatureSettings.frame.setSelected(true);
+ return;
+ } catch (Exception q)
+ {
+ }
+ }
+ {
+ complAf.showFeatureSettingsUI();
+ }
+ }
+ });
JPanel lowerPanel = new JPanel(new GridLayout(1, 2));
bigPanel.add(lowerPanel, BorderLayout.SOUTH);
boolean hasComplement = af.getViewport().getCodingComplement() != null;
JPanel transPanelLeft = new JPanel(
- new GridLayout(hasComplement ? 3 : 2, 1));
+ new GridLayout(hasComplement ? 4 : 2, 1));
transPanelLeft.add(new JLabel(" Colour transparency" + ":"));
transPanelLeft.add(transparency);
if (hasComplement)
{
- JPanel cp = new JPanel(new FlowLayout(FlowLayout.LEFT));
+ JPanel cp = new JPanel(new GridLayout(3, 2));
cp.add(showComplement);
cp.add(showComplementOnTop);
+ cp.add(viewComplementSettings);
transPanelLeft.add(cp);
}
lowerPanel.add(transPanelLeft);