| java.lang.Object com.jidesoft.swing.Animator
Animator | public class Animator implements ActionListener(Code) | | An ActionListener with a timer. It is used to
simplify the animation of all kind of sliding windows.
|
Constructor Summary | |
public | Animator(Component source) Creates an animator for source with initDelay 50 ms, each step delays 10 ms and total 10 steps. | public | Animator(Component source, int initDelay, int delay, int totalSteps) Creates an animator for source.
Parameters: source - the source for this animator. Parameters: initDelay - the initial delay before timer starts. Parameters: delay - the delay of the timer Parameters: totalSteps - the number of steps. |
Animator | public Animator(Component source)(Code) | | Creates an animator for source with initDelay 50 ms, each step delays 10 ms and total 10 steps.
Parameters: source - the source for this animator. |
Animator | public Animator(Component source, int initDelay, int delay, int totalSteps)(Code) | | Creates an animator for source.
Parameters: source - the source for this animator. Parameters: initDelay - the initial delay before timer starts. Parameters: delay - the delay of the timer Parameters: totalSteps - the number of steps. If -1, it means this animator will never stop until Animator.stop() is called. |
createTimer | protected Timer createTimer(int delay, ActionListener listener)(Code) | | Creates the timer.
Parameters: delay - the delay between each step, in ms. Parameters: listener - the action listener associated with the timer. the timer |
dispose | public void dispose()(Code) | | |
getAnimatorListener | public AnimatorListener getAnimatorListener()(Code) | | Gets the AnimatorListener so that you can custom the behavior of the animator.
the listener |
interrupt | public void interrupt()(Code) | | Interrupts the animator. The counter is not reset in this case.
|
isRunning | public boolean isRunning()(Code) | | If the animator is running, returns true. Otherwise, returns false.
true if animator is running. Otherwise, returns false. |
setAnimatorListener | public void setAnimatorListener(AnimatorListener listener)(Code) | | Sets the AnimatorListener so that you can custom the behavior of the animator.
Parameters: listener - the AnimatorListener . |
setDelay | public void setDelay(int delay)(Code) | | |
start | public void start()(Code) | | Starts the animator.
|
stop | public void stop()(Code) | | Stop the animator and reset the counter.
|
|
|