X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fdatamodel%2FAnnotation.java;h=e99c321ace604c8d2ade75a78ed46b55c843cd83;hb=6235128370382f0fecdf3ba1cc683052c5aa11e7;hp=c9a623b8456a0363c73907765f8486c217d6eac6;hpb=c3583f7ab67ddb450f61af4d36af839ddf485a09;p=jalview.git diff --git a/src/jalview/datamodel/Annotation.java b/src/jalview/datamodel/Annotation.java index c9a623b..e99c321 100755 --- a/src/jalview/datamodel/Annotation.java +++ b/src/jalview/datamodel/Annotation.java @@ -44,7 +44,7 @@ public class Annotation /** Score for the position - used in histograms, line graphs and for shading */ public float value; - + /** Colour for position */ public Color colour; @@ -66,6 +66,7 @@ public class Annotation description = desc; secondaryStructure = ss; value = val; + } /** @@ -109,6 +110,7 @@ public class Annotation secondaryStructure = that.secondaryStructure; value = that.value; colour = that.colour; + } /** @@ -119,9 +121,18 @@ public class Annotation */ public Annotation(float val) { - this(null, null, ' ', val); + this(null, null, ' ', val,null); } + /** + * human readable representation of an annotation row element. + * + * Format is 'display Char','secondary Structure + * Char',"description",score,[colourstring] + * + * fields may be missing if they are null, whitespace, or equivalent to + * Float.NaN + */ @Override public String toString() {