X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2Fannotations%2FAnnotationRowBuilder.java;h=2dec59c2db8a2f89c667274add4a9d842b474285;hb=85299bc2db43c8b108169661ebc1c4d9b2d3d2e5;hp=b8026126cd8ba7c5f2618cb1b064040dfd4c54c9;hpb=c47a2af3da1aa257ecbb870b421c761e4acb7630;p=jalview.git diff --git a/src/jalview/datamodel/annotations/AnnotationRowBuilder.java b/src/jalview/datamodel/annotations/AnnotationRowBuilder.java index b802612..2dec59c 100644 --- a/src/jalview/datamodel/annotations/AnnotationRowBuilder.java +++ b/src/jalview/datamodel/annotations/AnnotationRowBuilder.java @@ -1,6 +1,27 @@ -package jalview.datamodel.annotations.AnnotationRowBuilder; +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ +package jalview.datamodel.annotations; import jalview.datamodel.Annotation; +import jalview.structure.StructureImportSettings.TFType; public class AnnotationRowBuilder { @@ -13,6 +34,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 +117,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);