com.java4less.textprinter
Class PaperSize

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

public class PaperSize
extends java.lang.Object

size of the paper to be used


Field Summary
static PaperSize A3
           
static PaperSize A4
           
static PaperSize EXECUTIVE
           
static PaperSize LEDGER
           
static PaperSize LEGAL
           
static PaperSize LETTER
           
 
Constructor Summary
PaperSize(java.lang.String sName, double w, double h, boolean inch)
           
 
Method Summary
 double getHeight()
          get height in inches
 java.lang.String getName()
          get name of the paper size
 double getWidth()
          get width in inches
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

A4

public static PaperSize A4

LETTER

public static PaperSize LETTER

EXECUTIVE

public static PaperSize EXECUTIVE

LEGAL

public static PaperSize LEGAL

A3

public static PaperSize A3

LEDGER

public static PaperSize LEDGER
Constructor Detail

PaperSize

public PaperSize(java.lang.String sName,
                 double w,
                 double h,
                 boolean inch)
Method Detail

getWidth

public double getWidth()
get width in inches


getHeight

public double getHeight()
get height in inches


getName

public java.lang.String getName()
get name of the paper size