Enum PDViewerPreferences.BOUNDARY
- java.lang.Object
-
- java.lang.Enum<PDViewerPreferences.BOUNDARY>
-
- org.apache.pdfbox.pdmodel.interactive.viewerpreferences.PDViewerPreferences.BOUNDARY
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PDViewerPreferences.BOUNDARY>
- Enclosing class:
- PDViewerPreferences
public static enum PDViewerPreferences.BOUNDARY extends java.lang.Enum<PDViewerPreferences.BOUNDARY>
Enumeration containing all valid values for boundaries.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
BOUNDARY()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PDViewerPreferences.BOUNDARY
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PDViewerPreferences.BOUNDARY[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MediaBox
public static final PDViewerPreferences.BOUNDARY MediaBox
use media box as boundary.
-
CropBox
public static final PDViewerPreferences.BOUNDARY CropBox
use crop box as boundary.
-
BleedBox
public static final PDViewerPreferences.BOUNDARY BleedBox
use bleed box as boundary.
-
TrimBox
public static final PDViewerPreferences.BOUNDARY TrimBox
use trim box as boundary.
-
ArtBox
public static final PDViewerPreferences.BOUNDARY ArtBox
use art box as boundary.
-
-
Method Detail
-
values
public static PDViewerPreferences.BOUNDARY[] 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 (PDViewerPreferences.BOUNDARY c : PDViewerPreferences.BOUNDARY.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PDViewerPreferences.BOUNDARY 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 namejava.lang.NullPointerException
- if the argument is null
-
-