public static enum PaperView.MarginType extends Enum<PaperView.MarginType>
Enum Constant and Description |
---|
CUSTOM
Used to request that custom margins shall be used for printing.
|
DEFAULT
Used to request that the default margins of the printer
shall be used for printing.
|
MINIMUM
Used to request that the minimum margins supported by the printer
shall be used for printing.
|
Modifier and Type | Method and Description |
---|---|
Printer.MarginType |
getPrinterMarginType() |
static PaperView.MarginType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PaperView.MarginType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaperView.MarginType MINIMUM
public static final PaperView.MarginType DEFAULT
public static final PaperView.MarginType CUSTOM
public static PaperView.MarginType[] values()
for (PaperView.MarginType c : PaperView.MarginType.values()) System.out.println(c);
public static PaperView.MarginType 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 Printer.MarginType getPrinterMarginType()
Copyright © 2017 Dirk Lemmermann Software & Consulting. All rights reserved.