2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
21 package jalview.datamodel.annotations;
23 import jalview.datamodel.Annotation;
24 import jalview.structure.StructureImportSettings.TFType;
26 public class AnnotationRowBuilder
31 boolean hasDescription = false;
35 boolean hasMinMax = false;
38 * the type of temperature factor plot (if it is one)
40 // private TFType tfType = TFType.DEFAULT;
41 private TFType tfType = null;
43 public void setTFType(TFType t)
48 public TFType getTFType()
53 public String getName()
58 public void setName(String name)
63 public boolean isHasDescription()
65 return hasDescription;
68 public void setHasDescription(boolean hasDescription)
70 this.hasDescription = hasDescription;
73 public String getDescription()
78 public void setDescription(String description)
80 this.description = description;
83 public boolean isHasMinMax()
88 public void setHasMinMax(boolean hasMinMax)
90 this.hasMinMax = hasMinMax;
98 public void setMin(float min)
103 public float getMax()
108 public void setMax(float max)
115 public AnnotationRowBuilder(String string)
120 public AnnotationRowBuilder(String name, float min, float max, TFType tft)
122 this(name, min, max);
126 public AnnotationRowBuilder(String name, float min, float max)
131 this.hasMinMax = true;
135 * override this to apply some form of transformation to the annotation - eg a
140 public void processAnnotation(Annotation annotation)