X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fstructure%2FStructureImportSettings.java;h=22ecdc723195ffa4e6e0edf7c5a5d381043432d2;hb=ca160187a050f6d4e50158cd5b51f75c83a7179e;hp=cbd59b1f9e7d79d9f03adbf3da3a546f963fd3a1;hpb=9d2408483e451285fd555c3cd6e0273977acbaa7;p=jalview.git diff --git a/src/jalview/structure/StructureImportSettings.java b/src/jalview/structure/StructureImportSettings.java index cbd59b1..22ecdc7 100644 --- a/src/jalview/structure/StructureImportSettings.java +++ b/src/jalview/structure/StructureImportSettings.java @@ -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; + } + }