001: /*
002: * GWT-Ext Widget Library
003: * Copyright(c) 2007-2008, GWT-Ext.
004: * licensing@gwt-ext.com
005: *
006: * http://www.gwt-ext.com/license
007: */
008: package com.gwtext.client.animation;
009:
010: /**
011: * Easing animation constants.
012: *
013: * @see com.gwtext.client.core.AnimationConfig
014: */
015: public class Easing {
016: private String method;
017:
018: private Easing(String method) {
019: this .method = method;
020: }
021:
022: public String getMethod() {
023: return method;
024: }
025:
026: /**
027: * Backtracks slightly, then reverses direction, overshoots end, then reverses and comes back to end.
028: */
029: public static Easing BACK_BOTH = new Easing("backBoth");
030:
031: /**
032: * Backtracks slightly, then reverses direction and moves to end.
033: */
034: public static Easing BACK_IN = new Easing("backIn");
035:
036: /**
037: * Overshoots end, then reverses and comes back to end.
038: */
039: public static Easing BACK_OUT = new Easing("backOut");
040:
041: /**
042: * Bounces off start and end.
043: */
044: public static Easing BOUNCE_BOTH = new Easing("bounceBoth");
045:
046: /**
047: * Bounce off of start.
048: */
049: public static Easing BOUNCE_IN = new Easing("bounceIn");
050:
051: /**
052: * Bounces off end.
053: */
054: public static Easing BOUNCE_OUT = new Easing("bounceOut");
055:
056: /**
057: * Begins slowly and decelerates towards end. (quadratic)
058: */
059: public static Easing EASE_BOTH = new Easing("easeBoth");
060:
061: /**
062: * Begins slowly and decelerates towards end. (quartic)
063: */
064: public static Easing EASE_BOTH_STRONG = new Easing("easeBothStrong");
065:
066: /**
067: * Begins slowly and accelerates towards end. (quadratic)
068: */
069: public static Easing EASE_IN = new Easing("easeIn");
070:
071: /**
072: * Begins slowly and accelerates towards end. (quartic)
073: */
074: public static Easing EASE_IN_STRONG = new Easing("easeInStrong");
075:
076: /**
077: * Uniform speed between points.
078: */
079: public static Easing EASE_NONE = new Easing("easeNone");
080:
081: /**
082: * Begins quickly and decelerates towards end. (quadratic)
083: */
084: public static Easing EASE_OUT = new Easing("easeOut");
085:
086: /**
087: * Begins quickly and decelerates towards end. (quartic)
088: */
089: public static Easing EASE_OUT_STRONG = new Easing("easeOutStrong");
090:
091: /**
092: * Snap both elastic effect.
093: */
094: public static Easing ELASTIC_BOTH = new Easing("elasticBoth");
095:
096: /**
097: * Snap in elastic effect.
098: */
099: public static Easing ELASTIC_IN = new Easing("elasticIn");
100:
101: /**
102: * Snap out elastic effect.
103: */
104: public static Easing ELASTIC_OUT = new Easing("elasticOut");
105: }
|