01: /*******************************************************************************
02: * Copyright (c) 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: ******************************************************************************/package org.eclipse.ui.internal.tweaklets;
11:
12: import org.eclipse.swt.widgets.Shell;
13: import org.eclipse.ui.internal.RectangleAnimationFeedbackBase;
14: import org.eclipse.ui.internal.tweaklets.Tweaklets.TweakKey;
15:
16: /**
17: * Animation tweaklet base class. Create (and register) a tweaklet
18: * extension derived from this class to provide alternate animation
19: * behavior. Currently only affects animations produced by the new
20: * min / max behavior.
21: *
22: * @since 3.3
23: *
24: */
25: public abstract class Animations {
26: public static TweakKey KEY = new Tweaklets.TweakKey(
27: Animations.class);
28:
29: static {
30: Tweaklets.setDefault(Animations.KEY, new LegacyAnimations());
31: }
32:
33: /** Default c'tor */
34: public Animations() {
35: }
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(
44: Shell shell);
45: }
|