com.partnersoft.printing
Enum PaperSize
java.lang.Object
java.lang.Enum<PaperSize>
com.partnersoft.printing.PaperSize
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<PaperSize>
public enum PaperSize
- extends java.lang.Enum<PaperSize>
Standard paper sizes for printing and plotting.
Copyright 2008 Partner Software, Inc.
- Version:
- $Id$
- Author:
- Paul Reavis
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
LETTER
public static final PaperSize LETTER
LEGAL
public static final PaperSize LEGAL
A_SIZE
public static final PaperSize A_SIZE
B_SIZE
public static final PaperSize B_SIZE
C_SIZE
public static final PaperSize C_SIZE
D_SIZE
public static final PaperSize D_SIZE
E_SIZE
public static final PaperSize E_SIZE
values
public static PaperSize[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (PaperSize c : PaperSize.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PaperSize valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
forName
public static PaperSize forName(java.lang.String name)
getName
public java.lang.String getName()
getWidthInches
public double getWidthInches()
getHeightInches
public double getHeightInches()
getMarginInches
public double getMarginInches()
getWidthCentimeters
public double getWidthCentimeters()
getHeightCentimeters
public double getHeightCentimeters()
getMarginCentimeters
public double getMarginCentimeters()
getWidthPoints
public double getWidthPoints()
getHeightPoints
public double getHeightPoints()
getMarginPoints
public double getMarginPoints()
getWidthPixels
public double getWidthPixels()
getHeightPixels
public double getHeightPixels()
getMarginPixels
public double getMarginPixels()