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;
26 import java.awt.Color;
28 public class SegmentImpl extends AbstractSegment {
30 public SegmentImpl() {
41 public boolean equals(Segment s){
45 if ( ( start == s.getStart() ) &&
46 ( end == s.getEnd() ) &&
47 ( name.equals(s.getName()))
51 if (s.getNote() == null)
54 if (s.getNote() != null){
55 if (s.getNote().equals(note))
66 public Object clone(){
68 Segment s = new SegmentImpl();
73 s.setTxtColor(txtColor);