jxl.format
Class PaperSize

java.lang.Object
  |
  +--jxl.format.PaperSize

public final class PaperSize
extends java.lang.Object

Enumeration type which contains the available excel paper sizes and their codes


Inner Class Summary
private static class PaperSize.Dummy
           
 
Field Summary
static PaperSize A3
          A3
static PaperSize A4
          A4
static PaperSize A4_SMALL
          Small A4
static PaperSize A5
          A5
static PaperSize LETTER
          US Letter
private static PaperSize[] paperSizes
          The paper sizes
private static PaperSize.Dummy unknown
           
private  int val
          The excel encoding
 
Constructor Summary
private PaperSize(int v)
          Constructor
private PaperSize(int v, PaperSize.Dummy u)
          Constructor with a dummy parameter for unknown paper sizes
 
Method Summary
static PaperSize getPaperSize(int val)
          Gets the paper size for a specific value
 int getValue()
          Accessor for the internal binary value association with this paper size
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

val

private int val
The excel encoding

paperSizes

private static PaperSize[] paperSizes
The paper sizes

unknown

private static final PaperSize.Dummy unknown

A4

public static PaperSize A4
A4

A4_SMALL

public static PaperSize A4_SMALL
Small A4

A5

public static PaperSize A5
A5

LETTER

public static PaperSize LETTER
US Letter

A3

public static PaperSize A3
A3
Constructor Detail

PaperSize

private PaperSize(int v)
Constructor

PaperSize

private PaperSize(int v,
                  PaperSize.Dummy u)
Constructor with a dummy parameter for unknown paper sizes
Method Detail

getValue

public int getValue()
Accessor for the internal binary value association with this paper size
Returns:
the internal value

getPaperSize

public static PaperSize getPaperSize(int val)
Gets the paper size for a specific value
Parameters:
val - the value
Returns:
the paper size