// return processTextEllipseNormal(box, x2, reslit);
}
private RenderBox processTextEllipseNormal(final RenderBox box, final long x2, String reslit)
{
final StyleSheet style = box.getStyleSheet();
final RenderBox textEllipse = (RenderBox) box.derive(false);
final ReportAttributeMap map = box.getAttributes();
final TextCache.Result result = textCache.get
(style.getId(), style.getChangeTracker(), map.getChangeTracker(), reslit);
if (result != null)
{
textEllipse.addGeneratedChilds(result.getText());
textEllipse.addGeneratedChilds(result.getFinish());
performTextEllipseLayout(textEllipse, x2);
return textEllipse;
}
if (buffer != null)
{
buffer.setCursor(0);
}
buffer = Utf16LE.getInstance().decodeString(reslit, buffer);
bufferArray = buffer.getBuffer(bufferArray);
textFactory.startText();
final RenderNode[] renderNodes = textFactory.createText
(bufferArray, 0, buffer.getLength(), style, box.getElementType(), box.getInstanceId(), map);
final RenderNode[] finishNodes = textFactory.finishText();
textEllipse.addGeneratedChilds(renderNodes);
textEllipse.addGeneratedChilds(finishNodes);
textCache.store(style.getId(), style.getChangeTracker(),
map.getChangeTracker(), reslit, style, map, renderNodes, finishNodes);
performTextEllipseLayout(textEllipse, x2);
return textEllipse;
}