From 61464a7627562c55f28357cb6eeb68eb734961b7 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 14 Dec 2004 17:35:55 +0000 Subject: [PATCH] HTML ouput is now identical to onscreen view --- src/jalview/io/HTMLOutput.java | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/jalview/io/HTMLOutput.java b/src/jalview/io/HTMLOutput.java index b238383..a37d8a2 100755 --- a/src/jalview/io/HTMLOutput.java +++ b/src/jalview/io/HTMLOutput.java @@ -11,10 +11,11 @@ import java.util.*; public class HTMLOutput { - SequenceRenderer sr = new SequenceRenderer(null); + public HTMLOutput(AlignViewport av) { + SequenceRenderer sr = new SequenceRenderer(av); Color color; JFileChooser chooser = new JFileChooser(jalview.bin.Cache.LAST_DIRECTORY); chooser.setDialogTitle("Save as HTML"); @@ -29,7 +30,18 @@ public class HTMLOutput out.println(""); out.println(""); out.println(""); @@ -55,6 +67,7 @@ public class HTMLOutput else cs = av.getGlobalColourScheme(); + color = sr.getResidueBoxColour(cs, seq, res); if(color.getRGB()<-1) @@ -85,7 +98,7 @@ public class HTMLOutput jalview.util.BrowserLauncher.openURL( choice ); } - catch(Exception ex){} + catch(Exception ex){ex.printStackTrace();} } } -- 1.7.10.2