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