/** * Checks if it is flashing. * * @return true if flashing. */ public boolean isFlashing() { return getAnimator().isRunning(); }
/** * Sets the interval, in ms. If the flashing is running, the new interval will take effect immediately. By default, * it is 300 ms. * * @param interval the new interval. */ public void setInterval(int interval) { int old = _interval; if (old != interval) { _interval = interval; getAnimator().setDelay(interval); } }
/** * Starts flashing. */ public void startFlashing() { clearFlashing(); getAnimator().start(); }
/** * Stops flashing. */ public void stopFlashing() { clearFlashing(); getAnimator().stop(); }