superwaba.ext.palm.io.print.irprint
Class IrPrintSettings

java.lang.Object
  |
  +--superwaba.ext.xplat.io.print.Settings
        |
        +--superwaba.ext.palm.io.print.irprint.IrPrintSettings

public class IrPrintSettings
extends Settings

This class is used to get and set various settings from the printer. Note: font faces must be: Roman, Courier, Gothic or Pretige.


Field Summary
static int AlignCenter
          Used with Alignment
static int AlignJustified
          Used with Alignment
static int AlignLeft
          Used with Alignment
static int Alignment
          Used to get or set the text alignment
static int AlignRight
          Used with Alignment
static int BorderAll
          Used with BorderSize.
static int BorderBottomMask
          Used with BorderSize.
static int BorderLeftMask
          Used with BorderSize.
static int BorderNone
          Used with BorderSize.
static int BorderRightMask
          Used with BorderSize.
static int BorderSize
          Used to get or set the border type
static int BorderTopMask
          Used with BorderSize.
static int BottomMargin
          Used with Margins. unit in 1/16 inch(es), 16 means 1 inch, 24 means 1.5 inches
static int BtConnectionBlade
          Used with CommPort
static int BtConnectionBlueV
          Used with CommPort
static int BtConnectionBT700
          Used with CommPort
static int BtConnectionMSB1
          Used with CommPort
static int BtConnectionSDIO
          Used with CommPort
static int CableConnection
          Used with CommPort
static int CodePage
          Used to get or set the code page
static int CodePage437
          Used with CodePage.
static int CodePage850
          Used with CodePage.
static int CodePage852
          Used with CodePage.
static int CodePage855
          Used with CodePage.
static int CodePage857
          Used with CodePage.
static int CodePage860
          Used with CodePage.
static int CodePage863
          Used with CodePage.
static int CodePage864
          Used with CodePage.
static int CodePage865
          Used with CodePage.
static int CodePage869
          Used with CodePage.
static int CodePagePalm
          Used with CodePage.
static int CommPort
          Used to get or set the current communication port
static int CurrentColumn
          Used to get or set the current column
static int DocColumns
          Used to get or set the number of document columns
static int FieldHeight
          this function to configure the field height for text string.
static int FontBackColor
          Used to get or set the font background color
static int FontColorBlack
          Used with FontForeColor and FontBackColor
static int FontColorBlue
          Used with FontForeColor and FontBackColor
static int FontColorCyan
          Used with FontForeColor and FontBackColor
static int FontColorGreen
          Used with FontForeColor and FontBackColor
static int FontColorMagenta
          Used with FontForeColor and FontBackColor
static int FontColorRed
          Used with FontForeColor and FontBackColor
static int FontColorWhite
          Used with FontForeColor and FontBackColor
static int FontColorYellow
          Used with FontForeColor and FontBackColor
static int FontForeColor
          Used to get or set the font foreground color
static int FontType
          Used to get or set the font type
static int FontTypeFixedFont
          Used with FontType
static int FontTypeProportionalFont
          Used with FontType
static int HdDate
          Used with SetHeaderFormat.
static int HdTime
          Used with SetHeaderFormat.
static int HeaderFormat
          Used to get or set the header format
static int IrCOMMConnection
          Used with CommPort
static int IrDAConnection
          Used with CommPort
static int LandScape
          Used with Orientation.
static int LeftMargin
          Used with Margins. unit in 1/16 inch(es), 16 means 1 inch, 24 means 1.5 inches
static int LeftMarginSize
          Used to get or set the left margin size
static int LineSpacing
          Used to get or set the line spacing
static int LineSpacing3LinesPerInch
          Used with LineSpacing.
static int LineSpacing4LinesPerInch
          Used with LineSpacing.
static int LineSpacing6LinesPerInch
          Used with LineSpacing.
static int LineSpacing8LinesPerInch
          Used with LineSpacing.
static int LineSpacingDefault
          Used with LineSpacing.
static int Margins
          Used to get or set the margins
static int NumCopies
          Used to get or set the number of copies
static int Orientation
          Used to get or set the page orientation
static int PageNumber
          Used to get or set the page number
static int PaperSize
          Used to get or set the paper size
static int PaperSizeA4
          Used with PaperSize
static int PaperSizeLetter
          Used with PaperSize
static int ParserType
          Used to get or set the parser type
static int ParserTypeIrPrintHTMLV10
          Used with ParserType.
static int ParserTypeIrPrintXHTMLV10
          Used with ParserType.
static int ParserTypeNone
          Used with ParserType.
static int Portrait
          Used with Orientation.
static int RightMargin
          Used with Margins. unit in 1/16 inch(es), 16 means 1 inch, 24 means 1.5 inches
static int RightMarginSize
          Used to get or set the right margin size
static int TCPIPConnection
          Used with CommPort
static int TopMargin
          Used with Margins. unit in 1/16 inch(es), 16 means 1 inch, 24 means 1.5 inches
static int Truncate
          1 to truncate text when printing reached the paper. 0 to wrap aroud text to next line.
static int USBConnection
          Used with CommPort
 
Method Summary
 float getFloat(int what)
          Gets a float value
 int getInt(int what)
          Gets an integer value
 java.lang.String getString(int what)
          Gets a String value
 void set(int what, float f)
          Sets a value as float
 void set(int what, int i)
          Sets a value as integer
 void set(int what, java.lang.String s)
          Sets a value as String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CurrentColumn

public static final int CurrentColumn
Used to get or set the current column

DocColumns

public static final int DocColumns
Used to get or set the number of document columns

LeftMarginSize

public static final int LeftMarginSize
Used to get or set the left margin size

RightMarginSize

public static final int RightMarginSize
Used to get or set the right margin size

BorderSize

public static final int BorderSize
Used to get or set the border type

NumCopies

public static final int NumCopies
Used to get or set the number of copies

ParserType

public static final int ParserType
Used to get or set the parser type

FontType

public static final int FontType
Used to get or set the font type

FontForeColor

public static final int FontForeColor
Used to get or set the font foreground color

FontBackColor

public static final int FontBackColor
Used to get or set the font background color

Alignment

public static final int Alignment
Used to get or set the text alignment

Margins

public static final int Margins
Used to get or set the margins

Orientation

public static final int Orientation
Used to get or set the page orientation

CodePage

public static final int CodePage
Used to get or set the code page

LineSpacing

public static final int LineSpacing
Used to get or set the line spacing

PageNumber

public static final int PageNumber
Used to get or set the page number

HeaderFormat

public static final int HeaderFormat
Used to get or set the header format

Truncate

public static final int Truncate
1 to truncate text when printing reached the paper. 0 to wrap aroud text to next line.

FieldHeight

public static final int FieldHeight
this function to configure the field height for text string. Any text longer than the field height can hold will be truncated. This is very useful for printing mail labels with fixed field height.

CommPort

public static final int CommPort
Used to get or set the current communication port

PaperSize

public static final int PaperSize
Used to get or set the paper size

FontColorWhite

public static final int FontColorWhite
Used with FontForeColor and FontBackColor

FontColorCyan

public static final int FontColorCyan
Used with FontForeColor and FontBackColor

FontColorMagenta

public static final int FontColorMagenta
Used with FontForeColor and FontBackColor

FontColorBlue

public static final int FontColorBlue
Used with FontForeColor and FontBackColor

FontColorYellow

public static final int FontColorYellow
Used with FontForeColor and FontBackColor

FontColorGreen

public static final int FontColorGreen
Used with FontForeColor and FontBackColor

FontColorRed

public static final int FontColorRed
Used with FontForeColor and FontBackColor

FontColorBlack

public static final int FontColorBlack
Used with FontForeColor and FontBackColor

ParserTypeNone

public static final int ParserTypeNone
Used with ParserType. Type of Engine Parser. Normal, default

ParserTypeIrPrintHTMLV10

public static final int ParserTypeIrPrintHTMLV10
Used with ParserType. Type of Engine Parser. IrPrint-HTML document

ParserTypeIrPrintXHTMLV10

public static final int ParserTypeIrPrintXHTMLV10
Used with ParserType. Type of Engine Parser. Future release

FontTypeFixedFont

public static final int FontTypeFixedFont
Used with FontType

FontTypeProportionalFont

public static final int FontTypeProportionalFont
Used with FontType

AlignLeft

public static final int AlignLeft
Used with Alignment

AlignRight

public static final int AlignRight
Used with Alignment

AlignCenter

public static final int AlignCenter
Used with Alignment

AlignJustified

public static final int AlignJustified
Used with Alignment

TopMargin

public static final int TopMargin
Used with Margins. unit in 1/16 inch(es), 16 means 1 inch, 24 means 1.5 inches

BottomMargin

public static final int BottomMargin
Used with Margins. unit in 1/16 inch(es), 16 means 1 inch, 24 means 1.5 inches

LeftMargin

public static final int LeftMargin
Used with Margins. unit in 1/16 inch(es), 16 means 1 inch, 24 means 1.5 inches

RightMargin

public static final int RightMargin
Used with Margins. unit in 1/16 inch(es), 16 means 1 inch, 24 means 1.5 inches

LineSpacing6LinesPerInch

public static final int LineSpacing6LinesPerInch
Used with LineSpacing.

LineSpacing8LinesPerInch

public static final int LineSpacing8LinesPerInch
Used with LineSpacing.

LineSpacing4LinesPerInch

public static final int LineSpacing4LinesPerInch
Used with LineSpacing.

LineSpacing3LinesPerInch

public static final int LineSpacing3LinesPerInch
Used with LineSpacing.

LineSpacingDefault

public static final int LineSpacingDefault
Used with LineSpacing.

Portrait

public static final int Portrait
Used with Orientation. Only implemented on HP LaserJet

LandScape

public static final int LandScape
Used with Orientation. Only implemented on HP LaserJet

CodePagePalm

public static final int CodePagePalm
Used with CodePage. Microsoft Windows 1252 (Latin I)+32 symbols

CodePage437

public static final int CodePage437
Used with CodePage. USA

CodePage850

public static final int CodePage850
Used with CodePage. Latin I

CodePage852

public static final int CodePage852
Used with CodePage. Latin II

CodePage855

public static final int CodePage855
Used with CodePage. Russian

CodePage857

public static final int CodePage857
Used with CodePage. Turkish

CodePage860

public static final int CodePage860
Used with CodePage. Portuguese

CodePage863

public static final int CodePage863
Used with CodePage. Canadian French

CodePage864

public static final int CodePage864
Used with CodePage. Arabic

CodePage865

public static final int CodePage865
Used with CodePage. Nordic

CodePage869

public static final int CodePage869
Used with CodePage. Greek

BorderTopMask

public static final int BorderTopMask
Used with BorderSize. May be or'ed to form the desired mask

BorderLeftMask

public static final int BorderLeftMask
Used with BorderSize. May be or'ed to form the desired mask

BorderBottomMask

public static final int BorderBottomMask
Used with BorderSize. May be or'ed to form the desired mask

BorderRightMask

public static final int BorderRightMask
Used with BorderSize. May be or'ed to form the desired mask

BorderAll

public static final int BorderAll
Used with BorderSize. May be or'ed to form the desired mask

BorderNone

public static final int BorderNone
Used with BorderSize. May be or'ed to form the desired mask

HdDate

public static final int HdDate
Used with SetHeaderFormat.

HdTime

public static final int HdTime
Used with SetHeaderFormat.

IrDAConnection

public static final int IrDAConnection
Used with CommPort

IrCOMMConnection

public static final int IrCOMMConnection
Used with CommPort

CableConnection

public static final int CableConnection
Used with CommPort

USBConnection

public static final int USBConnection
Used with CommPort

TCPIPConnection

public static final int TCPIPConnection
Used with CommPort

BtConnectionSDIO

public static final int BtConnectionSDIO
Used with CommPort

BtConnectionMSB1

public static final int BtConnectionMSB1
Used with CommPort

BtConnectionBT700

public static final int BtConnectionBT700
Used with CommPort

BtConnectionBlade

public static final int BtConnectionBlade
Used with CommPort

BtConnectionBlueV

public static final int BtConnectionBlueV
Used with CommPort

PaperSizeLetter

public static final int PaperSizeLetter
Used with PaperSize

PaperSizeA4

public static final int PaperSizeA4
Used with PaperSize
Method Detail

set

public void set(int what,
                java.lang.String s)
         throws NotSupportedException,
                PrinterException
Sets a value as String
Overrides:
set in class Settings

set

public void set(int what,
                int i)
         throws NotSupportedException,
                PrinterException
Sets a value as integer
Overrides:
set in class Settings

set

public void set(int what,
                float f)
         throws NotSupportedException,
                PrinterException
Sets a value as float
Overrides:
set in class Settings

getString

public java.lang.String getString(int what)
                           throws NotSupportedException,
                                  PrinterException
Gets a String value
Overrides:
getString in class Settings

getInt

public int getInt(int what)
           throws NotSupportedException,
                  PrinterException
Gets an integer value
Overrides:
getInt in class Settings

getFloat

public float getFloat(int what)
               throws NotSupportedException,
                      PrinterException
Gets a float value
Overrides:
getFloat in class Settings