}
context.pop();
final StyleContext cellContext = getCurrentContext();
cellContext.add(currentContext.getTarget());
context.push(new StyleContext(new Paragraph(), text.getStyleSheet(), metaData));
}
}
else if (node.getNodeType() == LayoutNodeTypes.TYPE_NODE_COMPLEX_TEXT)
{
// todo: check if special text processing is required for RenderableComplexText nodes
// return;
if (node.isVirtualNode())
{
return;
}
if ((node.getX() + node.getWidth()) > (paragraphBounds.getX() + paragraphBounds.getWidth()))
{
// This node will only be partially visible. The end-of-line marker will not apply.
return;
}
final RenderableComplexText text = (RenderableComplexText) node;
if (text.isForceLinebreak())
{
final StyleContext currentContext = getCurrentContext();
if (getTextLength() > 0)
{
currentContext.add(getText());
clearText();
}
context.pop();
final StyleContext cellContext = getCurrentContext();
cellContext.add(currentContext.getTarget());
context.push(new StyleContext(new Paragraph(), text.getStyleSheet(), metaData));
}
}
}