public enum PaperSize extends Enum<PaperSize>
Example usage:
try (Comparer comparer = new Comparer(sourceFile)) {
comparer.add(targetFile);
CompareOptions compareOptions = new CompareOptions();
compareOptions.setPaperSize(PaperSize.A6);
comparer.compare(resultFile, compareOptions);
}
Comparer,
CompareOptions| Enum Constant and Description |
|---|
A0
Standard paper size A0 (841mm x 1189mm).
|
A1
Standard paper size A1 (594mm x 841mm).
|
A2
Standard paper size A2 (420mm x 594mm).
|
A3
Standard paper size A3 (297mm x 420mm).
|
A4
Standard paper size A4 (210mm x 297mm).
|
A5
Standard paper size A5 (148mm x 210mm).
|
A6
Standard paper size A6 (105mm x 148mm).
|
A7
Standard paper size A7 (74mm x 105mm).
|
A8
Standard paper size A8 (52mm x 74mm).
|
DEFAULT
Default paper size.
|
| Modifier and Type | Method and Description |
|---|---|
static PaperSize |
fromString(String toStringValue)
Parses string representation of PaperSize to get the enum constant.
|
String |
toString()
String representation of PaperSize.
|
static PaperSize |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PaperSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaperSize A0
Standard paper size A0 (841mm x 1189mm).
public static final PaperSize A1
Standard paper size A1 (594mm x 841mm).
public static final PaperSize A2
Standard paper size A2 (420mm x 594mm).
public static final PaperSize A3
Standard paper size A3 (297mm x 420mm).
public static final PaperSize A4
Standard paper size A4 (210mm x 297mm).
public static final PaperSize A5
Standard paper size A5 (148mm x 210mm).
public static final PaperSize A6
Standard paper size A6 (105mm x 148mm).
public static final PaperSize A7
Standard paper size A7 (74mm x 105mm).
public static final PaperSize A8
Standard paper size A8 (52mm x 74mm).
public static final PaperSize DEFAULT
Default paper size.
public static PaperSize fromString(String toStringValue)
Parses string representation of PaperSize to get the enum constant.
toStringValue - The string representation of PaperSizeIllegalArgumentException - if string is not one of PaperSize valuespublic String toString()
String representation of PaperSize.
public static PaperSize valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static PaperSize[] values()
for (PaperSize c : PaperSize.values()) System.out.println(c);
Copyright © 2024. All rights reserved.