JAL-1807 explicit imports (jalview.io.*)
[jalview.git] / src / jalview / io / HTMLOutput.java
index 3c31b7f..5376fa4 100755 (executable)
  */
 package jalview.io;
 
-import java.io.*;
-
-import java.awt.*;
-
-import jalview.datamodel.*;
-import jalview.gui.*;
+import jalview.bin.Cache;
+import jalview.datamodel.AlignmentI;
+import jalview.datamodel.SequenceI;
+import jalview.gui.AlignViewport;
+import jalview.gui.AlignmentPanel;
+import jalview.gui.FeatureRenderer;
+import jalview.gui.SequenceRenderer;
+import jalview.util.BrowserLauncher;
+import jalview.util.Comparison;
+import jalview.util.Format;
 import jalview.util.MessageManager;
 
+import java.awt.Color;
+import java.awt.Font;
+import java.io.PrintWriter;
+
 public class HTMLOutput
 {
   AlignViewport av;
@@ -48,7 +56,7 @@ public class HTMLOutput
     fr.transferSettings(fr1);
 
     JalviewFileChooser chooser = new JalviewFileChooser(
-            jalview.bin.Cache.getProperty("LAST_DIRECTORY"), new String[]
+            Cache.getProperty("LAST_DIRECTORY"), new String[]
             { "html" }, new String[]
             { "HTML files" }, "HTML files");
 
@@ -61,7 +69,7 @@ public class HTMLOutput
     if (value == JalviewFileChooser.APPROVE_OPTION)
     {
       String choice = chooser.getSelectedFile().getPath();
-      jalview.bin.Cache.setProperty("LAST_DIRECTORY", chooser
+      Cache.setProperty("LAST_DIRECTORY", chooser
               .getSelectedFile().getParent());
 
       try
@@ -102,7 +110,7 @@ public class HTMLOutput
 
         out.println("\n</body>\n</html>");
         out.close();
-        jalview.util.BrowserLauncher.openURL("file:///" + choice);
+        BrowserLauncher.openURL("file:///" + choice);
       } catch (Exception ex)
       {
         ex.printStackTrace();
@@ -143,7 +151,7 @@ public class HTMLOutput
 
       for (int res = 0; res < seq.getLength(); res++)
       {
-        if (!jalview.util.Comparison.isGap(seq.getCharAt(res)))
+        if (!Comparison.isGap(seq.getCharAt(res)))
         {
           color = sr.getResidueBoxColour(seq, res);
 
@@ -156,9 +164,8 @@ public class HTMLOutput
 
         if (color.getRGB() < -1)
         {
-          out.println("<td bgcolor=\"#"
-                  + jalview.util.Format.getHexString(color) + "\">"
-                  + seq.getCharAt(res) + "</td>");
+          out.println("<td bgcolor=\"#" + Format.getHexString(color)
+                  + "\">" + seq.getCharAt(res) + "</td>");
         }
         else
         {
@@ -245,7 +252,7 @@ public class HTMLOutput
 
         for (int res = startRes; res < endRes; res++)
         {
-          if (!jalview.util.Comparison.isGap(seq.getCharAt(res)))
+          if (!Comparison.isGap(seq.getCharAt(res)))
           {
             color = sr.getResidueBoxColour(seq, res);
 
@@ -258,9 +265,8 @@ public class HTMLOutput
 
           if (color.getRGB() < -1)
           {
-            out.println("<td bgcolor=\"#"
-                    + jalview.util.Format.getHexString(color) + "\">"
-                    + seq.getCharAt(res) + "</td>");
+            out.println("<td bgcolor=\"#" + Format.getHexString(color)
+                    + "\">" + seq.getCharAt(res) + "</td>");
           }
           else
           {