JAL-2750 startRes now directly assigned
[jalview.git] / src / jalview / datamodel / SequenceGroup.java
index 221b031..deabf46 100755 (executable)
@@ -101,11 +101,15 @@ public class SequenceGroup implements AnnotatedCollectionI
    */
   public ResidueShaderI cs;
 
-  // start column (base 0)
+  /**
+   * start column (base 0)
+   */
   private int startRes = 0;
 
-  // end column (base 0)
-  int endRes = 0;
+  /**
+   *  end column (base 0)
+   */
+  private int endRes = 0;
 
   public Color outlineColour = Color.black;
 
@@ -752,14 +756,12 @@ public class SequenceGroup implements AnnotatedCollectionI
   /**
    * Set the first column selected by this group. Runs from 0<=i<N_cols
    * 
-   * @param i
+   * @param newStart
    */
   public void setStartRes(int newStart)
   {
-   newStart= Math.max(0,newStart); // sanity check for negative start column positions
-   int before = startRes;
-   startRes = newStart;
-
+    int before = startRes;
+   startRes= Math.max(0,newStart); // sanity check for negative start column positions
    changeSupport.firePropertyChange(SEQ_GROUP_CHANGED, before, startRes);