Space changes
authoramwaterhouse <Andrew Waterhouse>
Wed, 1 Dec 2004 16:56:32 +0000 (16:56 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 1 Dec 2004 16:56:32 +0000 (16:56 +0000)
src/jalview/gui/RotatableCanvas.java

index 90688d0..bd03629 100755 (executable)
@@ -284,23 +284,24 @@ public class RotatableCanvas extends JPanel implements MouseListener,
       int x = (int)((float)(sp.coord[0] - centre[0])*scale) + halfwidth;\r
       int y = (int)((float)(sp.coord[1] - centre[1])*scale) + halfheight;\r
       float z = sp.coord[1] - centre[2];\r
-      if (sp.sequence instanceof DrawableSequence) {\r
-        if (((DrawableSequence)sp.sequence).color == Color.black) {\r
+\r
+\r
+\r
+\r
+      if (sp.sequence.getColor() == Color.black)\r
           g.setColor(Color.white);\r
-        } else {\r
-          g.setColor(((DrawableSequence)sp.sequence).color);\r
-        }\r
-      } else {\r
-        g.setColor(Color.red);\r
-      }\r
-      if (av != null) {\r
-        if (av.getSelection().contains(((SequencePoint)points.elementAt(i)).sequence)) {\r
+      else\r
+          g.setColor(sp.sequence.getColor());\r
+\r
+\r
+      if (av != null)\r
+      {\r
+        if (av.getSelection().contains(((SequencePoint)points.elementAt(i)).sequence))\r
           g.setColor(Color.gray);\r
-        }\r
       }\r
-      if (z < 0) {\r
+      if (z < 0)\r
         g.setColor(g.getColor().darker());\r
-      }\r
+\r
 \r
       g.fillRect(x-3,y-3,6,6);\r
       g.setColor(Color.red);\r