|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fo.XMLWhiteSpaceHandler
public class XMLWhiteSpaceHandler
Class encapsulating the functionality for white-space-handling
during refinement stage.
The handleWhiteSpace()
methods are called during
FOTree-building and marker-cloning:
FObjMixed.addChildNode()
FObjMixed.endOfNode()
FObjMixed.handleWhiteSpaceFor()
FOText
or Character
nodes that
were added:
newChild
(and after the previous
non-text child node)newChild
is null
,
after the previous non-text childfirstTextNode
,
goes on until the last text-node is reached, and deals only
with FOText
or Character
nodes.
Constructor Summary | |
---|---|
XMLWhiteSpaceHandler()
|
Method Summary | |
---|---|
void |
handleWhiteSpace(FObjMixed fo,
FONode firstTextNode)
Handle white-space for the fo that is passed in, starting at firstTextNode (when a nested FO is encountered) |
void |
handleWhiteSpace(FObjMixed fo,
FONode firstTextNode,
FONode nextChild)
Handle white-space for the fo that is passed in, starting at firstTextNode |
protected void |
reset()
Reset the handler, release all references |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLWhiteSpaceHandler()
Method Detail |
---|
public void handleWhiteSpace(FObjMixed fo, FONode firstTextNode, FONode nextChild)
fo
- the FO for which to handle white-spacefirstTextNode
- the node at which to startnextChild
- the node that will be added to the list
after firstTextNodeprotected final void reset()
public void handleWhiteSpace(FObjMixed fo, FONode firstTextNode)
fo
- the FO for which to handle white-spacefirstTextNode
- the node at which to start
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |