org.jfree.layouting.layouter.feed

Class DefaultInputFeed

public class DefaultInputFeed extends Object implements InputFeed

Creation-Date: 05.12.2005, 18:19:03

Author: Thomas Morgner

Field Summary
static intDOCUMENT_FINISHED
static intDOCUMENT_STARTING
static intELEMENT_ATTRIBUTES
static intELEMENT_CONTENT
static intELEMENT_EXPECTED
static intELEMENT_STARTED
static intMETA_EXPECTED
static intMETA_NODE_ATTRIBUTES
static intMETA_NODE_START
static intMETA_PROCESSING
Constructor Summary
DefaultInputFeed(LayoutProcess process)
protected DefaultInputFeed(LayoutProcess process, boolean init)
Method Summary
voidaddContent(String text)
voidaddDocumentAttribute(String name, Object attr)
voidendDocument()
voidendElement()
voidendMetaInfo()
voidendMetaNode()
NormalizergetCurrentNormalizer()
Warning; This method is needed internally, mess with it from the outside and you will run into trouble.
NamespaceCollectiongetNamespaceCollection()
NormalizergetNormalizer()
protected LayoutProcessgetProcess()
protected intgetState()
voidhandlePageBreakEncountered(CSSValue pageName, PseudoPage[] pseudoPages)
booleanisPagebreakEncountered()
protected voidperformAddContent(String text)
protected voidperformAddDocumentAttribute(String name, Object attr)
protected voidperformEndDocument()
protected voidperformEndElement()
protected voidperformEndMetaInfo()
protected voidperformEndMetaNode()
protected voidperformSetAttribute(String namespace, String name, Object attr)
protected voidperformSetMetaNodeAttribute(String name, Object attr)
protected voidperformStartDocument()
protected voidperformStartElement(String namespace, String name)
protected voidperformStartMetaInfo()
protected voidperformStartMetaNode()
voidresetPageBreakFlag()
StatesaveState()
voidsetAttribute(String namespace, String name, Object attr)
voidsetMetaNodeAttribute(String name, Object attr)
voidstartDocument()
voidstartElement(String namespace, String name)
voidstartMetaInfo()
voidstartMetaNode()

Field Detail

DOCUMENT_FINISHED

public static final int DOCUMENT_FINISHED

DOCUMENT_STARTING

public static final int DOCUMENT_STARTING

ELEMENT_ATTRIBUTES

public static final int ELEMENT_ATTRIBUTES

ELEMENT_CONTENT

public static final int ELEMENT_CONTENT

ELEMENT_EXPECTED

public static final int ELEMENT_EXPECTED

ELEMENT_STARTED

public static final int ELEMENT_STARTED

META_EXPECTED

public static final int META_EXPECTED

META_NODE_ATTRIBUTES

public static final int META_NODE_ATTRIBUTES

META_NODE_START

public static final int META_NODE_START

META_PROCESSING

public static final int META_PROCESSING

Constructor Detail

DefaultInputFeed

public DefaultInputFeed(LayoutProcess process)

DefaultInputFeed

protected DefaultInputFeed(LayoutProcess process, boolean init)

Method Detail

addContent

public final void addContent(String text)

addDocumentAttribute

public final void addDocumentAttribute(String name, Object attr)

endDocument

public final void endDocument()

endElement

public final void endElement()

endMetaInfo

public final void endMetaInfo()

endMetaNode

public void endMetaNode()

getCurrentNormalizer

public Normalizer getCurrentNormalizer()
Warning; This method is needed internally, mess with it from the outside and you will run into trouble. The normalizer is a statefull component and any call to it may mess up the state. From there on, 'Abandon every hope, ye who enter here'.

Returns:

getNamespaceCollection

public NamespaceCollection getNamespaceCollection()

getNormalizer

public Normalizer getNormalizer()

getProcess

protected LayoutProcess getProcess()

getState

protected int getState()

handlePageBreakEncountered

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

isPagebreakEncountered

public boolean isPagebreakEncountered()

performAddContent

protected void performAddContent(String text)

performAddDocumentAttribute

protected void performAddDocumentAttribute(String name, Object attr)

performEndDocument

protected void performEndDocument()

performEndElement

protected void performEndElement()

performEndMetaInfo

protected void performEndMetaInfo()

performEndMetaNode

protected void performEndMetaNode()

performSetAttribute

protected void performSetAttribute(String namespace, String name, Object attr)

performSetMetaNodeAttribute

protected void performSetMetaNodeAttribute(String name, Object attr)

performStartDocument

protected void performStartDocument()

performStartElement

protected void performStartElement(String namespace, String name)

performStartMetaInfo

protected void performStartMetaInfo()

performStartMetaNode

protected void performStartMetaNode()

resetPageBreakFlag

public void resetPageBreakFlag()

saveState

public State saveState()

setAttribute

public final void setAttribute(String namespace, String name, Object attr)

setMetaNodeAttribute

public final void setMetaNodeAttribute(String name, Object attr)

startDocument

public final void startDocument()

startElement

public final void startElement(String namespace, String name)

startMetaInfo

public final void startMetaInfo()

startMetaNode

public void startMetaNode()