merge from 2_4_Release branch
[jalview.git] / src / org / biojava / dasobert / feature / Segment.java
index f2a0bb6..78e2840 100644 (file)
  *
  */
 
-package org.biojava.dasobert.feature ;
+package org.biojava.dasobert.feature;
 
 import java.awt.Color;
 
-
 /** a class to keep track of location information for a feature */
-public interface Segment  {
-  
-       public Object clone();
-       
-       public  String toString();
+public interface Segment
+{
+
+  public Object clone();
+
+  public String toString();
 
-       public  String getNote();
+  public String getNote();
 
-       public  void setNote(String note);
+  public void setNote(String note);
 
-       public  void setStart(int strt);
+  public void setStart(int strt);
 
-       public  int getStart();
+  public int getStart();
 
-       public  void setEnd(int ed);
+  public void setEnd(int ed);
 
-       public  int getEnd();
+  public int getEnd();
 
-       public  void setName(String nam);
+  public void setName(String nam);
 
-       public  String getName();
+  public String getName();
 
-       public  void setColor(Color col);
+  public void setColor(Color col);
 
-       public  Color getColor();
+  public Color getColor();
 
-       public  void setParent(FeatureTrack f);
+  public void setParent(FeatureTrack f);
 
-       public  FeatureTrack getParent();
+  public FeatureTrack getParent();
 
-       public  void setTxtColor(String str);
+  public void setTxtColor(String str);
 
-       public  String getTxtColor();
+  public String getTxtColor();
 
-       /** returns true if the specified sequence position is within the range of this Segment
-        * 
-        * @param seqPosition the position to check
-        * @return true if seqPos >= start && seqPos <= end
-        */
-       public  boolean overlaps(int seqPosition);
+  /**
+   * returns true if the specified sequence position is within the range of this
+   * Segment
+   * 
+   * @param seqPosition
+   *                the position to check
+   * @return true if seqPos >= start && seqPos <= end
+   */
+  public boolean overlaps(int seqPosition);
 
-       /** tests if two segments are overlapping
-        * 
-        * @param segment to compare with
-        * @return true if segments overlap
-        */
-       public  boolean overlaps(Segment segment);
+  /**
+   * tests if two segments are overlapping
+   * 
+   * @param segment
+   *                to compare with
+   * @return true if segments overlap
+   */
+  public boolean overlaps(Segment segment);
 
-    
 }