JAL-629 implementation of --tempfac options
[jalview.git] / src / jalview / datamodel / annotations / AnnotationRowBuilder.java
index 15f83e9..573b1a9 100644 (file)
@@ -1,5 +1,6 @@
 package jalview.datamodel.annotations;
 
+import jalview.datamodel.AlignmentAnnotation.TFType;
 import jalview.datamodel.Annotation;
 
 public class AnnotationRowBuilder
@@ -13,6 +14,21 @@ public class AnnotationRowBuilder
 
   boolean hasMinMax = false;
 
+  /**
+   * the type of temperature factor plot (if it is one)
+   */
+  private TFType tfType = TFType.DEFAULT;
+
+  public void setTFType(TFType t)
+  {
+    tfType = t;
+  }
+
+  public TFType getTFType()
+  {
+    return tfType;
+  }
+
   public String getName()
   {
     return name;
@@ -80,6 +96,12 @@ public class AnnotationRowBuilder
     name = string;
   }
 
+  public AnnotationRowBuilder(String name, float min, float max, TFType tft)
+  {
+    this(name, min, max);
+    setTFType(tft);
+  }
+
   public AnnotationRowBuilder(String name, float min, float max)
   {
     this(name);