public static enum Printer.MarginType extends Enum<Printer.MarginType>
| Enum Constant and Description | 
|---|
| DEFAULTThis requests a default 0.75 inch margin on all sides. | 
| EQUALChoose the largest of the four hardware margins, and use that for
 all for margins, so that the margins are equal on all sides. | 
| EQUAL_OPPOSITESSimilar to  EQUAL, but it chooses the larger of
 the left/right hardware margins and top/bottom hardware margins
 separately, so that the top and bottom margins are equal, and
 the left and right margins are equal. | 
| HARDWARE_MINIMUMRequest margins are set to be the smallest on each side that
 the hardware allows. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Printer.MarginType | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static Printer.MarginType[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final Printer.MarginType DEFAULT
public static final Printer.MarginType HARDWARE_MINIMUM
This is is also useful for an application that wants to know this so it can construct a new PageLayout that fits within these margins.
public static final Printer.MarginType EQUAL
public static final Printer.MarginType EQUAL_OPPOSITES
EQUAL, but it chooses the larger of
 the left/right hardware margins and top/bottom hardware margins
 separately, so that the top and bottom margins are equal, and
 the left and right margins are equal.public static Printer.MarginType[] values()
for (Printer.MarginType c : Printer.MarginType.values()) System.out.println(c);
public static Printer.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 nullCopyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.