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()
protected
ComplexTextLineWrapper(ComplexTextLineWrapper parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextLine
baseTextLine(int index)
char
charAt(int index)
String
getLineText(int start, int end)
void
init(TextMeasureContext context)
TextLineWrapper
lastLineWrapper(String lineText, int start, int textLength, boolean truncateAtChar)
float
maxFontsize(int start, int end)
TextLine
nextLine(float width, int endLimit, boolean requireWord)
int
paragraphEnd()
int
paragraphPosition()
protected void
setAttributes(AttributedString string, AttributedCharacterIterator attributes, int stringOffset)
protected void
setAttributes(AttributedString string, Map<AttributedCharacterIterator.Attribute,Object> attributes, int startIndex, int endIndex)
boolean
start(JRStyledText styledText)
void
startEmptyParagraph(int paragraphStart)
void
startParagraph(int paragraphStart, int paragraphEnd, boolean truncateAtChar)
protected void
startParagraph(AttributedCharacterIterator paragraph, boolean truncateAtChar)
-
-
-
Constructor Detail
-
ComplexTextLineWrapper
public ComplexTextLineWrapper()
-
ComplexTextLineWrapper
protected ComplexTextLineWrapper(ComplexTextLineWrapper parent)
-
-
Method Detail
-
init
public void init(TextMeasureContext context)
- Specified by:
init
in interfaceTextLineWrapper
-
start
public boolean start(JRStyledText styledText)
- Specified by:
start
in interfaceTextLineWrapper
-
startParagraph
public void startParagraph(int paragraphStart, int paragraphEnd, boolean truncateAtChar)
- Specified by:
startParagraph
in interfaceTextLineWrapper
-
startEmptyParagraph
public void startEmptyParagraph(int paragraphStart)
- Specified by:
startEmptyParagraph
in interfaceTextLineWrapper
-
startParagraph
protected void startParagraph(AttributedCharacterIterator paragraph, boolean truncateAtChar)
-
paragraphPosition
public int paragraphPosition()
- Specified by:
paragraphPosition
in interfaceTextLineWrapper
-
paragraphEnd
public int paragraphEnd()
- Specified by:
paragraphEnd
in interfaceTextLineWrapper
-
nextLine
public TextLine nextLine(float width, int endLimit, boolean requireWord)
- Specified by:
nextLine
in interfaceTextLineWrapper
-
baseTextLine
public TextLine baseTextLine(int index)
- Specified by:
baseTextLine
in interfaceTextLineWrapper
-
maxFontsize
public float maxFontsize(int start, int end)
- Specified by:
maxFontsize
in interfaceTextLineWrapper
-
getLineText
public String getLineText(int start, int end)
- Specified by:
getLineText
in interfaceTextLineWrapper
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfaceTextLineWrapper
-
lastLineWrapper
public TextLineWrapper lastLineWrapper(String lineText, int start, int textLength, boolean truncateAtChar)
- Specified by:
lastLineWrapper
in 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)
-
-