org.jfree.layouting.normalizer.generator
Class DefaultContentGenerator
public
class
DefaultContentGenerator
extends Object
implements ContentGenerator
The default content generator produces CSS-compliant content structures (also
known as DOM-Trees). This model explicitly allows block elements to contain
other block elements and to do all kinds of weird mixing of elements.
The content generator already has all knowledge to compute the manual
pagebreaks. So this class could already fire pagebreaks. The next element in
the layouting chain will be the Layouter itself. The renderer computes the
element positions,knows about the page sizes (and whether we have pages
anyway) and more important - keeps track of the current page and the page
fill state.
The content generator is conceptionally a part of the normalizer step, and
thererfore has access to the raw display model. The renderer receives a more
generic view with no object hierarchies at all - if that whould be needed, it
has to be rebuilt. (This simplifies serialization, so that most remote calls
are now self-contained and do not supply a possibly contradictionary context
(in terms of object-identity)).
Author: Thomas Morgner
protected DefaultContentGenerator(
Renderer renderer)
public void finishedBlock()
public void finishedDocument()
Receives notification, that a new flow has started. A new flow is started
for each flowing or absolutly positioned element.
Parameters: box
public void finishedFlow()
public void finishedInline()
public void finishedMarker()
public void finishedPassThrough()
public void finishedRootInline()
public void finishedTable()
public void finishedTableCaption()
public void finishedTableCell()
public void finishedTableColumn()
public void finishedTableColumnGroup()
public void finishedTableRow()
public void finishedTableSection()
Receives the information, that the document processing has been started.
This is fired only once.