From: amwaterhouse Date: Tue, 16 Nov 2004 15:24:21 +0000 (+0000) Subject: add fix if colour is white X-Git-Tag: Release_2_0~926 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d761f4d026e1133c507f2bd51f88b10ed7449c7d;p=jalview.git add fix if colour is white --- diff --git a/src/jalview/gui/TreeCanvas.java b/src/jalview/gui/TreeCanvas.java index 0f85aed..484e05a 100755 --- a/src/jalview/gui/TreeCanvas.java +++ b/src/jalview/gui/TreeCanvas.java @@ -92,7 +92,16 @@ public class TreeCanvas extends JPanel implements MouseListener int ypos = (int)(node.ycount * chunk) + offy; if (node.element() instanceof SequenceI) - g.setColor(((SequenceI)((SequenceNode)node).element()).getColor().darker()); + { + if ( ( (SequenceI) ( (SequenceNode) node).element()).getColor() == Color.white) + { + g.setColor(Color.black); + } + else + g.setColor( ( (SequenceI) ( (SequenceNode) node).element()).getColor(). + darker()); + + } else g.setColor(Color.black);