public enum Rotation extends Enum<Rotation> implements FriendlyNamed
Enum Constant and Description |
---|
DEGREES_0 |
DEGREES_180 |
DEGREES_270 |
DEGREES_90 |
Modifier and Type | Method and Description |
---|---|
Rotation |
addRotation(Rotation rotation) |
int |
getDegrees() |
String |
getFriendlyName() |
static Rotation |
getRotation(int degrees) |
Rotation |
rotateAnticlockwise() |
Rotation |
rotateClockwise() |
static Rotation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Rotation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Rotation DEGREES_0
public static final Rotation DEGREES_90
public static final Rotation DEGREES_180
public static final Rotation DEGREES_270
public static Rotation[] values()
for (Rotation c : Rotation.values()) System.out.println(c);
public static Rotation 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 String getFriendlyName()
getFriendlyName
in interface FriendlyNamed
public int getDegrees()
public static Rotation getRotation(int degrees)
degrees
- rotation degreespublic Rotation addRotation(Rotation rotation)
rotation
- public Rotation rotateClockwise()
public Rotation rotateAnticlockwise()
Copyright © 2019 sejda. All rights reserved.