public void dispose() { stop(); _timer.removeActionListener(this); _timer = null; } }
/** * Stops flashing. */ public void stopFlashing() { clearFlashing(); getAnimator().stop(); }
public void actionPerformed(ActionEvent e) { if (_source != null) { if (_listenerList != null) { AnimatorListener[] listeners = getAnimatorListeners(); for (AnimatorListener listener : listeners) { listener.animationFrame(_source, _totalSteps, _currentStep); } } _currentStep++; if (_totalSteps != -1 && _currentStep > _totalSteps) { stop(); if (_listenerList != null) { AnimatorListener[] listeners = getAnimatorListeners(); for (AnimatorListener listener : listeners) { listener.animationEnds(_source); } } } } }