JAL-1550 JAL-1551 formatting
authorJim Procter <jprocter@issues.jalview.org>
Thu, 3 Sep 2015 20:21:08 +0000 (21:21 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 3 Sep 2015 20:23:21 +0000 (21:23 +0100)
src/jalview/schemes/RNAHelicesColour.java
src/jalview/schemes/RNAHelicesColourChooser.java

index 2beb4cf..76592ba 100644 (file)
  */
 package jalview.schemes;
 
-import java.awt.*;
-import java.util.Hashtable;
-import java.util.Map;
-
 import jalview.datamodel.AlignmentAnnotation;
 import jalview.datamodel.AnnotatedCollectionI;
 import jalview.datamodel.SequenceCollectionI;
 import jalview.datamodel.SequenceI;
 
+import java.awt.Color;
+import java.util.Hashtable;
+import java.util.Map;
+
 /**
  * Looks at the information computed from an RNA Stockholm format file on the
  * secondary structure of the alignment. Extracts the information on the
index ee9792a..05cffc2 100644 (file)
  */
 package jalview.schemes;
 
-import java.util.*;
-import java.awt.event.*;
-
 import jalview.api.AlignViewportI;
 import jalview.api.AlignmentViewPanel;
-import jalview.datamodel.*;
-import jalview.schemes.*;
+import jalview.datamodel.SequenceGroup;
+
+import java.awt.event.ActionEvent;
+import java.util.Hashtable;
+import java.util.Vector;
 
 /**
  * Helps generate the colors for RNA secondary structure. Future: add option to
@@ -81,9 +81,13 @@ public class RNAHelicesColourChooser
     {
       String label = av.getAlignment().getAlignmentAnnotation()[i].label;
       if (!list.contains(label))
+      {
         list.addElement(label);
+      }
       else
+      {
         list.addElement(label + "_" + (index++));
+      }
     }
 
     adjusting = false;