renderGaps = b;\r
}\r
\r
- /**\r
- * DOCUMENT ME!\r
- *\r
- * @param cs DOCUMENT ME!\r
- * @param seq DOCUMENT ME!\r
- * @param i DOCUMENT ME!\r
- *\r
- * @return DOCUMENT ME!\r
- */\r
- public Color getResidueBoxColour(ColourSchemeI cs, SequenceI seq, int i)\r
- {\r
- getBoxColour(cs, seq, i);\r
-\r
- return resBoxColour;\r
- }\r
\r
- BufferedImage bi;\r
- public Color findSequenceColour(Color initialCol, SequenceI seq, int i)\r
+ public Color getResidueBoxColour(SequenceI seq, int i)\r
{\r
- if (bi == null)\r
- bi = new BufferedImage(1, 1, BufferedImage.TYPE_INT_RGB);\r
-\r
- graphics = bi.getGraphics();\r
-\r
- if(initialCol!=null)\r
- bi.setRGB(0,0, initialCol.getRGB());\r
-\r
allGroups = av.alignment.findAllGroups(seq);\r
\r
- i = seq.findIndex(i);\r
-\r
- drawBoxes(seq, i,i, 0, 0, 1,1);\r
+ if (inCurrentSequenceGroup(i))\r
+ {\r
+ if (currentSequenceGroup.getDisplayBoxes())\r
+ {\r
+ getBoxColour(currentSequenceGroup.cs, seq, i);\r
+ }\r
+ }\r
+ else if (av.getShowBoxes())\r
+ {\r
+ getBoxColour(av.globalColourScheme, seq, i);\r
+ }\r
\r
- return new Color(bi.getRGB(0, 0));\r
+ return resBoxColour;\r
}\r
\r
\r
}\r
else if (av.getShowBoxes())\r
{\r
- getBoxColour(av.getGlobalColourScheme(), seq, i);\r
+ getBoxColour(av.globalColourScheme, seq, i);\r
}\r
\r
}\r
\r
if (av.getColourText())\r
{\r
- getBoxColour(av.getGlobalColourScheme(), seq, i);\r
+ getBoxColour(av.globalColourScheme, seq, i);\r
\r
if (av.getShowBoxes())\r
{\r