org.eclipse.swt.custom
Class AnimatedProgress

java.lang.Object
  |
  +--org.eclipse.swt.widgets.Widget
        |
        +--org.eclipse.swt.widgets.Control
              |
              +--org.eclipse.swt.widgets.Scrollable
                    |
                    +--org.eclipse.swt.widgets.Composite
                          |
                          +--org.eclipse.swt.widgets.Canvas
                                |
                                +--org.eclipse.swt.custom.AnimatedProgress
All Implemented Interfaces:
Drawable

Deprecated. As of Eclipse 2.1, use ProgressBar with the style SWT.INDETERMINATE
Styles:
VERTICAL, HORIZONTAL, BORDER

public class AnimatedProgress
extends Canvas

Unsafe: A control for showing progress feedback for a long running operation.


Field Summary
private  boolean active
          Deprecated.  
private static int DEFAULT_HEIGHT
          Deprecated.  
private static int DEFAULT_WIDTH
          Deprecated.  
private  int orientation
          Deprecated.  
private  boolean showBorder
          Deprecated.  
private  boolean showStripes
          Deprecated.  
private static int SLEEP
          Deprecated.  
private  int value
          Deprecated.  
 
Fields inherited from class org.eclipse.swt.widgets.Canvas
 
Fields inherited from class org.eclipse.swt.widgets.Composite
 
Fields inherited from class org.eclipse.swt.widgets.Scrollable
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Fields inherited from class org.eclipse.swt.widgets.Widget
 
Constructor Summary
AnimatedProgress(Composite parent, int style)
          Deprecated. Suppressed: Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.
 
Method Summary
private static int checkStyle(int style)
          Deprecated.  
 void clear()
          Deprecated. Suppressed: Stop the animation if it is not already stopped and reset the presentation to a blank appearance.
 Point computeSize(int wHint, int hHint, boolean changed)
          Deprecated. Suppressed:
private  void drawBevelRect(GC gc, int x, int y, int w, int h, Color topleft, Color bottomright)
          Deprecated.  
private  void paint(PaintEvent event)
          Deprecated.  
private  void paintStripes(GC gc)
          Deprecated.  
 void start()
          Deprecated. Suppressed: Start the animation.
 void stop()
          Deprecated. Suppressed: Stop the animation.
 
Methods inherited from class org.eclipse.swt.widgets.Canvas
getCaret, scroll, setCaret, setFont
 
Methods inherited from class org.eclipse.swt.widgets.Composite
checkSubclass, getChildren, getLayout, getTabList, layout, layout, moveAbove, moveBelow, setFocus, setLayout, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBorderWidth, getBounds, getDisplay, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isDisposed, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, transferActive, transferFocus, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getStyle, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SLEEP

private static final int SLEEP
Deprecated. 

DEFAULT_WIDTH

private static final int DEFAULT_WIDTH
Deprecated. 

DEFAULT_HEIGHT

private static final int DEFAULT_HEIGHT
Deprecated. 

active

private boolean active
Deprecated. 

showStripes

private boolean showStripes
Deprecated. 

value

private int value
Deprecated. 

orientation

private int orientation
Deprecated. 

showBorder

private boolean showBorder
Deprecated. 
Constructor Detail

AnimatedProgress

public AnimatedProgress(Composite parent,
                        int style)
Deprecated. 
Suppressed: Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.

The style value is either one of the style constants defined in class SWT which is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using the int "|" operator) two or more of those SWT style constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses.

Parameters:
parent - a widget which will be the parent of the new instance (cannot be null)
style - the style of widget to construct
See Also:
SWT.VERTICAL, SWT.HORIZONTAL, SWT.BORDER, Widget.getStyle()
Method Detail

checkStyle

private static int checkStyle(int style)
Deprecated. 

clear

public void clear()
Deprecated. 
Suppressed: Stop the animation if it is not already stopped and reset the presentation to a blank appearance.


computeSize

public Point computeSize(int wHint,
                         int hHint,
                         boolean changed)
Deprecated. 
Suppressed:

Overrides:
computeSize in class Composite
Parameters:
wHint - the width hint (can be SWT.DEFAULT)
hHint - the height hint (can be SWT.DEFAULT)
changed - true if the control's contents have changed, and false otherwise
Returns:
the preferred size of the control.
See Also:
Layout, Control.getBorderWidth(), Control.getBounds(), Control.getSize(), Control.pack(), "computeTrim, getClientArea for controls that implement them"

drawBevelRect

private void drawBevelRect(GC gc,
                           int x,
                           int y,
                           int w,
                           int h,
                           Color topleft,
                           Color bottomright)
Deprecated. 

paint

private void paint(PaintEvent event)
Deprecated. 

paintStripes

private void paintStripes(GC gc)
Deprecated. 

start

public void start()
Deprecated. 
Suppressed: Start the animation.


stop

public void stop()
Deprecated. 
Suppressed: Stop the animation. Freeze the presentation at its current appearance.



comments?