com.pdfjet
Class PlainText

java.lang.Object
  extended by com.pdfjet.PlainText
All Implemented Interfaces:
Drawable

public class PlainText
extends java.lang.Object
implements Drawable

Please see Example_45


Constructor Summary
PlainText(Font font, java.lang.String[] textLines)
           
 
Method Summary
 float[] drawOn(Page page)
          Draws this PlainText on the specified page.
 java.util.List<float[]> getEndOfLinePoints()
           
 PlainText setBackgroundColor(int backgroundColor)
           
 PlainText setBorderColor(int borderColor)
           
 PlainText setFontSize(float fontSize)
           
 PlainText setLeading(float leading)
           
 PlainText setLocation(float x, float y)
           
 PlainText setTextColor(int textColor)
           
 PlainText setWidth(float w)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainText

public PlainText(Font font,
                 java.lang.String[] textLines)
Method Detail

setFontSize

public PlainText setFontSize(float fontSize)

setLocation

public PlainText setLocation(float x,
                             float y)

setWidth

public PlainText setWidth(float w)

setLeading

public PlainText setLeading(float leading)

setBackgroundColor

public PlainText setBackgroundColor(int backgroundColor)

setBorderColor

public PlainText setBorderColor(int borderColor)

setTextColor

public PlainText setTextColor(int textColor)

getEndOfLinePoints

public java.util.List<float[]> getEndOfLinePoints()

drawOn

public float[] drawOn(Page page)
               throws java.lang.Exception
Draws this PlainText on the specified page.

Specified by:
drawOn in interface Drawable
Parameters:
page - the page to draw this PlainText on.
Returns:
x and y coordinates of the bottom right corner of this component.
Throws:
java.lang.Exception