RelativeMove

A double behaviour that moves linearly from a starting value to a final value over a fixed time period. The final value is defined by a delta from the starting value. An AnimationEvent is announced when the behaviour completes.

Features

XML Element XML Type Java Class Activity
behaviour relativeMove uk.ac.ic.doc.scenebeans.behaviour.RelativeMove finite

Properties

Name Type Default Value Getter Method Setter Method Description
from double 0.0 getFrom setFrom The initial value.
delta double 0.0 getDelta setDelta The total change in the value to be performed by the behaviour over the duration.
duration double 1.0 getDuration setDuration The duration of the behaviour.
value double 0.0 getValue read only The current value of the behaviour.
activityName double 0.0 getActivityName setActivityName The name of the behaviour, as announced in AnimationEvents when the behaviour completes. In XML documents, this property is usually specified by the name attribute of the <behaviour> element.
finite boolean true isFinite read only Returns whether the activity is finite. It is, so this always returns true.

Behaviour Facets

Name Behaviour Type Getter Method Description
n/a double n/a This behaviour is not facetted.