treebolic.view
Class Animation

java.lang.Object
  extended by treebolic.view.Animation

public class Animation
extends java.lang.Object

Animation implements sequence of transforms in animation of tree

Author:
Bernard Bou

Field Summary
private static boolean finalTransformOnly
          Behaviour
 java.util.List<HyperTransform> theTransforms
          Sequence of transforms
 
Constructor Summary
protected Animation(java.util.List<HyperTransform> theseTransforms)
          Constructor
 
Method Summary
static Animation make(Complex thisFrom, Complex thisTo, Transformer thisTransformer, Complex thisOrientation, int theseSteps)
          Constructor
private static java.util.Vector<HyperTransform> makeTransform1(Complex thisFrom, Complex thisTo, Transformer thisTransformer, Complex thisOrientation)
          Make animation with one transform only
private static java.util.List<HyperTransform> makeTransforms(Complex thisFrom, Complex thisTo, Transformer thisTransformer, Complex thisOrientation, int theseSteps)
          Make sequence of transforms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theTransforms

public java.util.List<HyperTransform> theTransforms
Sequence of transforms


finalTransformOnly

private static final boolean finalTransformOnly
Behaviour

See Also:
Constant Field Values
Constructor Detail

Animation

protected Animation(java.util.List<HyperTransform> theseTransforms)
Constructor

Parameters:
theseTransforms - list of transforms
Method Detail

make

public static Animation make(Complex thisFrom,
                             Complex thisTo,
                             Transformer thisTransformer,
                             Complex thisOrientation,
                             int theseSteps)
Constructor

Parameters:
thisFrom - source point
thisTo - target point
thisTransformer - transform generator
thisOrientation - orientation
theseSteps - number of steps

makeTransforms

private static java.util.List<HyperTransform> makeTransforms(Complex thisFrom,
                                                             Complex thisTo,
                                                             Transformer thisTransformer,
                                                             Complex thisOrientation,
                                                             int theseSteps)
Make sequence of transforms

Parameters:
thisFrom - source point
thisTo - target point
thisTransformer - transform generator
thisOrientation - orientation
theseSteps - number of steps
Returns:
transforms or null

makeTransform1

private static java.util.Vector<HyperTransform> makeTransform1(Complex thisFrom,
                                                               Complex thisTo,
                                                               Transformer thisTransformer,
                                                               Complex thisOrientation)
Make animation with one transform only

Parameters:
thisFrom - source point
thisTo - source point
thisTransformer - transform generator
thisOrientation - orientation
Returns:
sequence of one transform