public class ComplexTextLineWrapper extends Object implements TextLineWrapper
| Modifier | Constructor and Description |
|---|---|
|
ComplexTextLineWrapper() |
protected |
ComplexTextLineWrapper(ComplexTextLineWrapper parent) |
| Modifier and Type | Method and 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) |
int |
maxFontSize(int start,
int end)
Deprecated.
Replaced by
maxFontsize(int, int). |
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) |
protected void |
startParagraph(AttributedCharacterIterator paragraph,
boolean truncateAtChar) |
void |
startParagraph(int paragraphStart,
int paragraphEnd,
boolean truncateAtChar) |
public ComplexTextLineWrapper()
protected ComplexTextLineWrapper(ComplexTextLineWrapper parent)
public void init(TextMeasureContext context)
init in interface TextLineWrapperpublic boolean start(JRStyledText styledText)
start in interface TextLineWrapperpublic void startParagraph(int paragraphStart,
int paragraphEnd,
boolean truncateAtChar)
startParagraph in interface TextLineWrapperpublic void startEmptyParagraph(int paragraphStart)
startEmptyParagraph in interface TextLineWrapperprotected void startParagraph(AttributedCharacterIterator paragraph, boolean truncateAtChar)
public int paragraphPosition()
paragraphPosition in interface TextLineWrapperpublic int paragraphEnd()
paragraphEnd in interface TextLineWrapperpublic TextLine nextLine(float width, int endLimit, boolean requireWord)
nextLine in interface TextLineWrapperpublic TextLine baseTextLine(int index)
baseTextLine in interface TextLineWrapperpublic float maxFontsize(int start,
int end)
maxFontsize in interface TextLineWrapperpublic int maxFontSize(int start,
int end)
maxFontsize(int, int).maxFontSize in interface TextLineWrapperpublic String getLineText(int start, int end)
getLineText in interface TextLineWrapperpublic char charAt(int index)
charAt in interface TextLineWrapperpublic TextLineWrapper lastLineWrapper(String lineText, int start, int textLength, boolean truncateAtChar)
lastLineWrapper in interface TextLineWrapperprotected void setAttributes(AttributedString string, AttributedCharacterIterator attributes, int stringOffset)
protected void setAttributes(AttributedString string, Map<AttributedCharacterIterator.Attribute,Object> attributes, int startIndex, int endIndex)
Copyright © 2017. All rights reserved.