1 package jalview.datamodel;
\r
3 public class AlignmentAnnotation
\r
6 public String description;
\r
7 public Annotation [] annotations;
\r
8 public boolean isGraph = false;
\r
9 public float graphMin, graphMax;
\r
10 public int windowLength;
\r
12 // Graphical hints and tips
\r
13 public boolean editable = false;
\r
14 public boolean hasIcons; //
\r
15 public boolean hasText;
\r
16 public boolean visible = true;
\r
17 public int height=0;
\r
19 public AlignmentAnnotation(String label, String description, Annotation [] annotations)
\r
24 this.description = description;
\r
25 this.annotations = annotations;
\r
26 for(int i=0; i<annotations.length; i++)
\r
28 if (annotations[i]!=null &&(
\r
29 annotations[i].secondaryStructure == 'H' ||
\r
30 annotations[i].secondaryStructure == 'E'))
\r
33 if (annotations[i]!=null && annotations[i].displayCharacter.length()>0)
\r
38 public AlignmentAnnotation(String label, String description, Annotation [] annotations, float min, float max, int winLength)
\r
40 // graphs are not editable
\r
42 this.description = description;
\r
43 this.annotations = annotations;
\r
47 windowLength = winLength;
\r
48 for(int i=0; i<annotations.length; i++)
\r
50 if (annotations[i]!=null &&(
\r
51 annotations[i].secondaryStructure == 'H' ||
\r
52 annotations[i].secondaryStructure == 'E'))
\r
55 if (annotations[i]!=null && annotations[i].displayCharacter.length()>0)
\r