Formatted source
[jalview.git] / src / jalview / binding / JGroup.java
index eef4a28..3b5c0b8 100755 (executable)
@@ -4,7 +4,6 @@
  * Schema.\r
  * $Id$\r
  */\r
-\r
 /*\r
 * Jalview - A Sequence Alignment Editor and Viewer\r
 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
 * along with this program; if not, write to the Free Software\r
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
 */\r
-\r
 package jalview.binding;\r
 \r
-  //---------------------------------/\r
- //- Imported classes and packages -/\r
-//---------------------------------/\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+\r
+import org.xml.sax.ContentHandler;\r
 \r
+//---------------------------------/\r
+//- Imported classes and packages -/\r
+//---------------------------------/\r
 import java.io.IOException;\r
 import java.io.Reader;\r
 import java.io.Serializable;\r
 import java.io.Writer;\r
+\r
 import java.util.Enumeration;\r
 import java.util.Vector;\r
-import org.exolab.castor.xml.MarshalException;\r
-import org.exolab.castor.xml.Marshaller;\r
-import org.exolab.castor.xml.Unmarshaller;\r
-import org.exolab.castor.xml.ValidationException;\r
-import org.xml.sax.ContentHandler;\r
+\r
 \r
 /**\r
  * Class JGroup.\r
@@ -48,10 +49,8 @@ import org.xml.sax.ContentHandler;
  * @version $Revision$ $Date$\r
  */\r
 public class JGroup implements java.io.Serializable {\r
-\r
-\r
-      //--------------------------/\r
-     //- Class/Member Variables -/\r
+    //--------------------------/\r
+    //- Class/Member Variables -/\r
     //--------------------------/\r
 \r
     /**\r
@@ -149,33 +148,20 @@ public class JGroup implements java.io.Serializable {
      */\r
     private java.util.Vector _seqList;\r
 \r
-\r
-      //----------------/\r
-     //- Constructors -/\r
     //----------------/\r
-\r
+    //- Constructors -/\r
+    //----------------/\r
     public JGroup() {\r
         super();\r
         _seqList = new Vector();\r
-    } //-- jalview.binding.JGroup()\r
-\r
+    }\r
+     //-- jalview.binding.JGroup()\r
+ //-----------/\r
 \r
-      //-----------/\r
-     //- Methods -/\r
-    //-----------/\r
-\r
-    /**\r
-     * Method addSeq\r
-     *\r
-     *\r
-     *\r
-     * @param vSeq\r
-     */\r
-    public void addSeq(int vSeq)\r
-        throws java.lang.IndexOutOfBoundsException\r
-    {\r
+    public void addSeq(int vSeq) throws java.lang.IndexOutOfBoundsException {\r
         _seqList.addElement(new java.lang.Integer(vSeq));\r
-    } //-- void addSeq(int)\r
+    }\r
+     //-- void addSeq(int)\r
 \r
     /**\r
      * Method addSeq\r
@@ -186,82 +172,82 @@ public class JGroup implements java.io.Serializable {
      * @param vSeq\r
      */\r
     public void addSeq(int index, int vSeq)\r
-        throws java.lang.IndexOutOfBoundsException\r
-    {\r
+        throws java.lang.IndexOutOfBoundsException {\r
         _seqList.insertElementAt(new java.lang.Integer(vSeq), index);\r
-    } //-- void addSeq(int, int)\r
+    }\r
+     //-- void addSeq(int, int)\r
 \r
     /**\r
      * Method deleteColourText\r
      *\r
      */\r
-    public void deleteColourText()\r
-    {\r
-        this._has_colourText= false;\r
-    } //-- void deleteColourText()\r
+    public void deleteColourText() {\r
+        this._has_colourText = false;\r
+    }\r
+     //-- void deleteColourText()\r
 \r
     /**\r
      * Method deleteConsThreshold\r
      *\r
      */\r
-    public void deleteConsThreshold()\r
-    {\r
-        this._has_consThreshold= false;\r
-    } //-- void deleteConsThreshold()\r
+    public void deleteConsThreshold() {\r
+        this._has_consThreshold = false;\r
+    }\r
+     //-- void deleteConsThreshold()\r
 \r
     /**\r
      * Method deleteDisplayBoxes\r
      *\r
      */\r
-    public void deleteDisplayBoxes()\r
-    {\r
-        this._has_displayBoxes= false;\r
-    } //-- void deleteDisplayBoxes()\r
+    public void deleteDisplayBoxes() {\r
+        this._has_displayBoxes = false;\r
+    }\r
+     //-- void deleteDisplayBoxes()\r
 \r
     /**\r
      * Method deleteDisplayText\r
      *\r
      */\r
-    public void deleteDisplayText()\r
-    {\r
-        this._has_displayText= false;\r
-    } //-- void deleteDisplayText()\r
+    public void deleteDisplayText() {\r
+        this._has_displayText = false;\r
+    }\r
+     //-- void deleteDisplayText()\r
 \r
     /**\r
      * Method deleteEnd\r
      *\r
      */\r
-    public void deleteEnd()\r
-    {\r
-        this._has_end= false;\r
-    } //-- void deleteEnd()\r
+    public void deleteEnd() {\r
+        this._has_end = false;\r
+    }\r
+     //-- void deleteEnd()\r
 \r
     /**\r
      * Method deleteOutlineColour\r
      *\r
      */\r
-    public void deleteOutlineColour()\r
-    {\r
-        this._has_outlineColour= false;\r
-    } //-- void deleteOutlineColour()\r
+    public void deleteOutlineColour() {\r
+        this._has_outlineColour = false;\r
+    }\r
+     //-- void deleteOutlineColour()\r
 \r
     /**\r
      * Method deletePidThreshold\r
      *\r
      */\r
-    public void deletePidThreshold()\r
-    {\r
-        this._has_pidThreshold= false;\r
-    } //-- void deletePidThreshold()\r
+    public void deletePidThreshold() {\r
+        this._has_pidThreshold = false;\r
+    }\r
+     //-- void deletePidThreshold()\r
 \r
     /**\r
      * Method deleteStart\r
      *\r
      */\r
-    public void deleteStart()\r
-    {\r
-        this._has_start= false;\r
-    } //-- void deleteStart()\r
+    public void deleteStart() {\r
+        this._has_start = false;\r
+    }\r
+     //-- void deleteStart()\r
 \r
     /**\r
      * Method enumerateSeq\r
@@ -270,10 +256,10 @@ public class JGroup implements java.io.Serializable {
      *\r
      * @return Enumeration\r
      */\r
-    public java.util.Enumeration enumerateSeq()\r
-    {\r
+    public java.util.Enumeration enumerateSeq() {\r
         return _seqList.elements();\r
-    } //-- java.util.Enumeration enumerateSeq()\r
+    }\r
+     //-- java.util.Enumeration enumerateSeq()\r
 \r
     /**\r
      * Returns the value of field 'colour'.\r
@@ -281,10 +267,10 @@ public class JGroup implements java.io.Serializable {
      * @return String\r
      * @return the value of field 'colour'.\r
      */\r
-    public java.lang.String getColour()\r
-    {\r
+    public java.lang.String getColour() {\r
         return this._colour;\r
-    } //-- java.lang.String getColour()\r
+    }\r
+     //-- java.lang.String getColour()\r
 \r
     /**\r
      * Returns the value of field 'colourText'.\r
@@ -292,10 +278,10 @@ public class JGroup implements java.io.Serializable {
      * @return boolean\r
      * @return the value of field 'colourText'.\r
      */\r
-    public boolean getColourText()\r
-    {\r
+    public boolean getColourText() {\r
         return this._colourText;\r
-    } //-- boolean getColourText()\r
+    }\r
+     //-- boolean getColourText()\r
 \r
     /**\r
      * Returns the value of field 'consThreshold'.\r
@@ -303,10 +289,10 @@ public class JGroup implements java.io.Serializable {
      * @return int\r
      * @return the value of field 'consThreshold'.\r
      */\r
-    public int getConsThreshold()\r
-    {\r
+    public int getConsThreshold() {\r
         return this._consThreshold;\r
-    } //-- int getConsThreshold()\r
+    }\r
+     //-- int getConsThreshold()\r
 \r
     /**\r
      * Returns the value of field 'displayBoxes'.\r
@@ -314,10 +300,10 @@ public class JGroup implements java.io.Serializable {
      * @return boolean\r
      * @return the value of field 'displayBoxes'.\r
      */\r
-    public boolean getDisplayBoxes()\r
-    {\r
+    public boolean getDisplayBoxes() {\r
         return this._displayBoxes;\r
-    } //-- boolean getDisplayBoxes()\r
+    }\r
+     //-- boolean getDisplayBoxes()\r
 \r
     /**\r
      * Returns the value of field 'displayText'.\r
@@ -325,10 +311,10 @@ public class JGroup implements java.io.Serializable {
      * @return boolean\r
      * @return the value of field 'displayText'.\r
      */\r
-    public boolean getDisplayText()\r
-    {\r
+    public boolean getDisplayText() {\r
         return this._displayText;\r
-    } //-- boolean getDisplayText()\r
+    }\r
+     //-- boolean getDisplayText()\r
 \r
     /**\r
      * Returns the value of field 'end'.\r
@@ -336,10 +322,10 @@ public class JGroup implements java.io.Serializable {
      * @return int\r
      * @return the value of field 'end'.\r
      */\r
-    public int getEnd()\r
-    {\r
+    public int getEnd() {\r
         return this._end;\r
-    } //-- int getEnd()\r
+    }\r
+     //-- int getEnd()\r
 \r
     /**\r
      * Returns the value of field 'name'.\r
@@ -347,10 +333,10 @@ public class JGroup implements java.io.Serializable {
      * @return String\r
      * @return the value of field 'name'.\r
      */\r
-    public java.lang.String getName()\r
-    {\r
+    public java.lang.String getName() {\r
         return this._name;\r
-    } //-- java.lang.String getName()\r
+    }\r
+     //-- java.lang.String getName()\r
 \r
     /**\r
      * Returns the value of field 'outlineColour'.\r
@@ -358,10 +344,10 @@ public class JGroup implements java.io.Serializable {
      * @return int\r
      * @return the value of field 'outlineColour'.\r
      */\r
-    public int getOutlineColour()\r
-    {\r
+    public int getOutlineColour() {\r
         return this._outlineColour;\r
-    } //-- int getOutlineColour()\r
+    }\r
+     //-- int getOutlineColour()\r
 \r
     /**\r
      * Returns the value of field 'pidThreshold'.\r
@@ -369,10 +355,10 @@ public class JGroup implements java.io.Serializable {
      * @return int\r
      * @return the value of field 'pidThreshold'.\r
      */\r
-    public int getPidThreshold()\r
-    {\r
+    public int getPidThreshold() {\r
         return this._pidThreshold;\r
-    } //-- int getPidThreshold()\r
+    }\r
+     //-- int getPidThreshold()\r
 \r
     /**\r
      * Method getSeq\r
@@ -382,16 +368,15 @@ public class JGroup implements java.io.Serializable {
      * @param index\r
      * @return int\r
      */\r
-    public int getSeq(int index)\r
-        throws java.lang.IndexOutOfBoundsException\r
-    {\r
+    public int getSeq(int index) throws java.lang.IndexOutOfBoundsException {\r
         //-- check bounds for index\r
         if ((index < 0) || (index > _seqList.size())) {\r
             throw new IndexOutOfBoundsException();\r
         }\r
 \r
-        return ((java.lang.Integer)_seqList.elementAt(index)).intValue();\r
-    } //-- int getSeq(int)\r
+        return ((java.lang.Integer) _seqList.elementAt(index)).intValue();\r
+    }\r
+     //-- int getSeq(int)\r
 \r
     /**\r
      * Method getSeq\r
@@ -400,15 +385,17 @@ public class JGroup implements java.io.Serializable {
      *\r
      * @return int\r
      */\r
-    public int[] getSeq()\r
-    {\r
+    public int[] getSeq() {\r
         int size = _seqList.size();\r
         int[] mArray = new int[size];\r
+\r
         for (int index = 0; index < size; index++) {\r
-            mArray[index] = ((java.lang.Integer)_seqList.elementAt(index)).intValue();\r
+            mArray[index] = ((java.lang.Integer) _seqList.elementAt(index)).intValue();\r
         }\r
+\r
         return mArray;\r
-    } //-- int[] getSeq()\r
+    }\r
+     //-- int[] getSeq()\r
 \r
     /**\r
      * Method getSeqCount\r
@@ -417,10 +404,10 @@ public class JGroup implements java.io.Serializable {
      *\r
      * @return int\r
      */\r
-    public int getSeqCount()\r
-    {\r
+    public int getSeqCount() {\r
         return _seqList.size();\r
-    } //-- int getSeqCount()\r
+    }\r
+     //-- int getSeqCount()\r
 \r
     /**\r
      * Returns the value of field 'start'.\r
@@ -428,10 +415,10 @@ public class JGroup implements java.io.Serializable {
      * @return int\r
      * @return the value of field 'start'.\r
      */\r
-    public int getStart()\r
-    {\r
+    public int getStart() {\r
         return this._start;\r
-    } //-- int getStart()\r
+    }\r
+     //-- int getStart()\r
 \r
     /**\r
      * Method hasColourText\r
@@ -440,10 +427,10 @@ public class JGroup implements java.io.Serializable {
      *\r
      * @return boolean\r
      */\r
-    public boolean hasColourText()\r
-    {\r
+    public boolean hasColourText() {\r
         return this._has_colourText;\r
-    } //-- boolean hasColourText()\r
+    }\r
+     //-- boolean hasColourText()\r
 \r
     /**\r
      * Method hasConsThreshold\r
@@ -452,10 +439,10 @@ public class JGroup implements java.io.Serializable {
      *\r
      * @return boolean\r
      */\r
-    public boolean hasConsThreshold()\r
-    {\r
+    public boolean hasConsThreshold() {\r
         return this._has_consThreshold;\r
-    } //-- boolean hasConsThreshold()\r
+    }\r
+     //-- boolean hasConsThreshold()\r
 \r
     /**\r
      * Method hasDisplayBoxes\r
@@ -464,10 +451,10 @@ public class JGroup implements java.io.Serializable {
      *\r
      * @return boolean\r
      */\r
-    public boolean hasDisplayBoxes()\r
-    {\r
+    public boolean hasDisplayBoxes() {\r
         return this._has_displayBoxes;\r
-    } //-- boolean hasDisplayBoxes()\r
+    }\r
+     //-- boolean hasDisplayBoxes()\r
 \r
     /**\r
      * Method hasDisplayText\r
@@ -476,10 +463,10 @@ public class JGroup implements java.io.Serializable {
      *\r
      * @return boolean\r
      */\r
-    public boolean hasDisplayText()\r
-    {\r
+    public boolean hasDisplayText() {\r
         return this._has_displayText;\r
-    } //-- boolean hasDisplayText()\r
+    }\r
+     //-- boolean hasDisplayText()\r
 \r
     /**\r
      * Method hasEnd\r
@@ -488,10 +475,10 @@ public class JGroup implements java.io.Serializable {
      *\r
      * @return boolean\r
      */\r
-    public boolean hasEnd()\r
-    {\r
+    public boolean hasEnd() {\r
         return this._has_end;\r
-    } //-- boolean hasEnd()\r
+    }\r
+     //-- boolean hasEnd()\r
 \r
     /**\r
      * Method hasOutlineColour\r
@@ -500,10 +487,10 @@ public class JGroup implements java.io.Serializable {
      *\r
      * @return boolean\r
      */\r
-    public boolean hasOutlineColour()\r
-    {\r
+    public boolean hasOutlineColour() {\r
         return this._has_outlineColour;\r
-    } //-- boolean hasOutlineColour()\r
+    }\r
+     //-- boolean hasOutlineColour()\r
 \r
     /**\r
      * Method hasPidThreshold\r
@@ -512,10 +499,10 @@ public class JGroup implements java.io.Serializable {
      *\r
      * @return boolean\r
      */\r
-    public boolean hasPidThreshold()\r
-    {\r
+    public boolean hasPidThreshold() {\r
         return this._has_pidThreshold;\r
-    } //-- boolean hasPidThreshold()\r
+    }\r
+     //-- boolean hasPidThreshold()\r
 \r
     /**\r
      * Method hasStart\r
@@ -524,10 +511,10 @@ public class JGroup implements java.io.Serializable {
      *\r
      * @return boolean\r
      */\r
-    public boolean hasStart()\r
-    {\r
+    public boolean hasStart() {\r
         return this._has_start;\r
-    } //-- boolean hasStart()\r
+    }\r
+     //-- boolean hasStart()\r
 \r
     /**\r
      * Method isValid\r
@@ -536,16 +523,16 @@ public class JGroup implements java.io.Serializable {
      *\r
      * @return boolean\r
      */\r
-    public boolean isValid()\r
-    {\r
+    public boolean isValid() {\r
         try {\r
             validate();\r
-        }\r
-        catch (org.exolab.castor.xml.ValidationException vex) {\r
+        } catch (org.exolab.castor.xml.ValidationException vex) {\r
             return false;\r
         }\r
+\r
         return true;\r
-    } //-- boolean isValid()\r
+    }\r
+     //-- boolean isValid()\r
 \r
     /**\r
      * Method marshal\r
@@ -555,11 +542,11 @@ public class JGroup implements java.io.Serializable {
      * @param out\r
      */\r
     public void marshal(java.io.Writer out)\r
-        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
-    {\r
-\r
+        throws org.exolab.castor.xml.MarshalException, \r
+            org.exolab.castor.xml.ValidationException {\r
         Marshaller.marshal(this, out);\r
-    } //-- void marshal(java.io.Writer)\r
+    }\r
+     //-- void marshal(java.io.Writer)\r
 \r
     /**\r
      * Method marshal\r
@@ -569,20 +556,20 @@ public class JGroup implements java.io.Serializable {
      * @param handler\r
      */\r
     public void marshal(org.xml.sax.ContentHandler handler)\r
-        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
-    {\r
-\r
+        throws java.io.IOException, org.exolab.castor.xml.MarshalException, \r
+            org.exolab.castor.xml.ValidationException {\r
         Marshaller.marshal(this, handler);\r
-    } //-- void marshal(org.xml.sax.ContentHandler)\r
+    }\r
+     //-- void marshal(org.xml.sax.ContentHandler)\r
 \r
     /**\r
      * Method removeAllSeq\r
      *\r
      */\r
-    public void removeAllSeq()\r
-    {\r
+    public void removeAllSeq() {\r
         _seqList.removeAllElements();\r
-    } //-- void removeAllSeq()\r
+    }\r
+     //-- void removeAllSeq()\r
 \r
     /**\r
      * Method removeSeq\r
@@ -592,109 +579,110 @@ public class JGroup implements java.io.Serializable {
      * @param index\r
      * @return int\r
      */\r
-    public int removeSeq(int index)\r
-    {\r
+    public int removeSeq(int index) {\r
         java.lang.Object obj = _seqList.elementAt(index);\r
         _seqList.removeElementAt(index);\r
-        return ((java.lang.Integer)obj).intValue();\r
-    } //-- int removeSeq(int)\r
+\r
+        return ((java.lang.Integer) obj).intValue();\r
+    }\r
+     //-- int removeSeq(int)\r
 \r
     /**\r
      * Sets the value of field 'colour'.\r
      *\r
      * @param colour the value of field 'colour'.\r
      */\r
-    public void setColour(java.lang.String colour)\r
-    {\r
+    public void setColour(java.lang.String colour) {\r
         this._colour = colour;\r
-    } //-- void setColour(java.lang.String)\r
+    }\r
+     //-- void setColour(java.lang.String)\r
 \r
     /**\r
      * Sets the value of field 'colourText'.\r
      *\r
      * @param colourText the value of field 'colourText'.\r
      */\r
-    public void setColourText(boolean colourText)\r
-    {\r
+    public void setColourText(boolean colourText) {\r
         this._colourText = colourText;\r
         this._has_colourText = true;\r
-    } //-- void setColourText(boolean)\r
+    }\r
+     //-- void setColourText(boolean)\r
 \r
     /**\r
      * Sets the value of field 'consThreshold'.\r
      *\r
      * @param consThreshold the value of field 'consThreshold'.\r
      */\r
-    public void setConsThreshold(int consThreshold)\r
-    {\r
+    public void setConsThreshold(int consThreshold) {\r
         this._consThreshold = consThreshold;\r
         this._has_consThreshold = true;\r
-    } //-- void setConsThreshold(int)\r
+    }\r
+     //-- void setConsThreshold(int)\r
 \r
     /**\r
      * Sets the value of field 'displayBoxes'.\r
      *\r
      * @param displayBoxes the value of field 'displayBoxes'.\r
      */\r
-    public void setDisplayBoxes(boolean displayBoxes)\r
-    {\r
+    public void setDisplayBoxes(boolean displayBoxes) {\r
         this._displayBoxes = displayBoxes;\r
         this._has_displayBoxes = true;\r
-    } //-- void setDisplayBoxes(boolean)\r
+    }\r
+     //-- void setDisplayBoxes(boolean)\r
 \r
     /**\r
      * Sets the value of field 'displayText'.\r
      *\r
      * @param displayText the value of field 'displayText'.\r
      */\r
-    public void setDisplayText(boolean displayText)\r
-    {\r
+    public void setDisplayText(boolean displayText) {\r
         this._displayText = displayText;\r
         this._has_displayText = true;\r
-    } //-- void setDisplayText(boolean)\r
+    }\r
+     //-- void setDisplayText(boolean)\r
 \r
     /**\r
      * Sets the value of field 'end'.\r
      *\r
      * @param end the value of field 'end'.\r
      */\r
-    public void setEnd(int end)\r
-    {\r
+    public void setEnd(int end) {\r
         this._end = end;\r
         this._has_end = true;\r
-    } //-- void setEnd(int)\r
+    }\r
+     //-- void setEnd(int)\r
 \r
     /**\r
      * Sets the value of field 'name'.\r
      *\r
      * @param name the value of field 'name'.\r
      */\r
-    public void setName(java.lang.String name)\r
-    {\r
+    public void setName(java.lang.String name) {\r
         this._name = name;\r
-    } //-- void setName(java.lang.String)\r
+    }\r
+     //-- void setName(java.lang.String)\r
 \r
     /**\r
      * Sets the value of field 'outlineColour'.\r
      *\r
      * @param outlineColour the value of field 'outlineColour'.\r
      */\r
-    public void setOutlineColour(int outlineColour)\r
-    {\r
+    public void setOutlineColour(int outlineColour) {\r
         this._outlineColour = outlineColour;\r
         this._has_outlineColour = true;\r
-    } //-- void setOutlineColour(int)\r
+    }\r
+     //-- void setOutlineColour(int)\r
 \r
     /**\r
      * Sets the value of field 'pidThreshold'.\r
      *\r
      * @param pidThreshold the value of field 'pidThreshold'.\r
      */\r
-    public void setPidThreshold(int pidThreshold)\r
-    {\r
+    public void setPidThreshold(int pidThreshold) {\r
         this._pidThreshold = pidThreshold;\r
         this._has_pidThreshold = true;\r
-    } //-- void setPidThreshold(int)\r
+    }\r
+     //-- void setPidThreshold(int)\r
 \r
     /**\r
      * Method setSeq\r
@@ -705,14 +693,15 @@ public class JGroup implements java.io.Serializable {
      * @param vSeq\r
      */\r
     public void setSeq(int index, int vSeq)\r
-        throws java.lang.IndexOutOfBoundsException\r
-    {\r
+        throws java.lang.IndexOutOfBoundsException {\r
         //-- check bounds for index\r
         if ((index < 0) || (index > _seqList.size())) {\r
             throw new IndexOutOfBoundsException();\r
         }\r
+\r
         _seqList.setElementAt(new java.lang.Integer(vSeq), index);\r
-    } //-- void setSeq(int, int)\r
+    }\r
+     //-- void setSeq(int, int)\r
 \r
     /**\r
      * Method setSeq\r
@@ -721,25 +710,26 @@ public class JGroup implements java.io.Serializable {
      *\r
      * @param seqArray\r
      */\r
-    public void setSeq(int[] seqArray)\r
-    {\r
+    public void setSeq(int[] seqArray) {\r
         //-- copy array\r
         _seqList.removeAllElements();\r
+\r
         for (int i = 0; i < seqArray.length; i++) {\r
             _seqList.addElement(new java.lang.Integer(seqArray[i]));\r
         }\r
-    } //-- void setSeq(int)\r
+    }\r
+     //-- void setSeq(int)\r
 \r
     /**\r
      * Sets the value of field 'start'.\r
      *\r
      * @param start the value of field 'start'.\r
      */\r
-    public void setStart(int start)\r
-    {\r
+    public void setStart(int start) {\r
         this._start = start;\r
         this._has_start = true;\r
-    } //-- void setStart(int)\r
+    }\r
+     //-- void setStart(int)\r
 \r
     /**\r
      * Method unmarshal\r
@@ -750,20 +740,20 @@ public class JGroup implements java.io.Serializable {
      * @return Object\r
      */\r
     public static java.lang.Object unmarshal(java.io.Reader reader)\r
-        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
-    {\r
-        return (jalview.binding.JGroup) Unmarshaller.unmarshal(jalview.binding.JGroup.class, reader);\r
-    } //-- java.lang.Object unmarshal(java.io.Reader)\r
+        throws org.exolab.castor.xml.MarshalException, \r
+            org.exolab.castor.xml.ValidationException {\r
+        return (jalview.binding.JGroup) Unmarshaller.unmarshal(jalview.binding.JGroup.class,\r
+            reader);\r
+    }\r
+     //-- java.lang.Object unmarshal(java.io.Reader)\r
 \r
     /**\r
      * Method validate\r
      *\r
      */\r
-    public void validate()\r
-        throws org.exolab.castor.xml.ValidationException\r
-    {\r
+    public void validate() throws org.exolab.castor.xml.ValidationException {\r
         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
         validator.validate(this);\r
-    } //-- void validate()\r
-\r
+    }\r
+     //-- void validate()\r
 }\r