public class RotateEvent extends VisualEvent
Constructor and Description |
---|
RotateEvent(java.lang.Object source,
java.lang.String rotaterName,
Rotation rotation,
TimeInstant occurredTime)
Constructs a RotationEvent.
|
Modifier and Type | Method and Description |
---|---|
Rotation |
getRotation()
Gets the Rotation object.
|
getOccurredTime, getTargetName
public RotateEvent(java.lang.Object source, java.lang.String rotaterName, Rotation rotation, TimeInstant occurredTime)
source
- The object on which the event initially occurred.rotaterName
- The name of the object who's rotating.rotation
- The Rotation object which represents the rotation which should be performed.duration
- The duration of the rotation. The value zero is allowed and indicates that the rotation will be set immediately without an animation.occurredTime
- The TimeInstant when the event occurred.public Rotation getRotation()