DynamicPDF by ceTe Software

com.cete.dynamicpdf.text
Class UniversalTextLineList

java.lang.Object
  extended by com.cete.dynamicpdf.text.TextLineList
      extended by com.cete.dynamicpdf.text.UniversalTextLineList

public class UniversalTextLineList
extends TextLineList

Represents a universal text line list.

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


Constructor Summary
UniversalTextLineList(char[] text, int start, int length, float width, float height, Font font, float fontSize)
          Initializes a new instance of the UniversalTextLineList class.
 
Method Summary
protected  boolean calculateLines(com.cete.dynamicpdf.text.LineCalculationMode mode)
          Calculates the lines.
 TextLineList getOverflow(float width, float height)
          Returns the overflow lines for the text line list.
 java.lang.String getOverflowText()
          Returns the overflow text of the text line list.
 boolean hasOverflow()
          Returns a value indicating if the text line list has overflow lines.
protected  void initializeLines(boolean newParagraph)
          Initializes the text line list.
 
Methods inherited from class com.cete.dynamicpdf.text.TextLineList
add, draw, draw, draw, draw, getAutoLeading, getBaseLine, getCleanParagraphBreaks, getEnd, getFont, getFontSize, getHeight, getkerningEnabled, getLeading, getLineCount, getLineCount, getMaximumWidth, getParagraphIndent, getParagraphSpacing, getRequiredHeight, getStart, getText, getTextArray, getTextHeight, getTextHeight, getTextLine, getVisibleLineCount, getWidth, setAutoLeading, setCleanParagraphBreaks, setEnd, setFont, setFontSize, setHeight, setkerningEnabled, setLeading, setLines, setParagraphIndent, setParagraphSpacing, setStart, setText, setText, setTextArray, setWidth, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniversalTextLineList

public UniversalTextLineList(char[] text,
                             int start,
                             int length,
                             float width,
                             float height,
                             Font font,
                             float fontSize)
Initializes a new instance of the UniversalTextLineList class.

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.
See Also:
Font
Method Detail

getOverflowText

public java.lang.String getOverflowText()
Returns the overflow text of the text line list.

Specified by:
getOverflowText in class TextLineList
Returns:
Overflow text of the line list.

hasOverflow

public boolean hasOverflow()
Returns a value indicating if the text line list has overflow lines.

Specified by:
hasOverflow in class TextLineList
Returns:
A value indicating if the line list has overflow text.

getOverflow

public TextLineList getOverflow(float width,
                                float height)
Returns the overflow lines for the text line list.

Specified by:
getOverflow in class TextLineList
Parameters:
width - Width of the returned text line list.
height - Height of the returned text line list.
Returns:
A TextLineList containing the overflow lines.
See Also:
TextLineList

initializeLines

protected void initializeLines(boolean newParagraph)
Initializes the text line list.

Specified by:
initializeLines in class TextLineList
Parameters:
newParagraph - Specifies if the first line in the list is a new paragraph.

calculateLines

protected boolean calculateLines(com.cete.dynamicpdf.text.LineCalculationMode mode)
Calculates the lines.

Specified by:
calculateLines in class TextLineList
Parameters:
mode - Line calculation mode to use.
Returns:
A value indicating if all the lines were calculated.

DynamicPDF by ceTe Software

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