assertEquals(Color.lightGray, rcf.getResidueColour(false,
av.getResidueShading(), groups, seq, 2, null));
+ // use legacy colouring
rcf = new OverviewResColourFinder(true, Color.blue, Color.red);
// G in group specified as magenta in Zappo
// Gap outside group coloured white
assertEquals(Color.white, rcf.getResidueColour(false,
av.getResidueShading(), groups, seq, 2, null));
+
+ // use new colouring
+ rcf = new OverviewResColourFinder(false, Color.blue, Color.red);
+
+ // G in group specified as magenta in Zappo
+ assertEquals(Color.magenta, rcf.getResidueColour(false,
+ av.getResidueShading(), groups, seq, 7, null));
+
+ // Residue outside group coloured white
+ assertEquals(Color.white, rcf.getResidueColour(false,
+ av.getResidueShading(), groups, seq, 0, null));
+
+ // Gap outside group coloured blue
+ assertEquals(Color.blue, rcf.getResidueColour(false,
+ av.getResidueShading(), groups, seq, 2, null));
}
@Test