枚举常量和说明 |
---|
CLOCKWISE
按顺时针方向旋转90度。
|
CLOCKWISE_135
按顺时针方向旋转135度。
|
CLOCKWISE_45
按顺时针方向旋转45度。
|
COUNTER_CLOCKWISE
按逆时针方向旋转90度。
|
COUNTER_CLOCKWISE_45
按逆时针方向旋转45度。
|
FLIPPED
倒置翻转180度。
|
FLIPPED_45
倒置翻转180+45度。
|
NONE
无旋转。
|
限定符和类型 | 方法和说明 |
---|---|
Rotation |
rotateClockwise()
按顺时针方向旋转90度。
|
Rotation |
rotateCounterClockwise()
按逆时针方向旋转90度。
|
static Rotation |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Rotation[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Rotation NONE
public static final Rotation CLOCKWISE_45
public static final Rotation CLOCKWISE
public static final Rotation CLOCKWISE_135
public static final Rotation FLIPPED
public static final Rotation FLIPPED_45
public static final Rotation COUNTER_CLOCKWISE
public static final Rotation COUNTER_CLOCKWISE_45
public static Rotation[] values()
for (Rotation c : Rotation.values()) System.out.println(c);
public static Rotation valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public Rotation rotateClockwise()
原文:Rotate clockwise by 90 degrees.
public Rotation rotateCounterClockwise()
原文:Rotate counter-clockwise by 90 degrees.