+ private static void showOrHideAnnotations(AlignFrame af,
+ boolean showSSAnnotations, boolean showAnnotations,
+ boolean hideTFrows)
+ {
+ Console.debug(
+ "##### Setting showSSAnnotations to " + showSSAnnotations);
+ Console.debug("##### Setting showAnnotations to " + showAnnotations);
+ Console.debug("##### Setting hideTFrows to " + hideTFrows);
+ af.setAnnotationsVisibility(showSSAnnotations, true, false);
+
+ af.setAnnotationsVisibility(showAnnotations, false, true);
+
+ // show temperature factor annotations?
+ if (hideTFrows)
+ {
+ // do this better (annotation types?)
+ List<String> hideThese = new ArrayList<>();
+ hideThese.add("Temperature Factor");
+ hideThese.add(AlphaFoldAnnotationRowBuilder.LABEL);
+ AlignmentUtils.showOrHideSequenceAnnotations(
+ af.getCurrentView().getAlignment(), hideThese, null, false,
+ false);
+ }
+ }
+