com.java4less.textprinter
Class JobProperties

java.lang.Object
  |
  +--com.java4less.textprinter.JobProperties

public class JobProperties
extends java.lang.Object

this class stores information about the printer job. It stored global information for th job like, page size and margins.


Field Summary
 boolean autoChartSetSelection
          allow automatic change of character set if the characters to be printed cannot be found in the defined set.
 int bottomMargin
          bottom margin (number of lines)
 int cols
          size of the page, columns
 double columnWidth
          wide of columns in inches.
 boolean condensed
          use condensed charaters
 boolean draftQuality
          printing quality
 java.lang.String interspacing
          line interspacing.
 java.lang.String javaEncoding
          jave encoding to be used if no character set conversion is performed
 boolean landscape
          landscape format, usually only laser printers support this.
 int leftMargin
          left margin (number of columns)
 PaperSize paperSize
          paper size, only required if the pitch and line spacing must be set automatically.
 double pitch
          Size of the characters 10, 12 or 15 (characters/inch).
 boolean proportional
          proportional printing.
 int resolution
          printer resolution, only required if the pitch and line spacing must be set automatically.
 int rightMargin
          right margin (number of columns)
 int rows
          size of the page, lines
 int topMargin
          top margin (number of lines)
 java.lang.String userDefinedCommands
          any user defined control commands to be executed at the beginning of the job
 
Constructor Summary
JobProperties()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rows

public int rows
size of the page, lines


cols

public int cols
size of the page, columns


topMargin

public int topMargin
top margin (number of lines)


bottomMargin

public int bottomMargin
bottom margin (number of lines)


leftMargin

public int leftMargin
left margin (number of columns)


rightMargin

public int rightMargin
right margin (number of columns)


interspacing

public java.lang.String interspacing
line interspacing. This has an effect on the number of lines in the page. The default empty string will use the printer's default value. You can also let TexPrinter calculate the line spacing based on the desired number of lines and the page height. The format of the line spacing must be "1/8" (8 lines per inch), "1/6", "1/10", "12/72" .....


landscape

public boolean landscape
landscape format, usually only laser printers support this.


draftQuality

public boolean draftQuality
printing quality


pitch

public double pitch
Size of the characters 10, 12 or 15 (characters/inch). This has an effect on the number of columns the page. Default value is -1 will use the printer's default value. You can also let TexPrinter calculate the pitch based on the desired number of colums and the page width.


columnWidth

public double columnWidth
wide of columns in inches. This has an effect on the number of columns the page. Default value is -1 will use the printer's default value. You can also let TexPrinter calculate the column width based on the desired number of colums and the page width.


autoChartSetSelection

public boolean autoChartSetSelection
allow automatic change of character set if the characters to be printed cannot be found in the defined set.


userDefinedCommands

public java.lang.String userDefinedCommands
any user defined control commands to be executed at the beginning of the job


resolution

public int resolution
printer resolution, only required if the pitch and line spacing must be set automatically.


paperSize

public PaperSize paperSize
paper size, only required if the pitch and line spacing must be set automatically.


proportional

public boolean proportional
proportional printing. If false all characters will have the same fixed width.


condensed

public boolean condensed
use condensed charaters


javaEncoding

public java.lang.String javaEncoding
jave encoding to be used if no character set conversion is performed

Constructor Detail

JobProperties

public JobProperties()