org.jfree.layouting.normalizer.content
Interface Normalizer
- StatefullComponent
- ChainingNormalizer, ContentNormalizer, RecordingContentNormalizer
public interface Normalizer
The normalizer is the first stage of the content processing. A normalizer
is responsible for auto-generating content and for assigning styles to the
logical document tree.
addText
public void addText(String text)
throws NormalizationException,
IOException
Adds text content to the current element.
endDocument
public void endDocument()
throws NormalizationException,
IOException
Ends the document. No other events will be fired against this normalizer
once this method has been called.
endElement
public void endElement()
throws NormalizationException,
IOException
Ends the current element. The namespace and tagname are given for
convienience.
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.
startDocument
public void startDocument()
throws NormalizationException,
IOException
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.
startElement
public void startElement(String namespace,
String tag,
AttributeMap attributes)
throws NormalizationException,
IOException
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.
namespace
- tag
- attributes
-