b.append(box.getBreakContext());
logger.debug(b.toString());
if (box instanceof LogicalPageBox)
{
final LogicalPageBox pageBox = (LogicalPageBox) box;
b = new StringBuffer();
for (int i = 0; i < level; i++)
{
b.append(" ");
}
b.append("- PageBox={PageOffset=");
b.append(pageBox.getPageOffset());
b.append(", PageHeight=");
b.append(pageBox.getPageHeight());
b.append(", PageEnd=");
b.append(pageBox.getPageEnd());
b.append('}');
logger.debug(b.toString());
b = new StringBuffer();
for (int i = 0; i < level; i++)
{
b.append(" ");
}
b.append("- PageBreaks={");
b.append(pageBox.getAllVerticalBreaks());
b.append('}');
logger.debug(b.toString());
}
if (box.isOpen())
{
b = new StringBuffer();
for (int i = 0; i < level; i++)
{
b.append(" ");
}
b.append("- WARNING: THIS BOX IS STILL OPEN");
logger.debug(b.toString());
}
if (box.isFinished())
{
b = new StringBuffer();
for (int i = 0; i < level; i++)
{
b.append(" ");
}
b.append("- INFO: THIS BOX IS FINISHED");
logger.debug(b.toString());
}
if (box.isCommited())
{
b = new StringBuffer();
for (int i = 0; i < level; i++)
{
b.append(" ");
}
b.append("- INFO: THIS BOX IS COMMITED");
logger.debug(b.toString());
}
b = new StringBuffer();
for (int i = 0; i < level; i++)
{
b.append(" ");
}
logger.debug(b.toString());
if (box instanceof ParagraphRenderBox)
{
if (PRINT_LINEBOX_CONTENTS)
{
final ParagraphRenderBox paraBox = (ParagraphRenderBox) box;
logger.debug("---------------- START PARAGRAPH POOL CONTAINER -------------------------------------");
printBox(paraBox.getPool(), level + 1);
logger.debug("---------------- FINISH PARAGRAPH POOL CONTAINER -------------------------------------");
if (paraBox.isComplexParagraph())
{
logger.debug("---------------- START PARAGRAPH LINEBOX CONTAINER -------------------------------------");
printBox(paraBox.getLineboxContainer(), level + 1);
logger.debug("---------------- FINISH PARAGRAPH LINEBOX CONTAINER -------------------------------------");
}
}
}
if (box instanceof LogicalPageBox)
{
final LogicalPageBox lbox = (LogicalPageBox) box;
printBox(lbox.getHeaderArea(), level + 1);
printBox(lbox.getWatermarkArea(), level + 1);
}
printChilds(box, level);
if (box instanceof LogicalPageBox)
{
final LogicalPageBox lbox = (LogicalPageBox) box;
printBox(lbox.getFooterArea(), level + 1);
}
}