public class RotateInstruction extends Object implements Instruction
InstructionExecutor
to set an object's rotation to the given value.
Typically, the object would be a Page
. However, this instruction doesn't concern itself
with the target object.
A typical execution result of this instruction would be to change the rotation value in an
instance of BaseRenderSettings
to the given value.
Constructor and Description |
---|
RotateInstruction(QuadrantRotation rotation) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
QuadrantRotation |
getRotation() |
String |
getType() |
int |
hashCode() |
String |
toString() |
public static final String TYPE
public RotateInstruction(QuadrantRotation rotation)
rotation
- the rotation to apply. If this parameter is null
,
QuadrantRotation.ROT_000
will be used.public String getType()
getType
in interface Instruction
public QuadrantRotation getRotation()
null
.Copyright © 2024 levigo holding gmbh. All rights reserved.