public class PaperSize extends Object
Modifier and Type | Field and Description |
---|---|
static PaperSize |
A3 |
static PaperSize |
A4 |
static PaperSize |
A5 |
static PaperSize |
B4 |
static PaperSize |
B5 |
static PaperSize |
CUSTOM |
static PaperSize |
DEFAULT |
static PaperSize |
EXECUTIVE |
static PaperSize |
LEGAL |
static PaperSize |
LETTER |
Constructor and Description |
---|
PaperSize(double widthInInches,
double heightInInches) |
PaperSize(String name,
double widthInInches,
double heightInInches) |
Modifier and Type | Method and Description |
---|---|
double |
getHeightInInches() |
String |
getName() |
static PaperSize |
getPaperSize(double widthInches,
double heightInches)
Returns the paper size of the corresponding width/height with error range 2% or null if there is no close size.
|
static List<PaperSize> |
getPredefined() |
static PaperSize |
getPredefinedByName(String name) |
double |
getWidthInInches() |
String |
toString() |
public static PaperSize DEFAULT
public static PaperSize CUSTOM
public static PaperSize LETTER
public static PaperSize LEGAL
public static PaperSize EXECUTIVE
public static PaperSize A3
public static PaperSize A4
public static PaperSize A5
public static PaperSize B4
public static PaperSize B5
public PaperSize(String name, double widthInInches, double heightInInches)
public PaperSize(double widthInInches, double heightInInches)
public String getName()
public double getWidthInInches()
public double getHeightInInches()
public static PaperSize getPaperSize(double widthInches, double heightInches)
widthInches
- heightInches
- Copyright © Asprise Software. All Rights Reserved. Please visit the product page at asprise.com