\r
public void fastPaint(int horizontal)\r
{\r
- if(image==null || horizontal ==0)\r
+ if( horizontal ==0\r
+ || av.alignment.getAlignmentAnnotation()==null\r
+ || av.alignment.getAlignmentAnnotation().length<1\r
+ )\r
{\r
repaint();\r
return;\r
g.fillRect(0,0,(endRes-startRes) *av.charWidth, getHeight());\r
if(av.alignment.getAlignmentAnnotation()==null || av.alignment.getAlignmentAnnotation().length<1)\r
{\r
+ g.setColor(Color.white);\r
+ g.fillRect(0,0,getWidth(), getHeight());\r
g.setColor(Color.black);\r
g.drawString("Alignment has no annotations",20,15);\r
return;\r