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;
24 * bean for max/min positions for a given range
29 public class ContactRange
39 int from_column, to_column;
44 * update the bean with given values
53 public void update(int from_column, int to_column, int minPos, double min,
54 int maxPos, double max, double mean)
56 this.from_column = from_column;
57 this.to_column = to_column;
68 public int getMinPos()
77 public void setMinPos(int minPos)
85 public double getMin()
94 public void setMin(double min)
102 public int getMaxPos()
111 public void setMaxPos(int maxPos)
113 this.maxPos = maxPos;
119 public double getMax()
128 public void setMax(double max)
136 public double getMean()
145 public void setMean(double mean)
151 * @return the from_column
153 public int getFrom_column()
160 * the from_column to set
162 public void setFrom_column(int from_column)
164 this.from_column = from_column;
168 * @return the to_column
170 public int getTo_column()
177 * the to_column to set
179 public void setTo_column(int to_column)
181 this.to_column = to_column;