public AnnotationColumnChooser(AlignViewport av, final AlignmentPanel ap)
{
- this(av,ap,null);
+ this(av, ap, null);
}
- public AnnotationColumnChooser(AlignViewport av, final AlignmentPanel ap, AlignmentAnnotation selectedAnnotation)
+
+ public AnnotationColumnChooser(AlignViewport av, final AlignmentPanel ap,
+ AlignmentAnnotation selectedAnnotation)
{
super(av, ap);
frame = new JInternalFrame();
}
setOldHiddenColumns(av.getAlignment().getHiddenColumns());
adjusting = true;
-
+
setAnnotations(new JComboBox<>(getAnnotationItems(false)));
populateThresholdComboBox(threshold);
AnnotationColumnChooser lastChooser = av
percentThreshold
.setSelected(lastChooser.percentThreshold.isSelected());
}
- if (selectedAnnotation!=null)
+ if (selectedAnnotation != null)
{
- try {
+ try
+ {
setCurrentAnnotation(selectedAnnotation);
- annotations.setSelectedItem(getAnnotationMenuLabel(selectedAnnotation));
+ annotations.setSelectedItem(
+ getAnnotationMenuLabel(selectedAnnotation));
} catch (Exception x)
{
- Console.error("Couldn't select annotation in column chooser",x);
+ Console.error("Couldn't select annotation in column chooser", x);
}
}
public static void displayFor(AlignViewport av, AlignmentPanel ap,
AlignmentAnnotation alignmentAnnotation)
{
- AnnotationColumnChooser colchooser = new AnnotationColumnChooser(av, ap, alignmentAnnotation);
+ AnnotationColumnChooser colchooser = new AnnotationColumnChooser(av, ap,
+ alignmentAnnotation);
}
}