net.java.balloontip.utils
Class FadingUtils

java.lang.Object
  extended by net.java.balloontip.utils.FadingUtils

public final class FadingUtils
extends java.lang.Object

A utility class for adding simple linear fade-in/out effects to balloon tips

Author:
Tim Molderez

Method Summary
static void fadeInBalloon(BalloonTip balloon, java.awt.event.ActionListener onStop, int time, int refreshRate)
          Execute a fade-in effect on a balloon tip
static void fadeOutBalloon(BalloonTip balloon, java.awt.event.ActionListener onStop, int time, int refreshRate)
          Execute a fade-in effect on a balloon tip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fadeInBalloon

public static void fadeInBalloon(BalloonTip balloon,
                                 java.awt.event.ActionListener onStop,
                                 int time,
                                 int refreshRate)
Execute a fade-in effect on a balloon tip

Parameters:
balloon - the balloon tip
onStop - this action listener is triggered once the effect has stopped
time - the duration of the fade-in effect (in ms)
refreshRate - at how many frames-per-second should the effect run

fadeOutBalloon

public static void fadeOutBalloon(BalloonTip balloon,
                                  java.awt.event.ActionListener onStop,
                                  int time,
                                  int refreshRate)
Execute a fade-in effect on a balloon tip

Parameters:
balloon - the balloon tip
onStop - this action listener is triggered once the effect has stopped
time - the duration of the fade-out effect (in ms)
refreshRate - at how many frames-per-second should the effect run


http://balloontip.java.net/