public boolean padAnnotation(int length) {
if (annotations==null)
{
- annotations = new Annotation[length];
- return true;
+ return true; // annotation row is correct - null == not visible and undefined length
}
if (annotations.length<length)
{
{
return hasScore || !Double.isNaN(score);
}
+ /**
+ * Score only annotation
+ * @param label
+ * @param description
+ * @param score
+ */
+ public AlignmentAnnotation(String label, String description, double score)
+ {
+ this(label, description, null);
+ setScore(score);
+ }
}