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) |
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 TextLineWrapper
public boolean start(JRStyledText styledText)
start
in interface TextLineWrapper
public void startParagraph(int paragraphStart, int paragraphEnd, boolean truncateAtChar)
startParagraph
in interface TextLineWrapper
public void startEmptyParagraph(int paragraphStart)
startEmptyParagraph
in interface TextLineWrapper
protected void startParagraph(AttributedCharacterIterator paragraph, boolean truncateAtChar)
public int paragraphPosition()
paragraphPosition
in interface TextLineWrapper
public int paragraphEnd()
paragraphEnd
in interface TextLineWrapper
public TextLine nextLine(float width, int endLimit, boolean requireWord)
nextLine
in interface TextLineWrapper
public TextLine baseTextLine(int index)
baseTextLine
in interface TextLineWrapper
public float maxFontsize(int start, int end)
maxFontsize
in interface TextLineWrapper
public String getLineText(int start, int end)
getLineText
in interface TextLineWrapper
public char charAt(int index)
charAt
in interface TextLineWrapper
public TextLineWrapper lastLineWrapper(String lineText, int start, int textLength, boolean truncateAtChar)
lastLineWrapper
in interface TextLineWrapper
protected void setAttributes(AttributedString string, AttributedCharacterIterator attributes, int stringOffset)
protected void setAttributes(AttributedString string, Map<AttributedCharacterIterator.Attribute,Object> attributes, int startIndex, int endIndex)
Copyright © 2023 Cloud Software Group, Inc.. All rights reserved.