Class ComplexTextFactory
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.layout.text.ComplexTextFactory
-
- All Implemented Interfaces:
RenderableTextFactory
public class ComplexTextFactory extends Object implements RenderableTextFactory
-
-
Constructor Summary
Constructors Constructor Description ComplexTextFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RenderNode[]
createText(int[] text, int offset, int length, StyleSheet layoutContext, ElementType elementType, InstanceID instanceId, ReportAttributeMap<Object> attributeMap)
The text is given as CodePoints.RenderNode[]
finishText()
static List<String>
processText(int[] text, int offset, int length)
This method breaks text into lines in a strict manor.void
startText()
-
-
-
Method Detail
-
createText
public RenderNode[] createText(int[] text, int offset, int length, StyleSheet layoutContext, ElementType elementType, InstanceID instanceId, ReportAttributeMap<Object> attributeMap)
Description copied from interface:RenderableTextFactory
The text is given as CodePoints.- Specified by:
createText
in interfaceRenderableTextFactory
- Returns:
-
finishText
public RenderNode[] finishText()
- Specified by:
finishText
in interfaceRenderableTextFactory
-
startText
public void startText()
- Specified by:
startText
in interfaceRenderableTextFactory
-
processText
public static List<String> processText(int[] text, int offset, int length)
This method breaks text into lines in a strict manor. It accepts CR+LF (windows), CR (old Mac) and LF (Unix) as line endings and correctly handles empty lines formed by multiple line-breaks.- Parameters:
text
-offset
-length
-- Returns:
-
-