org.jfree.layouting.normalizer

Class ChainingNormalizer

public class ChainingNormalizer extends Object implements Normalizer

Creation-Date: 16.06.2006, 14:34:44

Author: Thomas Morgner

Constructor Summary
ChainingNormalizer(Normalizer normalizer)
Method Summary
voidaddText(String text)
Adds text content to the current element.
voidcommitCalls()
voidendDocument()
Ends the document.
voidendElement()
Ends the current element.
RenderergetRenderer()
Returns the renderer.
voidhandlePageBreak(CSSValue pageName, PseudoPage[] pseudoPages)
StatesaveState()
voidstartDocument()
Start document is the first call to the normalizer.
voidstartElement(String namespace, String tag, AttributeMap attributes)
Starts a new element.

Constructor Detail

ChainingNormalizer

public ChainingNormalizer(Normalizer normalizer)

Method Detail

addText

public void addText(String text)
Adds text content to the current element.

Parameters: text

Throws: NormalizationException IOException

commitCalls

public void commitCalls()

endDocument

public void endDocument()
Ends the document. No other events will be fired against this normalizer once this method has been called.

Throws: NormalizationException IOException

endElement

public void endElement()
Ends the current element. The namespace and tagname are given for convienience.

Parameters: namespace tag

Throws: NormalizationException IOException

getRenderer

public Renderer getRenderer()
Returns the renderer. The renderer is the last step in the processing chain. The ModelBuilder and ContentGenerator steps are considered internal, as they may refeed the normalizer.

Returns:

handlePageBreak

public void handlePageBreak(CSSValue pageName, PseudoPage[] pseudoPages)

saveState

public State saveState()

startDocument

public void startDocument()
Start document is the first call to the normalizer. At this point, all meta-data has been given and the document context is filled correctly.

Starting the document also starts a new PageContext.

Throws: NormalizationException IOException

startElement

public void startElement(String namespace, String tag, AttributeMap attributes)
Starts a new element. The element uses the given namespace and tagname. The element's attributes are given as collection, each attribute is keyed with a namespace and attributename. The values contained in the attributes are not defined.

Parameters: namespace tag attributes

Throws: NormalizationException IOException