org.jfree.text
Class TextUtilities

java.lang.Object
  extended byorg.jfree.text.TextUtilities

public class TextUtilities
extends java.lang.Object

Some utility methods for working with text.


Constructor Summary
TextUtilities()
           
 
Method Summary
static TextBlock createTextBlock(java.lang.String text, java.awt.Font font, float maxWidth, int maxLines, TextMeasurer measurer)
          Creates a new text block from the given string.
static TextBlock createTextBlock(java.lang.String text, java.awt.Font font, float maxWidth, TextMeasurer measurer)
          Creates a new text block from the given string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextUtilities

public TextUtilities()
Method Detail

createTextBlock

public static TextBlock createTextBlock(java.lang.String text,
                                        java.awt.Font font,
                                        float maxWidth,
                                        TextMeasurer measurer)
Creates a new text block from the given string.

Parameters:
text - the text.
font - the font.
maxWidth - the maximum width for each line.
measurer - the text measurer.
Returns:
A text block.

createTextBlock

public static TextBlock createTextBlock(java.lang.String text,
                                        java.awt.Font font,
                                        float maxWidth,
                                        int maxLines,
                                        TextMeasurer measurer)
Creates a new text block from the given string.

Parameters:
text - the text.
font - the font.
maxWidth - the maximum width for each line.
maxLines - the maximum number of lines.
measurer - the text measurer.
Returns:
A text block.