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
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 |
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
PaperSize
public PaperSize(java.lang.String sName,
double w,
double h,
boolean inch)
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