Class ColumnDocumentRenderer

All Implemented Interfaces:
IPropertyContainer, IRenderer

public class ColumnDocumentRenderer extends DocumentRenderer
This class is used for convenient multi-column Document Layouting
  • Field Details

    • columns

      protected Rectangle[] columns
    • nextAreaNumber

      protected int nextAreaNumber
  • Constructor Details

    • ColumnDocumentRenderer

      public ColumnDocumentRenderer (Document document, Rectangle[] columns)
      Creates a ColumnDocumentRenderer. Sets RootRenderer.immediateFlush to true.
      Parameters:
      document - the Document on which this Renderer will calculate and execute element placements
      columns - an array of Rectangle specifying the acceptable positions for elements on a page
    • ColumnDocumentRenderer

      public ColumnDocumentRenderer (Document document, boolean immediateFlush, Rectangle[] columns)
      Creates a ColumnDocumentRenderer whose elements need not be flushed immediately.
      Parameters:
      document - the Document on which this Renderer will calculate and execute element placements
      immediateFlush - whether or not to flush contents as soon as possible
      columns - an array of Rectangle specifying the acceptable positions for elements on a page
  • Method Details