astex
Class AnimationObject

java.lang.Object
  extended by astex.AnimationObject

public class AnimationObject
extends java.lang.Object


Field Summary
static int Command
          Constant to indicate that we are recentering.
static int MoleculeAnimation
          Constant to indicate that we are recentering.
static int Recenter
          Constant to indicate that we are recentering.
static int Rock
          Constant to indicate that we are rocking.
static int Roll
          Constant to indicate that we are rolling.
 
Constructor Summary
AnimationObject()
           
 
Method Summary
 boolean animate()
          Do the step.
 boolean executeAnimationFunction()
          Execute the actual animation function.
 int getSleepDuration()
          Get the sleep duration.
 int getSteps()
          Get the number of steps in this animation.
 void initialise()
          Initialise the animation object.
 java.lang.String processCommand(java.lang.String s)
          Introduce variables etc.
 void setAnimateThread(java.lang.Thread t)
          Set the animate thread.
 void setCommand(java.lang.String c)
          Set the command.
 void setFinishCenter(double x, double y, double z, double r, double cf, double cb)
          Set the start view.
 void setFinishMatrix(Matrix ms)
          Set the start matrix for view change.
 void setMode(int v)
          Set the current mode.
 void setMoleculeViewer(MoleculeViewer mv)
          The MoleculeViewer.
 void setRockAngle(double a)
          Set the rock angle.
 void setRockRate(double r)
          Set the rock rate.
 void setSleepDuration(int sd)
          Set the sleep duration.
 void setStartCenter(double x, double y, double z, double r, double cf, double cb)
          Set the start view.
 void setStartMatrix(Matrix ms)
          Set the start matrix for view change.
 void setSteps(int s)
          Set the number of steps.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Rock

public static final int Rock
Constant to indicate that we are rocking.

See Also:
Constant Field Values

Roll

public static final int Roll
Constant to indicate that we are rolling.

See Also:
Constant Field Values

Recenter

public static final int Recenter
Constant to indicate that we are recentering.

See Also:
Constant Field Values

Command

public static final int Command
Constant to indicate that we are recentering.

See Also:
Constant Field Values

MoleculeAnimation

public static final int MoleculeAnimation
Constant to indicate that we are recentering.

See Also:
Constant Field Values
Constructor Detail

AnimationObject

public AnimationObject()
Method Detail

setAnimateThread

public void setAnimateThread(java.lang.Thread t)
Set the animate thread.


setMoleculeViewer

public void setMoleculeViewer(MoleculeViewer mv)
The MoleculeViewer.


setMode

public void setMode(int v)
Set the current mode.


setSleepDuration

public void setSleepDuration(int sd)
Set the sleep duration.


getSleepDuration

public int getSleepDuration()
Get the sleep duration.


setRockAngle

public void setRockAngle(double a)
Set the rock angle.


setRockRate

public void setRockRate(double r)
Set the rock rate.


setSteps

public void setSteps(int s)
Set the number of steps.


getSteps

public int getSteps()
Get the number of steps in this animation.


setCommand

public void setCommand(java.lang.String c)
Set the command.


setStartCenter

public void setStartCenter(double x,
                           double y,
                           double z,
                           double r,
                           double cf,
                           double cb)
Set the start view.


setFinishCenter

public void setFinishCenter(double x,
                            double y,
                            double z,
                            double r,
                            double cf,
                            double cb)
Set the start view.


setStartMatrix

public void setStartMatrix(Matrix ms)
Set the start matrix for view change.


setFinishMatrix

public void setFinishMatrix(Matrix ms)
Set the start matrix for view change.


initialise

public void initialise()
Initialise the animation object.


executeAnimationFunction

public boolean executeAnimationFunction()
Execute the actual animation function.


animate

public boolean animate()
Do the step.


processCommand

public java.lang.String processCommand(java.lang.String s)
Introduce variables etc.