com.java4less.rfax
Class TextFaxProducer

java.lang.Object
  extended by com.java4less.rfax.TextFaxProducer
All Implemented Interfaces:
FaxProducer

public class TextFaxProducer
extends java.lang.Object
implements FaxProducer

creates a fax using a string as data source. See RFax_help.html for an example.


Field Summary
 int leftMargin
          number od characters used as left margin
 int linesPage
          number of lines per page
 java.awt.Image pageImage
          image
 java.lang.String text
          text to be sent.
 java.awt.Font textFont
          font to be used
 int topMargin
          Number of lines used as top margin
 
Constructor Summary
TextFaxProducer()
           
 
Method Summary
 java.awt.Image getFaxPage(int page)
          get page, faxProducer
 void prepare()
          call this method before sending the fax.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

textFont

public java.awt.Font textFont
font to be used


text

public java.lang.String text
text to be sent. Use "\n" to force new lines


linesPage

public int linesPage
number of lines per page


topMargin

public int topMargin
Number of lines used as top margin


leftMargin

public int leftMargin
number od characters used as left margin


pageImage

public java.awt.Image pageImage
image

Constructor Detail

TextFaxProducer

public TextFaxProducer()
Method Detail

getFaxPage

public java.awt.Image getFaxPage(int page)
get page, faxProducer

Specified by:
getFaxPage in interface FaxProducer

prepare

public void prepare()
call this method before sending the fax. It will create the images for rfax.