treebolic.view
Class Animator

java.lang.Object
  extended by javax.swing.Timer
      extended by treebolic.view.Animator
All Implemented Interfaces:
java.io.Serializable

public class Animator
extends javax.swing.Timer

Animator implements animation of tree

Author:
Bernard Bou
See Also:
Serialized Form

Nested Class Summary
(package private)  class Animator.Job
           
 
Field Summary
private static long serialVersionUID
           
private  int theStartDelay
          Start delay
private  View theView
          View
 
Fields inherited from class javax.swing.Timer
listenerList
 
Constructor Summary
Animator(View thisView, int thisTimerLapse, int thisStartDelay)
          Constructor
 
Method Summary
 boolean run(Animation thisAnimation, boolean now)
          Run animation
 
Methods inherited from class javax.swing.Timer
addActionListener, fireActionPerformed, getActionCommand, getActionListeners, getDelay, getInitialDelay, getListeners, getLogTimers, isCoalesce, isRepeats, isRunning, removeActionListener, restart, setActionCommand, setCoalesce, setDelay, setInitialDelay, setLogTimers, setRepeats, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

theView

private View theView
View


theStartDelay

private int theStartDelay
Start delay

Constructor Detail

Animator

public Animator(View thisView,
                int thisTimerLapse,
                int thisStartDelay)
Constructor

Parameters:
thisView - view
thisTimerLapse - timer lapse
thisStartDelay - start delay
Method Detail

run

public boolean run(Animation thisAnimation,
                   boolean now)
Run animation

Parameters:
thisAnimation - animation
now - whether to start now
Returns:
true if successful