\r
graphics = g;\r
\r
- drawBoxes(seq, start, end, x1, y1, (int) width, height, pid);\r
+ drawBoxes(seq, start, end, x1, y1, (int) width, height);\r
\r
fm = g.getFontMetrics();\r
drawText(seq,start,end,x1,y1,(int)width,height);\r
\r
}\r
\r
- public void drawBoxes(SequenceI seq,int start, int end, int x1, int y1, int width, int height,Vector freq) {\r
+ public void drawBoxes(SequenceI seq,int start, int end, int x1, int y1, int width, int height) {\r
int i = start;\r
int length = seq.getLength();\r
\r
- int curStart = x1;\r
+ int curStart = -1;\r
int curWidth = width;\r
\r
Color tempColour = null;\r
\r
if (resBoxColour != tempColour)\r
{\r
- graphics.fillRect(x1+width*(curStart-start),y1,curWidth,height);\r
+ if(tempColour!=null)\r
+ graphics.fillRect(x1+width*(curStart-start),y1,curWidth,height);\r
graphics.setColor(resBoxColour);\r
\r
curStart = i;\r
\r
i++;\r
}\r
- graphics.fillRect(x1+width*(curStart-start),y1,curWidth,height);\r
+\r
+\r
+ graphics.fillRect(x1+width*(curStart-start),y1,curWidth,height);\r
}\r
\r
public void drawText(SequenceI seq,int start, int end, int x1, int y1, int width, int height)\r