Package | Description |
---|---|
org.jfree.text |
Utility classes relating to text.
|
Modifier and Type | Class and Description |
---|---|
class |
G2TextMeasurer
A
TextMeasurer based on a Graphics2D . |
Modifier and Type | Method and Description |
---|---|
static TextBlock |
TextUtilities.createTextBlock(java.lang.String text,
java.awt.Font font,
java.awt.Paint paint,
float maxWidth,
int maxLines,
TextMeasurer measurer)
Creates a new text block from the given string, breaking the
text into lines so that the
maxWidth value is
respected. |
static TextBlock |
TextUtilities.createTextBlock(java.lang.String text,
java.awt.Font font,
java.awt.Paint paint,
float maxWidth,
TextMeasurer measurer)
Creates a new text block from the given string, breaking the
text into lines so that the
maxWidth value is
respected. |
private static int |
TextUtilities.nextLineBreak(java.lang.String text,
int start,
float width,
java.text.BreakIterator iterator,
TextMeasurer measurer)
Returns the character index of the next line break.
|