label.interpret_tempfac_as = Interpret Temperature Factor as
label.add_pae_matrix_file = Add PAE matrix file
label.nothing_selected = Nothing selected
-label.working_ellipsis = Working ...
\ No newline at end of file
+label.working_ellipsis = Working ...
+action.show_groups_on_matrix = Show groups on matrix
+action.show_groups_on_matrix_tooltip = When enabled, clusters defined on the matrix's associated tree or below the assigned threshold are shown as different colours on the matrix annotation row
+action.show_tree_for_matrix = Show tree for matrix
+action.show_tree_for_matrix_tooltip = Opens a tree viewer to display the average distance tree for the matrix
+action.cluster_matrix = Cluster matrix
+action.clustering_matrix_for = Calculating tree for matrix {0} and clustering at {1}
+action.cluster_matrix_tooltip = Computes an average distance tree for the matrix and displays it
+
if (cm.hasGroups())
{
- JCheckBoxMenuItem chitem = new JCheckBoxMenuItem("Show Groups on Matrix");
+ JCheckBoxMenuItem chitem = new JCheckBoxMenuItem(MessageManager.getString("action.show_groups_on_matrix"));
+ chitem.setToolTipText(MessageManager.getString("action.show_groups_on_matrix_tooltip"));
boolean showGroups = alignmentAnnotation.isShowGroupsForContactMatrix();
final AlignmentAnnotation sel_row=alignmentAnnotation;
chitem.setState(showGroups);
}
if (cm.hasTree())
{
- item = new JMenuItem("Show Tree for Matrix");
+ item = new JMenuItem(MessageManager.getString("action.show_tree_for_matrix"));
+ item.setToolTipText(MessageManager.getString("action.show_tree_for_matrix_tooltip"));
item.addActionListener(new ActionListener()
{
}
else
{
- item = new JMenuItem("Calculate Tree for Matrix");
+ item = new JMenuItem(MessageManager.getString("action.cluster_matrix"));
+ item.setToolTipText(MessageManager.getString("action.cluster_matrix_tooltip"));
item.addActionListener(new ActionListener()
{
- // TODO - refactor to analysis background thread
@Override
public void actionPerformed(ActionEvent e)
{
@Override
public void run()
{
- AlignmentAnnotation alan = alignmentAnnotation;
+ final long progBar;
+ ap.alignFrame.setProgressBar(MessageManager.formatMessage("action.clustering_matrix_for",cm.getAnnotDescr(),5f), progBar = System.currentTimeMillis());
cm.setGroupSet(GroupSet.makeGroups(cm, 5f, true));
- ap.alignFrame.showContactMapTree(alan, cm);
+ ap.alignFrame.showContactMapTree(alignmentAnnotation, cm);
+ ap.alignFrame.setProgressBar(null, progBar);
}
}).start();
}