*/
package jalview.structure;
+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
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
*/
private static StructureParser defaultPDBFileParser = StructureParser.JMOL_PARSER;
+ private static TFType temperatureFactorType;
+
public static void addSettings(boolean addAlignmentAnnotations,
boolean processSecStr, boolean externalSecStr)
{
return visibleChainAnnotation;
}
+ public static void setTemperatureFactorType(TFType t)
+ {
+ StructureImportSettings.temperatureFactorType = t;
+ }
+
public static void setVisibleChainAnnotation(
boolean visibleChainAnnotation)
{
String defaultStructureFileFormat)
{
StructureImportSettings.defaultStructureFileFormat = PDBEntry.Type
- .valueOf(defaultStructureFileFormat.toUpperCase());
+ .valueOf(defaultStructureFileFormat.toUpperCase(Locale.ROOT));
}
public static String getDefaultPDBFileParser()
public static void setDefaultPDBFileParser(String defaultPDBFileParser)
{
StructureImportSettings.defaultPDBFileParser = StructureParser
- .valueOf(defaultPDBFileParser.toUpperCase());
+ .valueOf(defaultPDBFileParser.toUpperCase(Locale.ROOT));
+ }
+
+ public static TFType getTemperatureFactorType()
+ {
+ return temperatureFactorType;
}
}