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 java.lang.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)java.lang.StringgetLineText(int start, int end)voidinit(TextMeasureContext context)TextLineWrapperlastLineWrapper(java.lang.String lineText, int start, int textLength, boolean truncateAtChar)floatmaxFontsize(int start, int end)TextLinenextLine(float width, int endLimit, boolean requireWord)intparagraphEnd()intparagraphPosition()protected voidsetAttributes(java.text.AttributedString string, java.text.AttributedCharacterIterator attributes, int stringOffset)protected voidsetAttributes(java.text.AttributedString string, java.util.Map<java.text.AttributedCharacterIterator.Attribute,java.lang.Object> attributes, int startIndex, int endIndex)booleanstart(JRStyledText styledText)voidstartEmptyParagraph(int paragraphStart)voidstartParagraph(int paragraphStart, int paragraphEnd, boolean truncateAtChar)protected voidstartParagraph(java.text.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(java.text.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 java.lang.String getLineText(int start, int end)- Specified by:
getLineTextin interfaceTextLineWrapper
-
charAt
public char charAt(int index)
- Specified by:
charAtin interfaceTextLineWrapper
-
lastLineWrapper
public TextLineWrapper lastLineWrapper(java.lang.String lineText, int start, int textLength, boolean truncateAtChar)
- Specified by:
lastLineWrapperin interfaceTextLineWrapper
-
setAttributes
protected void setAttributes(java.text.AttributedString string, java.text.AttributedCharacterIterator attributes, int stringOffset)
-
setAttributes
protected void setAttributes(java.text.AttributedString string, java.util.Map<java.text.AttributedCharacterIterator.Attribute,java.lang.Object> attributes, int startIndex, int endIndex)
-
-