public boolean padAnnotation(int length) {
if (annotations==null)
{
- return true; // annotation row is correct - null == not visible and undefined length
+ return true; // annotation row is correct - null == not visible and undefined length
}
if (annotations.length<length)
{
this(label, description, null);
setScore(score);
}
+
+ public void setPadGaps(boolean padgaps, char gapchar)
+ {
+ this.padGaps = padgaps;
+ if(padgaps)
+ {
+ hasText = true;
+ for(int i=0; i<annotations.length; i++)
+ {
+ if(annotations[i]==null)
+ annotations[i] = new Annotation(String.valueOf(gapchar),null,' ',0f);
+ else if(annotations[i].displayCharacter==null ||annotations[i].displayCharacter.equals(" "))
+ annotations[i].displayCharacter=String.valueOf(gapchar);
+ }
+ }
+ }
}