Package net.sf.jasperreports.engine.fill
Class ComplexTextLineWrapper
java.lang.Object
net.sf.jasperreports.engine.fill.ComplexTextLineWrapper
- All Implemented Interfaces:
TextLineWrapper
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionbaseTextLine
(int index) char
charAt
(int index) getLineText
(int start, int end) void
init
(TextMeasureContext context) lastLineWrapper
(String lineText, int start, int textLength, boolean truncateAtChar) float
maxFontsize
(int start, int end) nextLine
(float width, int endLimit, boolean requireWord) int
int
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 Details
-
ComplexTextLineWrapper
public ComplexTextLineWrapper() -
ComplexTextLineWrapper
-
-
Method Details
-
init
- Specified by:
init
in interfaceTextLineWrapper
-
start
- 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
-
paragraphPosition
public int paragraphPosition()- Specified by:
paragraphPosition
in interfaceTextLineWrapper
-
paragraphEnd
public int paragraphEnd()- Specified by:
paragraphEnd
in interfaceTextLineWrapper
-
nextLine
- Specified by:
nextLine
in interfaceTextLineWrapper
-
baseTextLine
- Specified by:
baseTextLine
in interfaceTextLineWrapper
-
maxFontsize
public float maxFontsize(int start, int end) - Specified by:
maxFontsize
in interfaceTextLineWrapper
-
getLineText
- 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)
-