From 6f1e63559f37744a94e011c1f527644b44eec312 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 1 Dec 2004 16:56:32 +0000 Subject: [PATCH] Space changes --- src/jalview/gui/RotatableCanvas.java | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/jalview/gui/RotatableCanvas.java b/src/jalview/gui/RotatableCanvas.java index 90688d0..bd03629 100755 --- a/src/jalview/gui/RotatableCanvas.java +++ b/src/jalview/gui/RotatableCanvas.java @@ -284,23 +284,24 @@ public class RotatableCanvas extends JPanel implements MouseListener, int x = (int)((float)(sp.coord[0] - centre[0])*scale) + halfwidth; int y = (int)((float)(sp.coord[1] - centre[1])*scale) + halfheight; float z = sp.coord[1] - centre[2]; - if (sp.sequence instanceof DrawableSequence) { - if (((DrawableSequence)sp.sequence).color == Color.black) { + + + + + if (sp.sequence.getColor() == Color.black) g.setColor(Color.white); - } else { - g.setColor(((DrawableSequence)sp.sequence).color); - } - } else { - g.setColor(Color.red); - } - if (av != null) { - if (av.getSelection().contains(((SequencePoint)points.elementAt(i)).sequence)) { + else + g.setColor(sp.sequence.getColor()); + + + if (av != null) + { + if (av.getSelection().contains(((SequencePoint)points.elementAt(i)).sequence)) g.setColor(Color.gray); - } } - if (z < 0) { + if (z < 0) g.setColor(g.getColor().darker()); - } + g.fillRect(x-3,y-3,6,6); g.setColor(Color.red); -- 1.7.10.2