@Override
public void actionPerformed(ActionEvent actionEvent)
{
- fitToWindow_actionPerformed();
+ getBinding().focusView();
}
});
statusPanel.add(statusBar, null);
}
- protected void fitToWindow_actionPerformed()
- {
- }
-
protected void highlightSelection_actionPerformed()
{
}
}
/**
- * Saves the selected entries in the 'View Chain' menu into a list. Entries are
- * formatted as "pdbid:chainid". Only the selected chains should be drawn in the
+ * Saves the unselected entries in the 'View Chain' menu into a list. Entries
+ * are formatted as "pdbid:chainid". Unselected chains should be hidden in the
* structure display.
*/
- protected void setSelectedChains()
+ protected void setChainsToHide()
{
List<String> chains = new ArrayList<>();
for (int i = 0; i < chainMenu.getItemCount(); i++)
if (menuItem instanceof JCheckBoxMenuItem)
{
JCheckBoxMenuItem item = (JCheckBoxMenuItem) menuItem;
- if (item.isSelected())
+ if (!item.isSelected())
{
chains.add(item.getText().split(" ")[0]);
}
}
}
- getBinding().setChainsToShow(chains);
+ getBinding().setChainsToHide(chains);
}
}