2 * BioJava development code
4 * This code may be freely distributed and modified under the
5 * terms of the GNU Lesser General Public Licence. This should
6 * be distributed with the code. If you do not have a copy,
9 * http://www.gnu.org/copyleft/lesser.html
11 * Copyright for this code is held jointly by the individual
12 * authors. These should be listed in @author doc comments.
14 * For more information on the BioJava project and its aims,
15 * or to join the biojava-l mailing list, visit the home page
18 * http://www.biojava.org/
20 * Created on May 22, 2007
24 package org.biojava.dasobert.feature;
27 import java.util.Iterator;
29 /** a class that represents Histogram Style features
30 * in addition to normal features they know about Max and Minimum scores for the whole line
31 * Histogram feautes have only one (Histogram) Segment, which contains the scores for each position
33 * @author Andreas Prlic
36 public class HistogramFeature
37 extends AbstractFeatureTrack {
42 public HistogramFeature() {
44 // TODO Auto-generated constructor stub
49 public double getMax() {
55 public void setMax(double max) {
61 public double getMin() {
67 public void setMin(double min) {
73 public Object clone() {
75 HistogramFeature f = new HistogramFeature();
85 Iterator iter = segments.iterator();
87 while (iter.hasNext()){
88 Segment s = (Segment) iter.next();
89 f.addSegment((Segment)s.clone());