superwaba.ext.xplat.io.print.pboy
Class PBoySettings

java.lang.Object
  |
  +--superwaba.ext.xplat.io.print.Settings
        |
        +--superwaba.ext.xplat.io.print.pboy.PBoySettings

public class PBoySettings
extends Settings

This class is used to get and set various settings from the printer.


Field Summary
static int DPI_X
          The argument is an integer.
static int DPI_Y
          The argument is an integer.
static int GRAPHIC_CAPS
          The argument is an integer.
static int IS_GRAPHICAL
          The argument is an integer.
static int IS_RASTER
          The argument is an integer.
static java.lang.String licenseKey
          Important!
static int MAX_LINES_PER_PAGE
          The argument is an integer.
static int PAGE_HEIGHT
          The argument is an integer.
static int PAGE_ORIENTATION
          The argument is an integer: ORIENTATION_PORTRAIT or ORIENTATION_LANDSCAPE.
static int PAGE_ORIENTATION_LANDSCAPE
          Value for PAGE_ORIENTATION
static int PAGE_ORIENTATION_PORTRAIT
          Value for PAGE_ORIENTATION
static int PAGE_WIDTH
          The argument is an integer.
static int PAPER_TYPE
          The argument is an integer.
static int PAPER_TYPE_A4
          Value for PAPER_TYPE
static int PAPER_TYPE_LEGAL
          Value for PAPER_TYPE
static int PAPER_TYPE_LETTER
          Value for PAPER_TYPE
static int PAPER_TYPE_ROLL
          Value for PAPER_TYPE
static int TAB_SIZE
          The argument is an integer.
 
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

licenseKey

public static java.lang.String licenseKey
Important! After you register the PrintBoy software, you must assign this String with the purchased license key. While trying, keep it as the default value, which will work during 60 days.

MAX_LINES_PER_PAGE

public static final int MAX_LINES_PER_PAGE
The argument is an integer. Used in text mode. write only

TAB_SIZE

public static final int TAB_SIZE
The argument is an integer. Used in text mode. read write

PAGE_WIDTH

public static final int PAGE_WIDTH
The argument is an integer. Used in Graphics mode. read only

PAGE_HEIGHT

public static final int PAGE_HEIGHT
The argument is an integer. Used in Graphics mode. read only

PAGE_ORIENTATION

public static final int PAGE_ORIENTATION
The argument is an integer: ORIENTATION_PORTRAIT or ORIENTATION_LANDSCAPE. Used in Graphics mode. write only

PAPER_TYPE

public static final int PAPER_TYPE
The argument is an integer. Used in Graphics mode. write only

DPI_X

public static final int DPI_X
The argument is an integer. Used in Graphics mode. read only

DPI_Y

public static final int DPI_Y
The argument is an integer. Used in Graphics mode. read only

IS_GRAPHICAL

public static final int IS_GRAPHICAL
The argument is an integer. Used in Graphics mode. read only

IS_RASTER

public static final int IS_RASTER
The argument is an integer. Used in Graphics mode. read only

GRAPHIC_CAPS

public static final int GRAPHIC_CAPS
The argument is an integer. Used in Graphics mode. read only

PAGE_ORIENTATION_PORTRAIT

public static final int PAGE_ORIENTATION_PORTRAIT
Value for PAGE_ORIENTATION

PAGE_ORIENTATION_LANDSCAPE

public static final int PAGE_ORIENTATION_LANDSCAPE
Value for PAGE_ORIENTATION

PAPER_TYPE_ROLL

public static final int PAPER_TYPE_ROLL
Value for PAPER_TYPE

PAPER_TYPE_LETTER

public static final int PAPER_TYPE_LETTER
Value for PAPER_TYPE

PAPER_TYPE_A4

public static final int PAPER_TYPE_A4
Value for PAPER_TYPE

PAPER_TYPE_LEGAL

public static final int PAPER_TYPE_LEGAL
Value for PAPER_TYPE
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