Package net.sf.jasperreports.engine.fill
Class ComplexTextLineWrapper
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.ComplexTextLineWrapper
-
- All Implemented Interfaces:
TextLineWrapper
public class ComplexTextLineWrapper extends Object implements TextLineWrapper
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Constructor Summary
Constructors Modifier Constructor Description ComplexTextLineWrapper()protectedComplexTextLineWrapper(ComplexTextLineWrapper parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextLinebaseTextLine(int index)charcharAt(int index)StringgetLineText(int start, int end)voidinit(TextMeasureContext context)TextLineWrapperlastLineWrapper(String lineText, int start, int textLength, boolean truncateAtChar)floatmaxFontsize(int start, int end)TextLinenextLine(float width, int endLimit, boolean requireWord)intparagraphEnd()intparagraphPosition()protected voidsetAttributes(AttributedString string, AttributedCharacterIterator attributes, int stringOffset)protected voidsetAttributes(AttributedString string, Map<AttributedCharacterIterator.Attribute,Object> attributes, int startIndex, int endIndex)booleanstart(JRStyledText styledText)voidstartEmptyParagraph(int paragraphStart)voidstartParagraph(int paragraphStart, int paragraphEnd, boolean truncateAtChar)protected voidstartParagraph(AttributedCharacterIterator paragraph, boolean truncateAtChar)
-
-
-
Constructor Detail
-
ComplexTextLineWrapper
public ComplexTextLineWrapper()
-
ComplexTextLineWrapper
protected ComplexTextLineWrapper(ComplexTextLineWrapper parent)
-
-
Method Detail
-
init
public void init(TextMeasureContext context)
- Specified by:
initin interfaceTextLineWrapper
-
start
public boolean start(JRStyledText styledText)
- Specified by:
startin interfaceTextLineWrapper
-
startParagraph
public void startParagraph(int paragraphStart, int paragraphEnd, boolean truncateAtChar)- Specified by:
startParagraphin interfaceTextLineWrapper
-
startEmptyParagraph
public void startEmptyParagraph(int paragraphStart)
- Specified by:
startEmptyParagraphin interfaceTextLineWrapper
-
startParagraph
protected void startParagraph(AttributedCharacterIterator paragraph, boolean truncateAtChar)
-
paragraphPosition
public int paragraphPosition()
- Specified by:
paragraphPositionin interfaceTextLineWrapper
-
paragraphEnd
public int paragraphEnd()
- Specified by:
paragraphEndin interfaceTextLineWrapper
-
nextLine
public TextLine nextLine(float width, int endLimit, boolean requireWord)
- Specified by:
nextLinein interfaceTextLineWrapper
-
baseTextLine
public TextLine baseTextLine(int index)
- Specified by:
baseTextLinein interfaceTextLineWrapper
-
maxFontsize
public float maxFontsize(int start, int end)- Specified by:
maxFontsizein interfaceTextLineWrapper
-
getLineText
public String getLineText(int start, int end)
- Specified by:
getLineTextin interfaceTextLineWrapper
-
charAt
public char charAt(int index)
- Specified by:
charAtin interfaceTextLineWrapper
-
lastLineWrapper
public TextLineWrapper lastLineWrapper(String lineText, int start, int textLength, boolean truncateAtChar)
- Specified by:
lastLineWrapperin interfaceTextLineWrapper
-
setAttributes
protected void setAttributes(AttributedString string, AttributedCharacterIterator attributes, int stringOffset)
-
setAttributes
protected void setAttributes(AttributedString string, Map<AttributedCharacterIterator.Attribute,Object> attributes, int startIndex, int endIndex)
-
-