DynamicPDF by ceTe Software

com.cete.dynamicpdf.text
Class LineBreaker

java.lang.Object
  extended by com.cete.dynamicpdf.text.LineBreaker
Direct Known Subclasses:
LatinLineBreaker, UniversalLineBreaker

public abstract class LineBreaker
extends java.lang.Object

Represents a line breaker for text.

Licensing:
This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:


Constructor Summary
LineBreaker()
           
 
Method Summary
static LineBreaker getDefault()
          Gets the default line breaker.
static LineBreaker getLatin()
          Gets the Latin line breaker.
 TextLineList getLines(char[] text, float width, float height, Font font, float fontSize)
          Returns a TextLineList with the text broken into lines.
 TextLineList getLines(char[] text, float width, Font font, float fontSize)
          Returns a TextLineList with the text broken into lines.
abstract  TextLineList getLines(char[] text, int start, int length, float width, float height, Font font, float fontSize)
          Returns a TextLineList with the text broken into lines.
 TextLineList getLines(char[] text, int start, int length, float width, Font font, float fontSize)
          Returns a TextLineList with the text broken into lines.
static LineBreaker getUniversal()
          Gets the universal line breaker.
static void setDefault(LineBreaker lineBreaker)
          Sets the default line breaker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineBreaker

public LineBreaker()
Method Detail

getLines

public TextLineList getLines(char[] text,
                             float width,
                             float height,
                             Font font,
                             float fontSize)
Returns a TextLineList with the text broken into lines.

Parameters:
text - Text for the text line list.
width - Width of the text line list.
height - Height of the text line list.
font - Font to use for the text of the text line list.
fontSize - Font size to use for the text of the text line list.
Returns:
A TextLineList for the given text.
See Also:
Font, TextLineList

getLines

public TextLineList getLines(char[] text,
                             float width,
                             Font font,
                             float fontSize)
Returns a TextLineList with the text broken into lines.

Parameters:
text - Text for the text line list.
width - Width of the text line list.
font - Font to use for the text of the text line list.
fontSize - Font size to use for the text of the text line list.
Returns:
A TextLineList for the given text.
See Also:
Font, TextLineList

getLines

public abstract TextLineList getLines(char[] text,
                                      int start,
                                      int length,
                                      float width,
                                      float height,
                                      Font font,
                                      float fontSize)
Returns a TextLineList with the text broken into lines.

Parameters:
text - Text for the text line list.
start - Start index for the text of the text line list.
length - Length of the text of the text line list.
width - Width of the text line list.
height - Height of the text line list.
font - Font to use for the text of the text line list.
fontSize - Font size to use for the text of the text line list.
Returns:
A TextLineList for the given text.
See Also:
Font, TextLineList

getLines

public TextLineList getLines(char[] text,
                             int start,
                             int length,
                             float width,
                             Font font,
                             float fontSize)
Returns a TextLineList with the text broken into lines.

Parameters:
text - Text for the text line list.
start - Start index for the text of the text line list.
length - Length of the text of the text line list.
width - Width of the text line list.
font - Font to use for the text of the text line list.
fontSize - Font size to use for the text of the text line list.
Returns:
A TextLineList for the given text.
See Also:
Font, TextLineList

getLatin

public static LineBreaker getLatin()
Gets the Latin line breaker.

Returns:
The latin line breaker.

getUniversal

public static LineBreaker getUniversal()
Gets the universal line breaker.

Returns:
The universal line breaker.

setDefault

public static void setDefault(LineBreaker lineBreaker)
Sets the default line breaker.

Parameters:
lineBreaker - The default line breaker.

getDefault

public static LineBreaker getDefault()
Gets the default line breaker.

Returns:
The default line breaker.

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.04 for Java generated on September 25, 2019
© Copyright 2019, ceTe Software