org.jfree.layouting.normalizer.content
public class ContentNormalizer extends java.lang.Object implements Normalizer
Modifier and Type | Class and Description |
---|---|
protected static class |
ContentNormalizer.ContentNormalizerState |
Modifier | Constructor and Description |
---|---|
|
ContentNormalizer(LayoutProcess layoutProcess) |
protected |
ContentNormalizer(LayoutProcess layoutProcess,
boolean init) |
Modifier and Type | Method and Description |
---|---|
void |
addText(java.lang.String text)
Adds text content to the current element.
|
protected ContentNormalizer.ContentNormalizerState |
createSaveState() |
void |
endDocument()
Ends the document.
|
void |
endElement()
Ends the current element.
|
protected void |
fillState(ContentNormalizer.ContentNormalizerState state) |
protected void |
generateAfterPseudoElements(LayoutElement element) |
protected boolean |
generateBeforePseudoElements(LayoutElement element) |
protected void |
generateContentAfter(LayoutElement element) |
protected boolean |
generateContentBefore(LayoutElement element) |
protected void |
generateStrings(LayoutElement element) |
Renderer |
getRenderer()
Returns the renderer.
|
StyleResolver |
getStyleResolver() |
void |
handlePageBreak(CSSValue pageName,
PseudoPage[] pseudoPages) |
protected void |
restore(ContentNormalizer.ContentNormalizerState state) |
State |
saveState() |
void |
startDocument()
Start document is the first call to the normalizer.
|
void |
startElement(java.lang.String namespace,
java.lang.String tag,
AttributeMap attributes)
Starts a new element.
|
protected void |
startElementInternal(java.lang.String namespace,
java.lang.String tag,
java.lang.String pseudo,
AttributeMap attributes) |
public ContentNormalizer(LayoutProcess layoutProcess)
protected ContentNormalizer(LayoutProcess layoutProcess, boolean init)
public void startDocument() throws java.io.IOException, NormalizationException
Normalizer
startDocument
in interface Normalizer
java.io.IOException
NormalizationException
public void startElement(java.lang.String namespace, java.lang.String tag, AttributeMap attributes) throws NormalizationException, java.io.IOException
startElement
in interface Normalizer
namespace
- tag
- attributes
- NormalizationException
java.io.IOException
protected void startElementInternal(java.lang.String namespace, java.lang.String tag, java.lang.String pseudo, AttributeMap attributes) throws NormalizationException, java.io.IOException
NormalizationException
java.io.IOException
protected boolean generateBeforePseudoElements(LayoutElement element) throws java.io.IOException, NormalizationException
java.io.IOException
NormalizationException
protected boolean generateContentBefore(LayoutElement element) throws java.io.IOException, NormalizationException
java.io.IOException
NormalizationException
protected void generateContentAfter(LayoutElement element) throws java.io.IOException, NormalizationException
java.io.IOException
NormalizationException
protected void generateStrings(LayoutElement element) throws java.io.IOException, NormalizationException
java.io.IOException
NormalizationException
protected void generateAfterPseudoElements(LayoutElement element) throws java.io.IOException, NormalizationException
java.io.IOException
NormalizationException
public void addText(java.lang.String text) throws NormalizationException, java.io.IOException
addText
in interface Normalizer
text
- NormalizationException
java.io.IOException
public void endElement() throws NormalizationException, java.io.IOException
endElement
in interface Normalizer
NormalizationException
java.io.IOException
public void endDocument() throws java.io.IOException, NormalizationException
Normalizer
endDocument
in interface Normalizer
java.io.IOException
NormalizationException
public void handlePageBreak(CSSValue pageName, PseudoPage[] pseudoPages)
handlePageBreak
in interface Normalizer
protected ContentNormalizer.ContentNormalizerState createSaveState()
protected void fillState(ContentNormalizer.ContentNormalizerState state) throws StateException
StateException
public State saveState() throws StateException
saveState
in interface StatefullComponent
StateException
protected void restore(ContentNormalizer.ContentNormalizerState state) throws StateException
StateException
public Renderer getRenderer()
getRenderer
in interface Normalizer
public StyleResolver getStyleResolver()