JAL-629 Fix --tempfac. Hide non-working --notempfac. Add --scale, --width, --height...
[jalview.git] / src / jalview / datamodel / annotations / AnnotationRowBuilder.java
index b802612..c7e4549 100644 (file)
@@ -1,6 +1,7 @@
-package jalview.datamodel.annotations.AnnotationRowBuilder;
+package jalview.datamodel.annotations;
 
 import jalview.datamodel.Annotation;
+import jalview.structure.StructureImportSettings.TFType;
 
 public class AnnotationRowBuilder
 {
@@ -13,6 +14,22 @@ public class AnnotationRowBuilder
 
   boolean hasMinMax = false;
 
+  /**
+   * the type of temperature factor plot (if it is one)
+   */
+  // private TFType tfType = TFType.DEFAULT;
+  private TFType tfType = null;
+
+  public void setTFType(TFType t)
+  {
+    tfType = t;
+  }
+
+  public TFType getTFType()
+  {
+    return tfType;
+  }
+
   public String getName()
   {
     return name;
@@ -80,6 +97,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);