Name

animator (LzAnimator) — Changes the value of another object's attribute over time.

Synopsis

LZX: animator
JavaScript: LzAnimator
Type: Class
Access: public
Topic: LFC.Animation
Declared in: WEB-INF/lps/lfc/controllers/LaszloAnimation.lzs

Description

LzAnimator

Animators change the value of an object's attribute over a specified duration in milliseconds. For example, the following program defines an animator for a window that moves it to a position of x=100 over 1 second (1000 milliseconds).

codefalse
 <canvas>
   <window>
     <animator attribute="x" to="100" duration="1000"/>
   </window>
 </canvas>
 

See the Guide for a complete discussion of animators and animation in Laszlo applications.

Superclass Chain

node (LzNode) » animatorgroup (LzAnimatorGroup) » animator (LzAnimator)

Known Subclasses

Details

Properties (3)

attribute
<attribute name="attribute" type="token" />
public var attribute : String;
The name of the attribute whose value is animated. This attribute is required on an animator, unless the animator is inside an animatorgroup that specifies an attribute.
beginPoleDelta
<attribute name="beginPoleDelta" />
public var beginPoleDelta = 0.25;
endPoleDelta
<attribute name="endPoleDelta" />
public var endPoleDelta = 0.25;

Setters (2)

Setters for virtual properties, to be used with setAttribute. A setter may or may not have a corresponding getter method; consult the Methods list in this section.

motion
The style of motion to use for the animator. This is one of "linear", "easin" , "easeout" , and "easeboth". The default is "easeboth"
to
The destination value for the animator.

Methods (2)

setMotion()
<method name="setMotion" args="eparam" />
public function setMotion(eparam : String);
Sets the motion style for the animator.
setTo()
<method name="setTo" args="eparam" />
public function setTo(eparam : Number);
Sets the destination value for the animator

LZX Synopsis

<class name="LzAnimator" extends=" LzAnimatorGroup ">
  <attribute name=" attribute " type="token" />
  <attribute name=" beginPoleDelta " />
  <attribute name=" endPoleDelta " />
  <method name=" setMotion " args="eparam" />
  <method name=" setTo " args="eparam" />
</class>

JavaScript Synopsis

public LzAnimator extends  LzAnimatorGroup  {
  public var attribute  : String;
  public var beginPoleDelta  = 0.25;
  public var endPoleDelta  = 0.25;
  prototype public function setMotion (eparam : String);
  prototype public function setTo (eparam : Number);
}