if (oldcs instanceof AnnotationColourGradient)
{
AnnotationColourGradient acg = (AnnotationColourGradient) oldcs;
currentColours.setSelected(acg.predefinedColours);
if (!acg.predefinedColours)
{
if (oldcs instanceof AnnotationColourGradient)
{
AnnotationColourGradient acg = (AnnotationColourGradient) oldcs;
currentColours.setSelected(acg.predefinedColours);
if (!acg.predefinedColours)
{
{
AnnotationColourGradient acg = (AnnotationColourGradient) oldcs;
annotations.setSelectedItem(acg.getAnnotation());
{
AnnotationColourGradient acg = (AnnotationColourGradient) oldcs;
annotations.setSelectedItem(acg.getAnnotation());
Vector<String> list = new Vector<String>();
int index = 1;
int[] anmap = new int[av.getAlignment().getAlignmentAnnotation().length];
Vector<String> list = new Vector<String>();
int index = 1;
int[] anmap = new int[av.getAlignment().getAlignmentAnnotation().length];
- System.arraycopy(anmap, 0, annmap, 0, annmap.length);
+ System.arraycopy(anmap, 0, annmap, 0, annmap.length);
- minColour.setBackground(Cache.getDefaultColour("ANNOTATIONCOLOUR_MIN", Color.orange));
- maxColour.setBackground(Cache.getDefaultColour("ANNOTATIONCOLOUR_MAX", Color.red));
+ minColour.setBackground(Cache.getDefaultColour("ANNOTATIONCOLOUR_MIN",
+ Color.orange));
+ maxColour.setBackground(Cache.getDefaultColour("ANNOTATIONCOLOUR_MAX",
+ Color.red));
jPanel2.add(thresholdIsMin);
jPanel2.add(slider, "grow");
jPanel2.add(thresholdValue, "grow");
jPanel2.add(thresholdIsMin);
jPanel2.add(slider, "grow");
jPanel2.add(thresholdValue, "grow");
JButton ok = new JButton();
JButton cancel = new JButton();
JPanel jPanel1 = new JPanel();
JButton ok = new JButton();
JButton cancel = new JButton();
JPanel jPanel1 = new JPanel();
sg.cs = new AnnotationColourGradient(currentAnnotation,
minColour.getBackground(), maxColour.getBackground(),
aboveThreshold);
sg.cs = new AnnotationColourGradient(currentAnnotation,
minColour.getBackground(), maxColour.getBackground(),
aboveThreshold);