KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > tweaklets > Animations


1 /*******************************************************************************
2  * Copyright (c) 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  ******************************************************************************/

11
12 package org.eclipse.ui.internal.tweaklets;
13
14 import org.eclipse.swt.widgets.Shell;
15 import org.eclipse.ui.internal.RectangleAnimationFeedbackBase;
16 import org.eclipse.ui.internal.tweaklets.Tweaklets.TweakKey;
17
18 /**
19  * Animation tweaklet base class. Create (and register) a tweaklet
20  * extension derived from this class to provide alternate animation
21  * behavior. Currently only affects animations produced by the new
22  * min / max behavior.
23  *
24  * @since 3.3
25  *
26  */

27 public abstract class Animations {
28     public static TweakKey KEY = new Tweaklets.TweakKey(Animations.class);
29
30     static {
31         Tweaklets.setDefault(Animations.KEY, new LegacyAnimations());
32     }
33
34     /** Default c'tor */
35     public Animations() {}
36     
37     /**
38      * Create and return the animation feedback you want to use.
39      *
40      * @param shell The shell that the animation will be in
41      * @return The feedback renderer to use.
42      */

43     public abstract RectangleAnimationFeedbackBase createFeedback(Shell shell);
44 }
45
Popular Tags