Merge branch 'develop' into features/JAL-518_justify_seqs_in_region
[jalview.git] / src / jalview / structure / StructureImportSettings.java
index cbd59b1..22ecdc7 100644 (file)
@@ -24,6 +24,7 @@ import java.util.Locale;
 
 import jalview.datamodel.PDBEntry;
 import jalview.datamodel.PDBEntry.Type;
+import jalview.util.MessageManager;
 
 /**
  * bean holding settings for structure IO. TODO: tests for validation of values
@@ -59,6 +60,18 @@ public class StructureImportSettings
     JMOL_PARSER, JALVIEW_PARSER
   }
 
+  public static enum TFType
+  {
+    DEFAULT, PLDDT;
+
+    @Override
+    public String toString()
+    {
+      return MessageManager.getString(
+              "label.tftype_" + this.name().toLowerCase(Locale.ROOT));
+    }
+  }
+
   /**
    * Determines the default file format for structure files to be downloaded
    * from the PDB sequence fetcher. Possible options include: PDB|mmCIF
@@ -71,6 +84,8 @@ public class StructureImportSettings
    */
   private static StructureParser defaultPDBFileParser = StructureParser.JMOL_PARSER;
 
+  private static TFType temperatureFactorType;
+
   public static void addSettings(boolean addAlignmentAnnotations,
           boolean processSecStr, boolean externalSecStr)
   {
@@ -85,6 +100,11 @@ public class StructureImportSettings
     return visibleChainAnnotation;
   }
 
+  public static void setTemperatureFactorType(TFType t)
+  {
+    StructureImportSettings.temperatureFactorType = t;
+  }
+
   public static void setVisibleChainAnnotation(
           boolean visibleChainAnnotation)
   {
@@ -152,4 +172,9 @@ public class StructureImportSettings
             .valueOf(defaultPDBFileParser.toUpperCase(Locale.ROOT));
   }
 
+  public static TFType getTemperatureFactorType()
+  {
+    return temperatureFactorType;
+  }
+
 }