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()
54 * Colouring model for the annotation
58 private AnnotationColouringI annotationColouring = null;
60 public void setAnnotationColouring(AnnotationColouringI ac)
62 annotationColouring = ac;
65 public AnnotationColouringI getAnnotationColouring()
67 return annotationColouring;
70 public String getName()
75 public void setName(String name)
80 public boolean isHasDescription()
82 return hasDescription;
85 public void setHasDescription(boolean hasDescription)
87 this.hasDescription = hasDescription;
90 public String getDescription()
95 public void setDescription(String description)
97 this.description = description;
100 public boolean isHasMinMax()
105 public void setHasMinMax(boolean hasMinMax)
107 this.hasMinMax = hasMinMax;
110 public float getMin()
115 public void setMin(float min)
120 public float getMax()
125 public void setMax(float max)
132 public AnnotationRowBuilder(String string)
137 public AnnotationRowBuilder(String name, float min, float max, TFType tft)
139 this(name, min, max);
143 public AnnotationRowBuilder(String name, float min, float max)
148 this.hasMinMax = true;
152 * override this to apply some form of transformation to the annotation - eg a
157 public void processAnnotation(Annotation annotation)