*/
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;
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");
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
out.println("\n</body>\n</html>");
out.close();
- jalview.util.BrowserLauncher.openURL("file:///" + choice);
+ BrowserLauncher.openURL("file:///" + choice);
} catch (Exception ex)
{
ex.printStackTrace();
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);
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
{
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);
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
{