RelativeMove

A double behaviour that changes linearly from a starting value to an ending value over a fixed time period. When the behaviour completes, an AnimationEvent is announced and the final value is copied to the initial value, so that when the behaviour is restarted with a different final value, the value changes from the previous final value. This allows an object to be easily moved from point to point around the screen, for example.

Features

XML Element XML Type Java Class Activity
behaviour toMove uk.ac.ic.doc.scenebeans.behaviour.ToMove 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.