if (Comparison.isGap(seq.getCharAt(column)))
{
- return Color.white;
+ /*
+ * returning null allows the colour scheme to provide gap colour
+ * - normally white, but can be customised otherwise
+ */
+ return null;
}
Color renderedColour = null;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertFalse;
+import static org.testng.Assert.assertNull;
import static org.testng.Assert.assertTrue;
import jalview.api.FeatureColourI;
assertEquals(c, Color.red);
}
+ /**
+ * feature colour at a gap is null (not white) - a user defined colour scheme
+ * can then provide a bespoke gap colour if configured to do so
+ */
@Test(groups = "Functional")
public void testFindFeatureColour_gapPosition()
{
fr.featuresAdded();
av.setShowSequenceFeatures(true);
Color c = finder.findFeatureColour(null, seq, 6);
- assertEquals(c, Color.white);
+ assertNull(c);
}
@Test(groups = "Functional")