if (current.getLength() > i)\r
{\r
/* MC Should move this to a method somewhere */\r
- if (current.getCharAt(i)!='-' && current.getCharAt(i)!='.' && current.getCharAt(i)!=' ')\r
+ if ( !jalview.util.Comparison.isGap(current.getCharAt(i)))\r
delete = false;\r
\r
}\r
}\r
\r
/** */\r
- public int findIndex(SequenceI s) {\r
+ public int findIndex(SequenceI s)\r
+ {\r
int i=0;\r
- while (i < sequences.size()) {\r
- if (s == getSequenceAt(i)) {\r
+ while (i < sequences.size())\r
+ {\r
+ if (s == getSequenceAt(i))\r
return i;\r
- }\r
+\r
i++;\r
}\r
return -1;\r
current = viewport.getAlignment().getSequenceAt(i);\r
jSize = current.getLength();\r
for (int j=0; j < jSize; j++)\r
- if (current.getCharAt(j)=='-' || current.getCharAt(j)=='.' || current.getCharAt(j)==' ')\r
+ if(jalview.util.Comparison.isGap(current.getCharAt(i)))\r
{\r
current.deleteCharAt(j);\r
j--;\r
value = (int) ( (float) value /\r
Float.parseFloat(hash.get("size").toString()) * 55);\r
\r
- if (character != ' ' && character != '.' && character != '-')\r
+ if ( !jalview.util.Comparison.isGap(character))\r
g.fillRect( (int) (i * av.charWidth),\r
60 - value,\r
(int) av.charWidth,\r
else\r
s = ' ';\r
\r
- if(!renderGaps && (s=='-' || s=='.' || s==' '))\r
+ if(!renderGaps && jalview.util.Comparison.isGap(s))\r
continue;\r
\r
g.setColor(Color.black);\r