Style Intelligence v12.0

inetsoft.report.io
Class HTMLFormatter

java.lang.Object
  extended by inetsoft.report.io.BaseFormatter
      extended by inetsoft.report.io.HTMLFormatter
All Implemented Interfaces:
Formatter
Direct Known Subclasses:
HTMLBundleFormatter

Deprecated. using HTMLGenerator.

public class HTMLFormatter
extends BaseFormatter

HTMLFormatter is responsible for converting report and report elements into a HTML format. The generated HTML uses HTML tags only, with no cascade style sheet or other advanced features. For Web presentation of reports, use Style Report/EE's built-in web interface instead.


Field Summary
protected  Vector centerV
          Deprecated.  
protected  int currAlign
          Deprecated.  
protected  String dir
          Deprecated.  
protected  boolean inHeader
          Deprecated.  
protected  Vector leftV
          Deprecated.  
protected  OutputStream output
          Deprecated.  
protected  String prefix
          Deprecated.  
protected  Vector rightV
          Deprecated.  
protected  ReportSheet sheet
          Deprecated.  
protected  PrintWriter writer
          Deprecated.  
 
Fields inherited from class inetsoft.report.io.BaseFormatter
docInfo, report
 
Constructor Summary
HTMLFormatter(OutputStream output, String dir)
          Deprecated. Create a report formatter.
 
Method Summary
protected  void addElement(ReportElement elem)
          Deprecated.  
 void end()
          Deprecated. Write the end of report.
protected  void endCell()
          Deprecated. End a cell.
protected  void endGrid()
          Deprecated. End the layout grid.
 void endHeader()
          Deprecated. End a header section.
protected  void endRow()
          Deprecated. End a row.
protected  void flushElements()
          Deprecated. Write out the buffered paragraphs.
protected  String getFontName(Font font)
          Deprecated. Get the real font name.
 void prolog(ReportSheet sheet)
          Deprecated. Write the prolog of report.
 void setJPEGPrefix(String prefix)
          Deprecated. Set the JPEG file prefix.
protected  void startCell(TabularSheet sheet, int r, int c, Object bg, Insets borders, Color bcolor, Rectangle span, String width, boolean repeat)
          Deprecated. Start a new cell.
protected  void startGrid(int rows, int cols)
          Deprecated. Start a layout grid (for tabular layout).
 void startHeader(int type)
          Deprecated. Start a header section.
 void startHeader(String eid, boolean header)
          Deprecated. Start a header selection for element associated header/footer.
protected  void startRow(TabularSheet sheet, int row)
          Deprecated. Start a new row.
protected  String toString(Color c)
          Deprecated. Convert color to hex string.
 void write(AreaBreakElement elem)
          Deprecated. Write the areabreak element.
 void write(BeanElement elem)
          Deprecated. Write the bean element.
 void write(ChartElement elem)
          Deprecated. Write the chart element.
 void write(CompositeElement elem)
          Deprecated. Write the composite element.
 void write(CondPageBreakElement elem)
          Deprecated. Write the conditional page break element.
 void write(FormElement elem0)
          Deprecated. Write the form element.
 void write(HeadingElement elem)
          Deprecated. Write the heading text element.
 void write(NewlineElement elem)
          Deprecated. Write the newline element.
 void write(PageBreakElement elem)
          Deprecated. Write the pagebreak element.
 void write(PageLayoutElement elem)
          Deprecated. Write the page layout element.
 void write(PainterElement elem0)
          Deprecated. Write the painter element.
 void write(SectionElement elem0)
          Deprecated. Write the section element.
 void write(SeparatorElement elem)
          Deprecated. Write the separator element.
 void write(SpaceElement elem)
          Deprecated. Write the space element.
 void write(TabElement elem)
          Deprecated. Write the tab element.
 void write(TableElement elem0)
          Deprecated. Write the table element.
 void write(TextBoxElement elem)
          Deprecated. Write the textbox element.
 void write(TextElement elem0)
          Deprecated. Write the text element.
 void write(TOCElement elem)
          Deprecated. Write the TOC element.
 void write(inetsoft.report.style.XTableStyle style)
          Deprecated. Write embedded table style.
protected  void writeAlignment(int align)
          Deprecated. Write horizontal alignment option.
protected  void writeHeading(HeadingElement elem)
          Deprecated. Write a heading element.
protected  String writeImage(Painter painter, Dimension d, Color fg, Color bg)
          Deprecated. Write a painter to an image file.
protected  Image writeImage0(Painter painter, Dimension d, Color fg, Color bg)
          Deprecated. Write a painter to an image file.
protected  void writePainter(Painter painter, String url, Color fg, Color bg, int align, Insets space, Dimension size)
          Deprecated. Write an image element.
protected  void writeParagraph(Vector para, int align)
          Deprecated.  
 void writeSection(SectionLens section, TableLens table)
          Deprecated. Write the section element.
protected  void writeSectionBand(SectionBand band)
          Deprecated. Print one band.
protected  void writeShapes(PageLayout.Shape[] shapes)
          Deprecated. Write the pagelayout shapes specifications.
protected  void writeText(Object obj, Font font, Color fg, Color bg)
          Deprecated. Write text paragraph.
protected  int writeTOC(TOCElement elem)
          Deprecated. Write a TOC element.
 
Methods inherited from class inetsoft.report.io.BaseFormatter
addProgressListener, escape, fireProgressEvent, init, localize, removeProgressListener, setDocumentInfo, write, write, write, write, writeBeanPropertyDefinition, writeContents, writeContents, writeContents, writeElementContents, writeSection, writeWarnings, writeWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dir

protected String dir
Deprecated. 

writer

protected PrintWriter writer
Deprecated. 

output

protected OutputStream output
Deprecated. 

leftV

protected Vector leftV
Deprecated. 

centerV

protected Vector centerV
Deprecated. 

rightV

protected Vector rightV
Deprecated. 

currAlign

protected int currAlign
Deprecated. 

inHeader

protected boolean inHeader
Deprecated. 

prefix

protected String prefix
Deprecated. 

sheet

protected ReportSheet sheet
Deprecated. 
Constructor Detail

HTMLFormatter

public HTMLFormatter(OutputStream output,
                     String dir)
Deprecated. 
Create a report formatter.

Method Detail

startGrid

protected void startGrid(int rows,
                         int cols)
Deprecated. 
Start a layout grid (for tabular layout).

Specified by:
startGrid in class BaseFormatter
Parameters:
rows - number of rows.
cols - number of columns.

endGrid

protected void endGrid()
Deprecated. 
End the layout grid.

Specified by:
endGrid in class BaseFormatter

startRow

protected void startRow(TabularSheet sheet,
                        int row)
Deprecated. 
Start a new row.

Specified by:
startRow in class BaseFormatter
Parameters:
sheet - tabular report object.
row - row index in the grid.

endRow

protected void endRow()
Deprecated. 
End a row.

Specified by:
endRow in class BaseFormatter

startCell

protected void startCell(TabularSheet sheet,
                         int r,
                         int c,
                         Object bg,
                         Insets borders,
                         Color bcolor,
                         Rectangle span,
                         String width,
                         boolean repeat)
Deprecated. 
Start a new cell.

Specified by:
startCell in class BaseFormatter
r - row index.
c - column index.
bg - cell background color or image.
borders - border setting.
bcolor - border color.
span - cell span.
width - column width. See TabularSheet for width specification format.
repeat - true to repeat the cell contents on every page.

endCell

protected void endCell()
Deprecated. 
End a cell.

Specified by:
endCell in class BaseFormatter

writeShapes

protected void writeShapes(PageLayout.Shape[] shapes)
Deprecated. 
Write the pagelayout shapes specifications.

Specified by:
writeShapes in class BaseFormatter

setJPEGPrefix

public void setJPEGPrefix(String prefix)
Deprecated. 
Set the JPEG file prefix. An index is added at the end of the prefix to make the files unique.

Parameters:
prefix - jpeg file prefix.

prolog

public void prolog(ReportSheet sheet)
Deprecated. 
Write the prolog of report.


startHeader

public void startHeader(int type)
Deprecated. 
Start a header section.

Parameters:
type - header/footer type. Defined in ReportSheet.

startHeader

public void startHeader(String eid,
                        boolean header)
Deprecated. 
Start a header selection for element associated header/footer.

Parameters:
eid - element ID.
header - true if header, false if footer.

endHeader

public void endHeader()
Deprecated. 
End a header section.


write

public void write(inetsoft.report.style.XTableStyle style)
Deprecated. 
Write embedded table style.


write

public void write(HeadingElement elem)
Deprecated. 
Write the heading text element.


write

public void write(TextElement elem0)
Deprecated. 
Write the text element.


write

public void write(SectionElement elem0)
           throws IOException
Deprecated. 
Write the section element.

Throws:
IOException

writeSection

public void writeSection(SectionLens section,
                         TableLens table)
                  throws IOException
Deprecated. 
Write the section element.

Throws:
IOException

writeSectionBand

protected void writeSectionBand(SectionBand band)
                         throws IOException
Deprecated. 
Print one band.

Specified by:
writeSectionBand in class BaseFormatter
Throws:
IOException

write

public void write(TableElement elem0)
Deprecated. 
Write the table element.


write

public void write(FormElement elem0)
Deprecated. 
Write the form element.


write

public void write(PainterElement elem0)
Deprecated. 
Write the painter element.


write

public void write(ChartElement elem)
Deprecated. 
Write the chart element.


write

public void write(TextBoxElement elem)
Deprecated. 
Write the textbox element.


write

public void write(TabElement elem)
Deprecated. 
Write the tab element.


write

public void write(NewlineElement elem)
Deprecated. 
Write the newline element.


write

public void write(AreaBreakElement elem)
Deprecated. 
Write the areabreak element.


write

public void write(PageBreakElement elem)
Deprecated. 
Write the pagebreak element.


write

public void write(PageLayoutElement elem)
Deprecated. 
Write the page layout element.


write

public void write(CondPageBreakElement elem)
Deprecated. 
Write the conditional page break element.


write

public void write(SpaceElement elem)
Deprecated. 
Write the space element.


write

public void write(SeparatorElement elem)
Deprecated. 
Write the separator element.


write

public void write(TOCElement elem)
Deprecated. 
Write the TOC element.


write

public void write(CompositeElement elem)
           throws IOException
Deprecated. 
Write the composite element.

Throws:
IOException

write

public void write(BeanElement elem)
           throws IOException
Deprecated. 
Write the bean element.

Throws:
IOException

end

public void end()
         throws IOException
Deprecated. 
Write the end of report.

Specified by:
end in interface Formatter
Specified by:
end in class BaseFormatter
Throws:
IOException

getFontName

protected String getFontName(Font font)
Deprecated. 
Get the real font name.


writeText

protected void writeText(Object obj,
                         Font font,
                         Color fg,
                         Color bg)
Deprecated. 
Write text paragraph.


writeAlignment

protected void writeAlignment(int align)
Deprecated. 
Write horizontal alignment option.


writePainter

protected void writePainter(Painter painter,
                            String url,
                            Color fg,
                            Color bg,
                            int align,
                            Insets space,
                            Dimension size)
Deprecated. 
Write an image element.


writeHeading

protected void writeHeading(HeadingElement elem)
Deprecated. 
Write a heading element.


writeTOC

protected int writeTOC(TOCElement elem)
Deprecated. 
Write a TOC element.


writeImage

protected String writeImage(Painter painter,
                            Dimension d,
                            Color fg,
                            Color bg)
Deprecated. 
Write a painter to an image file.


writeImage0

protected Image writeImage0(Painter painter,
                            Dimension d,
                            Color fg,
                            Color bg)
Deprecated. 
Write a painter to an image file.


toString

protected String toString(Color c)
Deprecated. 
Convert color to hex string.


addElement

protected void addElement(ReportElement elem)
Deprecated. 

flushElements

protected void flushElements()
Deprecated. 
Write out the buffered paragraphs.


writeParagraph

protected void writeParagraph(Vector para,
                              int align)
Deprecated. 

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.