DynamicPDF by ceTe Software

com.cete.dynamicpdf.text
Class UniversalLineBreaker

java.lang.Object
  extended by com.cete.dynamicpdf.text.LineBreaker
      extended by com.cete.dynamicpdf.text.UniversalLineBreaker

public class UniversalLineBreaker
extends LineBreaker

Represents a universal line breaker. This line breaker works well for both CJK and many other types of text.

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


Constructor Summary
UniversalLineBreaker()
           
 
Method Summary
 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 for Latin or CJK text.
 
Methods inherited from class com.cete.dynamicpdf.text.LineBreaker
getDefault, getLatin, getLines, getLines, getLines, getUniversal, setDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniversalLineBreaker

public UniversalLineBreaker()
Method Detail

getLines

public 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 for Latin or CJK text.

Specified by:
getLines in class LineBreaker
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

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.07 for Java generated on Aug 12, 2020
© Copyright 2020, ceTe Software