public class HTMLRenderer extends Object
Makes an assumption that the gap character is '-', should parameterize. Primary author - Colin Hardman (CAT) Other authors - Tim Dilks (CAT) Simon Brocklehurst (CAT) Stuart Johnston (CAT) Lawerence Bower (CAT) Derek Crockford (CAT) Neil Benn (CAT) Copyright 2001 Cambridge Antibody Technology Group plc. This code released to the biojava project, May 2001 under the LGPL license.
| Constructor and Description | 
|---|
| HTMLRenderer(PrintWriter poPrintWriter,
            String poStyleDef,
            int piAlignmentWidth,
            URLGeneratorFactory poFactory,
            AlignmentMarker poAlignmentMarker,
            Properties poOptions)Creates an HTMLRenderer, that outputs the HTML to the specified
 PrintWriter. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getHeaderDefinitions()Returns the appropriate style and javascript definitions for this
 renderer. | 
| void | setPrintWriter(PrintWriter poPrintWriter)Set the  PrintWriterto output the HTML
 to. | 
| boolean | wasEmpty()Returns true if  no HitSummary and no Hit elements were
 encountered | 
public HTMLRenderer(PrintWriter poPrintWriter, String poStyleDef, int piAlignmentWidth, URLGeneratorFactory poFactory, AlignmentMarker poAlignmentMarker, Properties poOptions)
The style definition is expected to defines the following styles
poPrintWriter - - the output stream to write the HTML to.poStyleDef - - definition of styles, if null uses hard coded.piAlignmentWidth - width in characters of the alignment regions
                         of outputpoFactory - URLGeneratorFactory provides an array of
                  DatabaseURLGenerators, null for no linkspoAlignmentMarker - - for configurable markup of alignments,
                            for no markup use null.poOptions - properties ofpublic void setPrintWriter(PrintWriter poPrintWriter)
PrintWriter to output the HTML
 to.poPrintWriter - a PrintWriterpublic boolean wasEmpty()
boolean - true if no summary of Hit elements
          where encountered.public String getHeaderDefinitions()
String valueCopyright © 2020 BioJava. All rights reserved.