if (node.getNodeType() != LayoutNodeTypes.TYPE_BOX_LINEBOX)
{
throw new IllegalStateException("Expected ParagraphPoolBox elements.");
}
final ParagraphPoolBox inlineRenderBox = (ParagraphPoolBox) node;
if (startLine(inlineRenderBox))
{
processBoxChilds(inlineRenderBox);
finishLine(inlineRenderBox);
}
node = node.getNext();
}
}
else
{
final ParagraphPoolBox node = box.getPool();
// all childs of the linebox container must be inline boxes. They
// represent the lines in the paragraph. Any other element here is
// a error that must be reported
if (startLine(node))
{