com.extjs.gxt.ui.client.fx
Class BaseEffect

java.lang.Object
  extended by com.extjs.gxt.ui.client.fx.BaseEffect
All Implemented Interfaces:
Effect
Direct Known Subclasses:
Move, MultiEffect, SingleStyleEffect

public class BaseEffect
extends java.lang.Object
implements Effect

Base Effect implementation for elements.


Field Summary
protected  El el
           
 
Constructor Summary
protected BaseEffect(El el)
           
 
Method Summary
static void blink(El el, FxConfig config, int interval)
           
static void fadeIn(El el, FxConfig config)
           
static void fadeOut(El el, FxConfig config)
           
protected  double getValue(double from, double to, double progress)
           
 void onCancel()
          Fires after the effect is cancelled.
 void onComplete()
          Fires after the effect is complete.
 void onStart()
          Fires after the effect is started.
 void onUpdate(double progress)
          Fires after the effect is updated.
static void scroll(El el, FxConfig config, Style.ScrollDir direction, int value)
           
static void slideIn(El el, FxConfig config, Style.Direction direction)
           
static void slideOut(El el, FxConfig config, Style.Direction direction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

el

protected El el
Constructor Detail

BaseEffect

protected BaseEffect(El el)
Method Detail

blink

public static void blink(El el,
                         FxConfig config,
                         int interval)

fadeIn

public static void fadeIn(El el,
                          FxConfig config)

fadeOut

public static void fadeOut(El el,
                           FxConfig config)

scroll

public static void scroll(El el,
                          FxConfig config,
                          Style.ScrollDir direction,
                          int value)

slideIn

public static void slideIn(El el,
                           FxConfig config,
                           Style.Direction direction)

slideOut

public static void slideOut(El el,
                            FxConfig config,
                            Style.Direction direction)

onCancel

public void onCancel()
Description copied from interface: Effect
Fires after the effect is cancelled.

Specified by:
onCancel in interface Effect

onComplete

public void onComplete()
Description copied from interface: Effect
Fires after the effect is complete.

Specified by:
onComplete in interface Effect

onStart

public void onStart()
Description copied from interface: Effect
Fires after the effect is started.

Specified by:
onStart in interface Effect

onUpdate

public void onUpdate(double progress)
Description copied from interface: Effect
Fires after the effect is updated.

Specified by:
onUpdate in interface Effect
Parameters:
progress - the progress betwee 0 and 1

getValue

protected double getValue(double from,
                          double to,
                          double progress)