{
return;
}
final ElementAlignment textAlignment = paragraph.getLastLineAlignment();
final LastLineTextAlignmentProcessor proc = create(textAlignment);
// Now Build the sequence list that holds all nodes for the horizontal alignment computation.
// The last line will get a special "last-line" horizontal alignment. This is quite usefull if
// we are working with justified text and want the last line to be left-aligned.
final SequenceList sequenceList = createHorizontalSequenceList(mergedLine);
final long lineStart = paragraph.getContentAreaX1();
final long lineEnd;
if (overflowX)
{
lineEnd = Integer.MAX_VALUE;
}
else
{
lineEnd = paragraph.getContentAreaX2();
}
if (lineEnd - lineStart <= 0)
{
final long minimumChunkWidth = paragraph.getMinimumChunkWidth();
proc.initialize(metaData, sequenceList, lineStart, lineStart + minimumChunkWidth, pageGrid, overflowX);
RevalidateAllAxisLayoutStep.logger.warn("Revalidate: Auto-Corrected zero-width linebox.");
}
else
{
proc.initialize(metaData, sequenceList, lineStart, lineEnd, pageGrid, overflowX);
}
proc.performLastLineAlignment();
proc.deinitialize();
// Now Perform the vertical layout for the last line of the paragraph.
final BoxAlignContext valignContext = createVerticalAlignContext(mergedLine);
final StaticBoxLayoutProperties blp = mergedLine.getStaticBoxLayoutProperties();
final BoxDefinition bdef = mergedLine.getBoxDefinition();