JAL-1551 spotlessApply
[jalview.git] / src / jalview / datamodel / annotations / AnnotationRowBuilder.java
index 15f83e9..c9b8f18 100644 (file)
@@ -1,6 +1,8 @@
 package jalview.datamodel.annotations;
 
 import jalview.datamodel.Annotation;
+import jalview.structure.StructureImportSettings;
+import jalview.structure.StructureImportSettings.TFType;
 
 public class AnnotationRowBuilder
 {
@@ -13,6 +15,21 @@ public class AnnotationRowBuilder
 
   boolean hasMinMax = false;
 
+  /**
+   * the type of temperature factor plot (if it is one)
+   */
+  private StructureImportSettings.TFType tfType = StructureImportSettings.TFType.DEFAULT;
+
+  public void setTFType(StructureImportSettings.TFType t)
+  {
+    tfType = t;
+  }
+
+  public StructureImportSettings.TFType getTFType()
+  {
+    return tfType;
+  }
+
   public String getName()
   {
     return name;
@@ -80,6 +97,13 @@ public class AnnotationRowBuilder
     name = string;
   }
 
+  public AnnotationRowBuilder(String name, float min, float max,
+          StructureImportSettings.TFType tft)
+  {
+    this(name, min, max);
+    setTFType(tft);
+  }
+
   public AnnotationRowBuilder(String name, float min, float max)
   {
     this(name);