this.setToolTipText(null);\r
}\r
\r
+\r
+\r
public void paintComponent(Graphics g)\r
{\r
- setPreferredSize(new Dimension( this.getWidth(), 80));\r
+ setPreferredSize(new Dimension( this.getWidth(), 80));\r
+ drawScorePanel(g, getWidth(), av.getStartRes(), av.getChunkWidth());\r
+ }\r
+\r
+ public void drawScorePanel(Graphics g, int width, int startRes, int length)\r
+ {\r
g.setColor(Color.white);\r
- g.fillRect(0, 0, this.getWidth(), 80);\r
+ g.fillRect(0, 0,width, 80);\r
g.setColor(Color.blue);\r
g.setFont(av.getFont());\r
\r
char character;\r
\r
\r
- int i=0, iSize = av.getChunkWidth();\r
+ int i=0, iSize = length;\r
if(iSize > freq.size())\r
iSize=freq.size();\r
\r
{\r
g.setColor(Color.blue);\r
\r
- Hashtable hash = (Hashtable) freq.elementAt(i+av.getStartRes());\r
+ Hashtable hash = (Hashtable) freq.elementAt(i+startRes);\r
if(hash.containsKey("maxResidue"))\r
characters = hash.get("maxResidue").toString();\r
else\r