fop 0.92beta

org.apache.fop.fo
Class XMLWhiteSpaceHandler

java.lang.Object
  |
  +--org.apache.fop.fo.XMLWhiteSpaceHandler

public class XMLWhiteSpaceHandler
extends java.lang.Object

Class encapsulating the functionality for white-space-handling during refinement stage.


Constructor Summary
XMLWhiteSpaceHandler()
           
 
Method Summary
 void addDiscardableFOChar(Character foChar)
          Marks a Character object as discardable, so that it is effectively removed from the FOTree at the end of handleWhitespace()
 void handleWhiteSpace(FObjMixed fo, FONode firstTextNode)
          Handle white-space for the fo that is passed in, starting at firstTextNode
 void handleWhiteSpace(FObjMixed fo, FONode firstTextNode, FONode nextChild)
          Handle white-space for the fo that is passed in, starting at firstTextNode (when a nested FO is encountered)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLWhiteSpaceHandler

public XMLWhiteSpaceHandler()
Method Detail

addDiscardableFOChar

public void addDiscardableFOChar(Character foChar)
Marks a Character object as discardable, so that it is effectively removed from the FOTree at the end of handleWhitespace()
Parameters:
foChar - the Character object to be removed from the list of childNodes

handleWhiteSpace

public void handleWhiteSpace(FObjMixed fo,
                             FONode firstTextNode)
Handle white-space for the fo that is passed in, starting at firstTextNode
Parameters:
fo - the FO for which to handle white-space
firstTextNode - the node at which to start

handleWhiteSpace

public void handleWhiteSpace(FObjMixed fo,
                             FONode firstTextNode,
                             FONode nextChild)
Handle white-space for the fo that is passed in, starting at firstTextNode (when a nested FO is encountered)
Parameters:
fo - the FO for which to handle white-space
firstTextNode - the node at which to start
nextChild - the child-node that will be added to the list after the last text-node

fop 0.92beta

Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.