public static enum BasicPaperFormat.Orientation extends java.lang.Enum<BasicPaperFormat.Orientation>
Enum Constant and Description |
---|
Landscape |
Portrait |
Seascape |
UpsideDown |
Modifier and Type | Method and Description |
---|---|
int |
getDegrees()
Get the rotation in degrees, measured CCW.
|
java.lang.String |
toString()
Get the name of this orientation.
|
static BasicPaperFormat.Orientation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BasicPaperFormat.Orientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BasicPaperFormat.Orientation Portrait
public static final BasicPaperFormat.Orientation Landscape
public static final BasicPaperFormat.Orientation UpsideDown
public static final BasicPaperFormat.Orientation Seascape
public static BasicPaperFormat.Orientation[] values()
for (BasicPaperFormat.Orientation c : BasicPaperFormat.Orientation.values()) System.out.println(c);
public static BasicPaperFormat.Orientation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getDegrees()
@NotNull public java.lang.String toString()
toString
in class java.lang.Enum<BasicPaperFormat.Orientation>