JAL-1551 formatting
[jalview.git] / src / jalview / datamodel / annotations / AnnotationRowBuilder.java
1 package jalview.datamodel.annotations;
2
3 import jalview.datamodel.Annotation;
4
5 public class AnnotationRowBuilder
6 {
7
8   String name;
9
10   boolean hasDescription = false;
11
12   String description;
13
14   boolean hasMinMax = false;
15
16   public String getName()
17   {
18     return name;
19   }
20
21   public void setName(String name)
22   {
23     this.name = name;
24   }
25
26   public boolean isHasDescription()
27   {
28     return hasDescription;
29   }
30
31   public void setHasDescription(boolean hasDescription)
32   {
33     this.hasDescription = hasDescription;
34   }
35
36   public String getDescription()
37   {
38     return description;
39   }
40
41   public void setDescription(String description)
42   {
43     this.description = description;
44   }
45
46   public boolean isHasMinMax()
47   {
48     return hasMinMax;
49   }
50
51   public void setHasMinMax(boolean hasMinMax)
52   {
53     this.hasMinMax = hasMinMax;
54   }
55
56   public float getMin()
57   {
58     return min;
59   }
60
61   public void setMin(float min)
62   {
63     this.min = min;
64   }
65
66   public float getMax()
67   {
68     return max;
69   }
70
71   public void setMax(float max)
72   {
73     this.max = max;
74   }
75
76   float min, max;
77
78   public AnnotationRowBuilder(String string)
79   {
80     name = string;
81   }
82
83   public AnnotationRowBuilder(String name, float min, float max)
84   {
85     this(name);
86     this.min = min;
87     this.max = max;
88     this.hasMinMax = true;
89   }
90
91   /**
92    * override this to apply some form of transformation to the annotation - eg a
93    * colourscheme
94    * 
95    * @param annotation
96    */
97   public void processAnnotation(Annotation annotation)
98   {
99
100   }
101 }