jimm.datavision.layout
Class DocBookLE

java.lang.Object
  extended by jimm.datavision.layout.LayoutEngine
      extended by jimm.datavision.layout.SortedLayoutEngine
          extended by jimm.datavision.layout.DocBookLE

public class DocBookLE
extends SortedLayoutEngine

A DocBook layout engine creates DocBook documents. Field layout is achieved by creating tables.


Field Summary
protected  java.util.HashMap sectionCols
           
 
Fields inherited from class jimm.datavision.layout.SortedLayoutEngine
comp, sectionFields
 
Fields inherited from class jimm.datavision.layout.LayoutEngine
currentSection, newPage, out, pageHeight, pageHeightUsed, pageNumber, pageWidth, POINTS_PER_INCH, previousSectionArea, report, SECT_DETAIL, SECT_GROUP_FOOTER, SECT_GROUP_HEADER, SECT_PAGE_FOOTER, SECT_PAGE_HEADER, SECT_REPORT_FOOTER, SECT_REPORT_HEADER, wantsMoreData
 
Constructor Summary
DocBookLE(java.io.PrintWriter out)
          Constructor.
 
Method Summary
protected  java.util.Collection calcSectionCols(Section sect)
          Returns a collection of DocBookCol objects.
protected  void doEnd()
          This override outputs the end of the document.
protected  void doOutputField(Field field)
          Does nothing, since we output fields in doOutputSection(jimm.datavision.Section).
protected  void doOutputImage(ImageField image)
          Does nothing, since we output images in doOutputSection(jimm.datavision.Section).
protected  void doOutputLine(Line line)
          Does nothing, since we output lines in doOutputSection(jimm.datavision.Section).
protected  void doOutputSection(Section sect)
          This override outputs a report section.
protected  void doStart()
          This override outputs information at the top of the DocBook document.
protected  void doStartPage()
          This override starts a new page.
 
Methods inherited from class jimm.datavision.layout.SortedLayoutEngine
buildSectionFields
 
Methods inherited from class jimm.datavision.layout.LayoutEngine
calcDetailHeight, calcPageFooterHeight, calcReportFooterHeight, calcSectionHeights, cancel, checkRemainingPageLength, closeOutput, currentSectionTypeAsString, detail, doEndPage, end, endPage, groupFooters, groupHeaders, outputField, outputImage, outputLine, outputSection, pageHeight, pageNumber, pageWidth, setReport, start, startPage, wantsMoreData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sectionCols

protected java.util.HashMap sectionCols
Constructor Detail

DocBookLE

public DocBookLE(java.io.PrintWriter out)
Constructor.

Parameters:
out - the output writer
Method Detail

doStart

protected void doStart()
This override outputs information at the top of the DocBook document.

Overrides:
doStart in class LayoutEngine

doEnd

protected void doEnd()
This override outputs the end of the document.

Overrides:
doEnd in class LayoutEngine

doStartPage

protected void doStartPage()
This override starts a new page.

Overrides:
doStartPage in class LayoutEngine

doOutputSection

protected void doOutputSection(Section sect)
This override outputs a report section.

Overrides:
doOutputSection in class SortedLayoutEngine
Parameters:
sect - the report section

doOutputField

protected void doOutputField(Field field)
Does nothing, since we output fields in doOutputSection(jimm.datavision.Section).

Specified by:
doOutputField in class LayoutEngine
Parameters:
field - a field

doOutputImage

protected void doOutputImage(ImageField image)
Does nothing, since we output images in doOutputSection(jimm.datavision.Section).

Specified by:
doOutputImage in class LayoutEngine
Parameters:
image - an image field

doOutputLine

protected void doOutputLine(Line line)
Does nothing, since we output lines in doOutputSection(jimm.datavision.Section).

Specified by:
doOutputLine in class LayoutEngine
Parameters:
line - a line

calcSectionCols

protected java.util.Collection calcSectionCols(Section sect)
Returns a collection of DocBookCol objects. Each one represents a field that will be output.

Parameters:
sect - a section